How do I read the 08M2 timer register for the "time" command?
I was hoping to read the 08M2 PIC timer registers that are used for the "time" command, as described in this post by AlleyCat:
http://www.picaxeforum.co.uk/showthread.php?17782-PICAXE-program-Size-Optimisations-and-Speed&p=215463&viewfull=1#post215463
But when I do peeksfr for the TMR1H register at address $17 I get the constant value 182.
PE is reporting firmware PICAXE-08M2 v4.A
Can anyone point out what I'm missing?
This code:
produces this output that does not increment:
I was hoping to read the 08M2 PIC timer registers that are used for the "time" command, as described in this post by AlleyCat:
http://www.picaxeforum.co.uk/showthread.php?17782-PICAXE-program-Size-Optimisations-and-Speed&p=215463&viewfull=1#post215463
But when I do peeksfr for the TMR1H register at address $17 I get the constant value 182.
PE is reporting firmware PICAXE-08M2 v4.A
Can anyone point out what I'm missing?
This code:
Code:
#no_data
b0=$17
do
peeksfr b0, b1
sertxd(#b0,9,#b1,13,10)
loop
end
Code:
23 182
23 182
23 182
23 182
23 182
23 182
23 182
23 182
Last edited: