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.
PIC SFR's
Moderator: Benj
- Steve
- Matrix Staff
- Posts: 3434
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
Re: PIC SFR's
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.
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
Just got around to trying this out. Works very well. Thanks again.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.