Posted on April 22, 2004 at 08:09Hi (again)! My answers to your points are: 1. If I don't modify the DCR0 register I get a period of 512 us (roll over). 2. The tnz PWM0CSR instruction read the register and clear the flag. Can you provide me a pointe...
Posted on April 19, 2004 at 15:54Hi! I load the high byte of DCR0 with 10 and the low byte with 0, or a total of 10*256+0=2560=$0a00. I also add 2560 to DCR0 in the interrupt routine. /Janne
Posted on April 18, 2004 at 15:26Hi! Below you can find the relevant parts of the program. I have also (today) tried to explicitly set the registers $0d..$22 to the reset values in the init routine. No difference. /Janne init ld A,#10 ;set delay to...
Posted on April 16, 2004 at 04:44 Hi! I have just started to use the ST7 and have a problem with the autoreload timer. The program that is attached to this message is supposed to generate a pulse every 320us on PA1 and very often on PA0. ...