| ??? 12/11/03 23:35 Read: times |
#60476 - RE: back to basics Responding to: ???'s previous message |
I went to Code Architect and generated the clock module for a CPU frequency of 7.3728MHz. I then went and generated the timer module, timer 0 periodic overflow with an overflow every 10ms.
In the main function I called both the osc and timer init functions and set EA = 1. I modified the timer 0 ISR to toggle pin P2.0 every 10th time the ISR is called. Built. Ran. LED on the toggled pin flashes. Test setup: Online Code Architect Keil C51 V7.01 Keil MCB900 board rev 2 89LPC932 rev G Flash Magic 1.84 Windows XP ;) Andy ESAcademy - www.esacademy.com |



