Commit Graph

39 Commits (fca53dc67effc32bb1ed9e654b0f766a09087835)

Author SHA1 Message Date
g4eml 957d0d8d34 Change ADC1 to reduce number of interrupts.
Disable interrupts for ADC1. 
Every time ADC0 interrupts (24Khz) read the current conversion from ADC1 and software trigger a new one. 
This way there will always be an ADC1 conversion available whenever ADC0 interrupts.
2016-12-22 22:27:10 +00:00
g4eml cb30a8d357 Adjust ADC pre-trigger setting for external TCXO
External TCXO was not working with Pre-Trigger set to B.
This change sets it to A which appears to work.
2016-12-22 16:35:35 +00:00
Jonathan Naylor 38f6d7d9d8 Update DAC reference comment. 2016-12-21 14:01:18 +00:00
g4eml 75eccb751e Update IOTeensy.cpp
Switch ADCs to External Reference. (3v3 on Teensy)
2016-12-20 20:48:15 +00:00
Jonathan Naylor 0585d817cb Change Teensy RSSI input pins. 2016-12-20 14:21:36 +00:00
Jonathan Naylor 5d0d2d0bd9 Fix calibration setting. 2016-12-20 08:42:56 +00:00
Jonathan Naylor 2fad06093f Tweak the PDB timer period. 2016-12-15 10:22:07 +00:00
Jonathan Naylor dca6dd35dc Reduce the value of the LPTMR CMR by one. 2016-12-14 13:24:08 +00:00
Jonathan Naylor 2747e2979d Enable ADC0 pre-trigger via the LPTMR to match the PDB. 2016-12-14 09:12:59 +00:00
Jonathan Naylor f831b64518 LPTMR changes based on PJRC Teensy forum feedback from manitou. 2016-12-13 09:45:10 +00:00
Jonathan Naylor 3ec929ff52 Remove RSSI ADC startup software interrupt. 2016-12-12 15:29:41 +00:00
Jonathan Naylor 955a804cde Disable the LPTMR before configuring it. 2016-12-01 10:26:18 +00:00
Jonathan Naylor 1e4b5e6b89 Reorder LPTMR initialisation in accordance with the chip specification. 2016-12-01 10:10:12 +00:00
phl0 51faaed880
Add some comments 2016-11-30 13:17:36 +01:00
Jonathan Naylor d022276c94 Move the LPTMR enable. 2016-11-30 09:44:17 +00:00
Jonathan Naylor 6d383332e1 Reorganise the code slightly. 2016-11-30 09:42:10 +00:00
Jonathan Naylor e640e469fc Change SIM_SOPT7 setting. 2016-11-29 16:37:43 +00:00
Jonathan Naylor 77829f3157 Small tweak to the LPTMR. 2016-11-29 16:34:11 +00:00
Jonathan Naylor a40506aff0 More interrupt changes. 2016-11-29 09:22:32 +00:00
Jonathan Naylor 91b4dddd8b Disable ADC clocks. 2016-11-28 16:20:51 +00:00
Jonathan Naylor 4584b20c45 Make calibration into a seperate step. 2016-11-28 14:02:21 +00:00
phl0 9144ed41ec
Correct calibration 2016-11-28 12:44:45 +01:00
Jonathan Naylor d3eb7dbd4c Use software trigger for RSSI. 2016-11-17 10:05:36 +00:00
Jonathan Naylor c69933b48d Fix Teensy SIM_SOPT7 loading. 2016-11-16 09:11:55 +00:00
Jonathan Naylor df202e19df Use the LPTMR to triger the ADC from an external oscillator. 2016-11-15 18:59:57 +00:00
Jonathan Naylor cd2042aa9b Clean up pin assignments. 2016-11-15 17:04:51 +00:00
Jonathan Naylor 59d93b5a6f First attempt at using external clock for Teensy ADC. 2016-11-15 08:07:24 +00:00
Jonathan Naylor cc05115280 Enable the ADC clocks. 2016-11-14 22:39:14 +00:00
Jonathan Naylor de289c1258 Further refinement of the Teensy IO. 2016-11-14 21:47:38 +00:00
Jonathan Naylor 762482f6f5 Include the Teensy 3.5 as a supported platform. 2016-11-14 11:41:58 +00:00
Jonathan Naylor e97c1dc746 More work on Teensy interrupts. 2016-11-11 06:56:02 +00:00
Jonathan Naylor 823b68d5ed More ADC IRQ work for the Teensy. 2016-11-10 20:15:06 +00:00
Jonathan Naylor 584134d1d1 Add more Teensy IO code. 2016-11-10 19:45:35 +00:00
Jonathan Naylor 934bad3fb9 More work on the Teensy raw IO. 2016-11-08 07:41:31 +00:00
Jonathan Naylor 2a5149180d Start building the Teensy support. 2016-11-07 21:02:09 +00:00
Jonathan Naylor c6e36f81fc Framework for Teensy IO. 2016-11-07 20:26:38 +00:00
Jonathan Naylor 423af323ed Cleanups for Teensy support. 2016-11-01 20:30:18 +00:00
Jonathan Naylor 959cb7f32e Cleanups and bug fixes. 2016-11-01 18:00:53 +00:00
Jonathan Naylor d70fb4f0f9 Placeholder for Teensy support. 2016-10-31 20:16:33 +00:00