Hi,
I'm new here, as active member. I have read through this forum a lot and most of the time, found answers to my questions. But this time, I can't find the answer I'm looking for.
I am making a little time base to feed a clock signal in logic circuits.
The set up is quite simple, a picaxe 08M2, a potentiometer to vary the frequency/choose the options in the menu, a momentary switch to navigate the menu (change frequency range, pulse with, ...) and a AXE133 module to display to informations.
The loop for low frequency values is short: reading the value of the potentiometer, sending the value to the display, and, at least in the plans, testing the timer flag.
I already have an interrupt running on the push button, that's why I want to be able to test the timer flag in the loop when I am running at output frequencies lower than 200 Hz (planing on using pwm function in another loop for anything higher than 200)
But when I write this, I get an error message:
The IDE tells me that "toflag" is an unknown symbol.
I previously tried to test the "timer" variable for my timing function but I have the same problem, the IDE tells me that "timer" is an unknown symbol.
Is there a way to access the variable "timer" or the timer overflow flag without an interrupt?
If not, I can still use a latch on my push button and use an interrupt for the timing function but I would like to avoid it.
Thanks if someone is able to help me here
Ben
I'm new here, as active member. I have read through this forum a lot and most of the time, found answers to my questions. But this time, I can't find the answer I'm looking for.
I am making a little time base to feed a clock signal in logic circuits.
The set up is quite simple, a picaxe 08M2, a potentiometer to vary the frequency/choose the options in the menu, a momentary switch to navigate the menu (change frequency range, pulse with, ...) and a AXE133 module to display to informations.
The loop for low frequency values is short: reading the value of the potentiometer, sending the value to the display, and, at least in the plans, testing the timer flag.
I already have an interrupt running on the push button, that's why I want to be able to test the timer flag in the loop when I am running at output frequencies lower than 200 Hz (planing on using pwm function in another loop for anything higher than 200)
But when I write this, I get an error message:
Code:
if toflag = 1 then
toggle C.1, C.2 'toggle output and inveted output
gosub timing 'go to timer reset subroutine
endif
I previously tried to test the "timer" variable for my timing function but I have the same problem, the IDE tells me that "timer" is an unknown symbol.
Is there a way to access the variable "timer" or the timer overflow flag without an interrupt?
If not, I can still use a latch on my push button and use an interrupt for the timing function but I would like to avoid it.
Thanks if someone is able to help me here
Ben