How do you find Variable table start?

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Posts: 4
Joined: Tue Jul 04, 2006 7:55 pm

How do you find Variable table start?

Postby meliasuk » Tue Jul 04, 2006 8:45 pm

Where can I find the value I need to input to the "Variable Table Start", i.e. how do you know for 16F84A it's 0x0c, etc. I have been downloading spec sheets for PIC MCU but I am having trouble finding that value. Thanks.

User avatar
Matrix Staff
Posts: 3110
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 89 times
Been thanked: 396 times

Postby Steve » Fri Jul 07, 2006 9:15 am

The info is usually in the PICmicro datasheet under "Data Memory Organization". Look for a map of the registers. The value you want is the start of the "general purpose register" section in Bank 0.

For most PICmicros, setting this value to 0x20 should be fine.