I'm trying to program a simple timer interrupt (TMR0) in a BF707 Ez-Kit but the result is not the expected. The steps are:
- Configure the timer in continuous PWM mode and establish a period of 100000 ticks (about 1 ms because the source is SCLK0).
- Activate the SEC writing the EN bit in SEC_GCTL and SEC_CCTL0
- Install the interrupts handler
- Activate the timer interrupts
But no matter about the period I configure, always the interrupt is serviced immediately (465 cycles of the core clock). Anyone does have any idea about which is the fail? I attach the code.
Thanks in advance and best regards,