I am trying to read the contents of a PIC timer register into a variable bMains_period I defined in Flowcode. Tried several ways to address the variable, with _FCV_ or FCV_ or just _ prepended, no success. Always get an ' undefined symbol' error message.
This is the code fragment:
Code: Select all
#asm
// read T0
banksel TMR0
move TMR0, 0
movwf FCV_bMains_period
#endasm