Page 1 of 1

Interrupts in flowcode

Posted: Mon May 19, 2008 10:05 am
by raghavmonga
i tried to make a program to generate a 10KHz frequency using interrupts but i find that there is no provision of setting the the registers TH0 and TL0 of timer TMR0 to a particular value. since i want that the interrupt should occur after a user defined time i m finding no method of doing so.
please tell me how can i get an interrupt after a user defined time(without using the prescaler )

Re: Interrupts in flowcode

Posted: Mon May 19, 2008 3:27 pm
by Benj
Hello

You can write to the timer registers directly using a C code Icon.

Eg.
tmr0l = 0;
tmr0h = 0;