??? 01/19/06 04:35 Read: times |
#107767 - Idle mode problem solved Responding to: ???'s previous message |
Gopalakrishnan Narayanan said:
Hi
As said above i am now using the idle mode during ADC conversion. Now problem is my USB then stops working. I am describing my firmware main loop { If data is ready send the data using USB } Timer1 Interrupt after every 50uSeconds { Stop the timer Start the ADC IDLE mode (if this part is removed the whole firmware works) } ADC interrupt when conversion over and wakes up Microcontroller from idle mode { save the data to buffer start the timer } According to datasheet the USB module is active in idle mode.But it is not able to send since when i remove the idle mode the firmware works perfectly.If somebody has worked on this please tell me what i am doing wrong. Regards Gopalakrishnan.Narayanan Hi My problem was Solved. It was something related to interrupt priority.I have to keep the ADC interrupt at high priority else the microcontroller got confused since a lower priority (ADC interrupt) was interuppting a higher priority interrupt (Timer 0) coz of which the program stalled. Regards Gopalakrsihnan.Narayanan |
Topic | Author | Date |
Upsd3434ev ADC problem | 01/01/70 00:00 | |
its noise | 01/01/70 00:00 | |
How to remove this noise | 01/01/70 00:00 | |
its the easiest way | 01/01/70 00:00 | |
Problem with Idle mode and USB | 01/01/70 00:00 | |
Idle mode problem solved![]() | 01/01/70 00:00 |