setting Timer-0 offset in C
Posted: Sun Sep 13, 2009 8:11 pm
I thought this is no problem.....
I wanted to set the offset of TMR_0 to a value of 240 in an Interrupt-Subroutine in Flowcode V4 for PIC
The properties of Timer 0 don't allow this. So I tried to use C-Code in a C-Code window like
tmr0=240;
(As I saw somewhere here in the forum)
I got this messages:
------start messages---------------------------
Starting preprocessor:.......
..........
error: unknown identifier 'TMR0'
error: invalid operand 'TMR0'
error: failed to generate expression
Balancer 16_test1 aus 16c mit TIMER0 Startwert.c success
failure
------end of messages---------------------------
(I also tried tmr0, tmr_0, TMR_0 ....)
Thanks for a reply
rmr
I wanted to set the offset of TMR_0 to a value of 240 in an Interrupt-Subroutine in Flowcode V4 for PIC
The properties of Timer 0 don't allow this. So I tried to use C-Code in a C-Code window like
tmr0=240;
(As I saw somewhere here in the forum)
I got this messages:
------start messages---------------------------
Starting preprocessor:.......
..........
error: unknown identifier 'TMR0'
error: invalid operand 'TMR0'
error: failed to generate expression
Balancer 16_test1 aus 16c mit TIMER0 Startwert.c success
failure
------end of messages---------------------------
(I also tried tmr0, tmr_0, TMR_0 ....)
Thanks for a reply
rmr