Page 1 of 1
PIC SFR's
Posted: Mon Jun 20, 2011 3:47 pm
by Dave S
Hi, I am a new user of Flowcode having previously programmed PIC's in assembler. I was wondering if I can access the PIC special function registers such as TMR0, ADCON1, TRISB etc. during simulation. I cant find them in the WATCH window, only user created registers.
If this is not possible can they be accessed using the FLOWKIT debugging tool?
Thanks,
Dave.
Re: PIC SFR's
Posted: Mon Jun 20, 2011 3:57 pm
by Steve
The contents of these registers cannot be accessed in simulation.
With FlowKit, you would need to create a Flowcode variable for each SFR you wish to monitor and then put a C code icon in the program flow at the point where you wish to monitor the SFR(s). The C code window should basically set the variable(s) to the SFR value(s). Then, when you put a breakpoint after this C code icon, you will be able to see the SFR value.
Flowcode V5 will have a better mechanism for doing this.
Re: PIC SFR's
Posted: Wed Aug 17, 2011 9:51 am
by Dave S
Steve wrote:The contents of these registers cannot be accessed in simulation.
With FlowKit, you would need to create a Flowcode variable for each SFR you wish to monitor and then put a C code icon in the program flow at the point where you wish to monitor the SFR(s). The C code window should basically set the variable(s) to the SFR value(s). Then, when you put a breakpoint after this C code icon, you will be able to see the SFR value.
Flowcode V5 will have a better mechanism for doing this.
Just got around to trying this out. Works very well. Thanks again.