??? 08/09/06 12:17 Modified: 08/09/06 12:18 Read: times |
#121903 - that\'s impossible Responding to: ???'s previous message |
I am using the internal RC oscillator with 7.3728MHz. ... Now if I wish to create a pulse with frequency = 3.6864MHz/2 by complemeting a port in timer 0 interrupt service routine, what value should i reload the TH0 and TL0?.
there is no way you can do that. entering an ISR usually takes 4 cycles (maybe in the LPC only 2 - look it up) and the return takes - again look it up - cycles. Thus it is patently impossible to create anything 1/2 oscillator by using an interrupt. it's bible time Erik PS why the FAQ in the header, this is NOT 'frequently asked' here are the links to "the bible" Chapter 1 http://www.semiconductors.philips.com/acrobat/v...ARCH_1.pdf chapter 2 http://www.semiconductors.philips.com/acrobat/v...UIDE_1.pdf chapter 3 http://www.semiconductors.philips.com/acrobat/v...WARE_1.pdf |