Once again I'm stuck with the simplest possible problem. (The hard ones I can usually fix)
I need to generate a 8Khz square wave to test a piece of equipment.
No problem, I thought! Used the PWM wizard, and got:
Run it - nice square wave, but the frequency is 1 cycle every 15 seconds!
Yup - I got decoupling caps, pull downs, fresh batteries, cold beer and a headache.
What did I miss this time
I need to generate a 8Khz square wave to test a piece of equipment.
No problem, I thought! Used the PWM wizard, and got:
Code:
#picaxe 20M2
#no_data
pwmout B.1, 124, 250
Yup - I got decoupling caps, pull downs, fresh batteries, cold beer and a headache.
What did I miss this time