Hello Pascal,
I am using the 56F8356 developement environment, I have peculiar problem with the ADC usage.
I wait in a while loop for ADC conversion to get over. But the program always stays there.
I am facing this problem after introducing new PWM and Decoder interrupts. I am not using any SYNCH Signal, its just the Software "START" conversion.
Example of my program:
GET_ADCA_OUTPUT()
{
while( ADCA Conversion is Over)
{
wait...
}
Return the output values..
}
Get_ADCB_OUTPUT()
{
while( ADCB Conversion is Over)
{
wait...
}
Return the output values..
}
If I introduce a delay factor for waiting, i am able to introduce it in only one of the loops, not in both, if i introduce in both the system is restarting.. or it stops working.
If I introduce a counter factor like this it works:
GET_ADCA_OUTPUT()
{
while( ADCA Conversion is Over) && (Counter reaches zero)
{
wait...
}
Return the output values..
}
Get_ADCB_OUTPUT()
{
while( ADCB Conversion is Over)
{
wait...
}
Return the output values..
}
But if i introduce a counter factor in both the loops it doesn't work..system restarts or does not function properly like this:
GET_ADCA_OUTPUT()
{
while( ADCA Conversion is Over) && (Counter reaches zero)
{
wait...
}
Return the output values..
}
Get_ADCB_OUTPUT()
{
while( ADCB Conversion is Over) && (counter reaches zero)
{
wait...
}
Return the output values..
}
Hi,
I suggest you to log your request to the Freescale CRM system.
Please use Freescale on line support web page.
- Go to following URL: http://www.freescale.com/TechSupport
- Click on Submit a Service Request to create a new one or Manage Existing Service Request.
- You will come to a login page.
- You can submit your request through the web from there or view the activities of a SR.
Please provide us more details about the Tool version used.
To do that you must:
Start the IDE and click on Help | About Freescale CodeWarrior.
Click on Installed Products
Provide us all info displayed.
Or you can save them in a txt file.
Can you please provide us your example reproducing the issue ?
Regards
Pascal