PIC SFR's

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
Dave S
Posts: 39
Joined: Tue Jun 07, 2011 12:37 pm
Has thanked: 12 times
Been thanked: 5 times

PIC SFR's

Post 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.

User avatar
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

Post 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.

Dave S
Posts: 39
Joined: Tue Jun 07, 2011 12:37 pm
Has thanked: 12 times
Been thanked: 5 times

Re: PIC SFR's

Post 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.

Post Reply