Posted on October 09, 2015 at 13:23
I have I2C slave working to a point but have an event code which causes the isr to trigger continuously. Simplified code below.
Now I am using a ''Total Phase Aardvark'' to ask for 8 bytes of data and ...
Posted on September 28, 2015 at 16:08
Change my code now to use multiple channels and added in DMA.
If I ask the DMA to give me 4 sample from 3 channels, I get the 12 samples, whats the correct way to get the DMA to start again
...
Posted on September 22, 2015 at 13:29
Initialisation call from main
adc_setup_data.adc_block = ADC1;
adc_setup_data.adc_channel = 1;
adc_setup_data.adc_number_of_bits = ADC_Resolution_12b;
adc_setup_data.adc_sample_time = ADC_SampleTime_16Cycles;...
Posted on September 29, 2015 at 10:16to be honest a restart once i have read the values will suffice, so i need to set them up again, without the NVIC stuff
Posted on September 25, 2015 at 10:39Problem FIXED, thanks for the help The ADC driver was not the cause of the problem, it was the USB driver which on 1st reset calls SystemInit and this was disabling the HSI Clock. joolz
Posted on September 23, 2015 at 12:28Ok added 2 resistors 10K from gnd and vdd, connected to the ADC input. Added in code to read the ADC input via a TIM3 interrupt, still getting 0x0000. Completely confused as I have look at numerous examples and c...