Using an 08M, I'm trying to count pulses on two inputs, and stop a pwmout if either goes out of a range.
To achive the required pwmout frequency, I have dropped the clock speed to 1Mhz, using poke $8f, %01000000.
The problem is, at 1Mhz, if a pulsein times out, the program seems to crash.
At normal 4Mhz speed, it runs ok.
To achive the required pwmout frequency, I have dropped the clock speed to 1Mhz, using poke $8f, %01000000.
The problem is, at 1Mhz, if a pulsein times out, the program seems to crash.
At normal 4Mhz speed, it runs ok.