2015-05-27 02:46 AM
Hi
I Want to read ADC0 channels in SPC560B50L5 but when i use my code or use Spc Function's the mcu have no action , i use this function and test my function with SPC560B54L5 it is work correctly. I Send my code if any problem exist on this pleaase help me . If you can get me sample if ADC have not any bug . Thanks So Much Best Regards Vanima Nazerian2015-05-28 01:42 AM
http://chibios.sourceforge.net/html/group___a_d_c.html
) 1) Use the Linear Buffer , after the EOC Callback .. your can let the driver stopping the conversion 2) Use Circular Buffer , you need to stop the conversion.. but let the time of MCU/* Starts an ADC continuous conversion.*/
adcStartConversion(&ADCD1, &adc0_group_cfg0,samples, ADC0_GROUP_CFG0_BUF_DEPTH);
//adcStart(&ADCD1, NULL);
init();
/* Application main loop.*/
while
(1)
{
/* Let some time to stop the conversion */
osalThreadSleepMilliseconds(500);
adcStopConversion(&ADCD1);
on the RM , Fig 286 , There Are some useful timings on ADC Sampling
But clearly , you stop too quickly the conversion.
Let me know if you solve your issue.
Best Regards
Erwan
2015-06-01 11:05 PM
Hi Erwan
I tested the ADC in SPC560B54L5 and it is worked thanks so much. But i read the Document you refer me I set ADC timming correctlly like a datasheet but has no effect in SPC560B50L5 the SpcStudio has no any sample for this chip and this chip completly diffrent with other MCU family. thanks so much With Best Regards Nazerian Vanima2015-06-02 06:13 AM