buzzlightyear
Member
Hi all, just got a picaxe 08m setup, never really dabbled in microcontrollers before, but got the setup working and successfully uploaded some of the samples. Good stuff!
Right so now I am at the stage where I want to try a few simple things, here is what I'd like to try:
Have a digital input be read and have one output go high at half the frequency, and another output go high at a quarter of the frequency, eventually adding the option to have other divisions, but initially just keeping it simple. Edit - The digital input is currently connected to a function generator, outputting a square wave, so transitions from high to low. So far I have got this, but not sure what to do next.
Any help gratefully received!
Right so now I am at the stage where I want to try a few simple things, here is what I'd like to try:
Have a digital input be read and have one output go high at half the frequency, and another output go high at a quarter of the frequency, eventually adding the option to have other divisions, but initially just keeping it simple. Edit - The digital input is currently connected to a function generator, outputting a square wave, so transitions from high to low. So far I have got this, but not sure what to do next.
Code:
init:
SYMBOL trig_in = pinc.2
main:
IF trig_in = 1 THEN
Last edited: