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

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

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
Steve
Matrix Staff
Posts: 3111
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 89 times
Been thanked: 398 times
Contact:

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.