Craftybytes
Senior Member
Hi group,
Q1:
Using an 08M @ 8MHz - for pwm, what is the timer 'reference' period - 2.5uS or 5uS ?
If I needed a pwm out @ 1200Hz, 50% mark/space - how would one code the "PWMOUT" command for this?
Q2:
Is it possible in Picaxe BASIC code or by inserted Assembly code to set an interrupt on the -ve edge of the pwm pulse from the internal hardware pwm module (probably on timer overflow in pwm module) - thus to perform some program code during the 'space' portion of the total pwm period - WITHOUT stopping the pwm module from providing a continuous pwm o/p ?
Q1:
Using an 08M @ 8MHz - for pwm, what is the timer 'reference' period - 2.5uS or 5uS ?
If I needed a pwm out @ 1200Hz, 50% mark/space - how would one code the "PWMOUT" command for this?
Q2:
Is it possible in Picaxe BASIC code or by inserted Assembly code to set an interrupt on the -ve edge of the pwm pulse from the internal hardware pwm module (probably on timer overflow in pwm module) - thus to perform some program code during the 'space' portion of the total pwm period - WITHOUT stopping the pwm module from providing a continuous pwm o/p ?