|
|||||||||||
Technical Support Support Resources
Product Information |
Infineon SAB80C517 Timer 2 Example ProgramThis example program shows how to configure timer/counter 2 of the Infineon 80C517 as a 16-bit timer with auto-reload. The timer is configured to count 1000 clock cycles. An interrupt service routine (ISR) is invoked each time the timer overflows. Since Timer 2 is fully simulated by the uVision2 Debugger, you can view the timer configuration dialog as the timer SFRs are set. You can also step into the interrupt service routine and see that it is invoked 1000 times per second. To test this program...
Each time the interrupt routine is invoked, the debugger stops running the program. Position the cursor over the overflow_count variable to view its current value.
80C517_TIMER2.ZIP
(9.7K)
Wednesday, April 24, 2002 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.