binary1248
Senior Member
I just switched to ver 6 editor tonight and it's great.
BUT, I can't get the terminal window to show up. The registers show up on the right of the screen and I can see the values change when I change the input counter, but no terminal. So what did I do wrong.
Tried #terminal 4800 also, which hoses up my com port ??
Here is the code :
BUT, I can't get the terminal window to show up. The registers show up on the right of the screen and I can see the values change when I change the input counter, but no terminal. So what did I do wrong.
Tried #terminal 4800 also, which hoses up my com port ??
Here is the code :
Code:
; Read the timing wheel (Crank Sensor) as a
; count over a constrianed period
; That will be converted to RPM value to
; control a servo that is the indicator
;
; some of the # dirictives may not be needed but
;included here for convience.
; 12/2/2015 Set limits on input ctvalue to prevent overdriving the servo
;
#picaxe 08M2
#no_data 'save some load time
; #no_table
;
symbol redled=C.2 ;pin 5 on chip
symbol ctvalue=w0 ;count value for rpm
symbol tempxvalue=w1
#terminal 9600
Start:
input 3 ;make ports 3 inputs, physical pins 4
;
init: servo c.4,75 ; initialise servo, physical pin 3
mainloop:
;---------------Input ctr value for rpm calculations ----------------
count c.3, 100, ctvalue ; count pulses in 0.1 secs (at 4MHz) on pin 4
;----------------------- For debug, remove down to and including templ ---------------
tempxvalue=ctvalue ;for debug display only
debug tempxvalue ;data looks good over entire range and more at this point
pause 500
goto mainloop ;temp for debug
templ:
;-------------------------------------------------------------------------------------
Last edited: