I have problems with the timer interrupt.(AT TIMER Overflow interrupt) I am using indart-st7flite0 for st7lite09B. I want to ouput as port ''A'' about Temp(var). and generate 10ms time interrupt. ref. After execute instruction ''rim'' , not operate program. I don't understand why isn't operation.
A few points: 1. in the timer setup, it may be worth LD A, ATCSR this will clear any pending interrupt. 2. in the interrupt routine LD A, ATCSR must be used to clear the interrupt flag 3. Although i can not see it said in the data, I would load the ATR H first then L, as normal. writing to CNTRH and L is pointless, these are read only The ATR value is loaded to the CNTR at each overflow, an interrupt is also generated. One other minor point, you have not loaded the RC calibration value from memory to the RC calibration register. Your flite will be operating around 6.5MHz regards, Simon ANGLIA Internal Apps Support