MPLAB

Thread Starter

Mazaag

Joined Oct 23, 2004
255
Hey guys,
I just got a PIC16F877 and wanted to practice writing out some code, however i don't have programmer yet.

I download MPLAB, and just wanted to ask , is it possible to check the syntax etc of the code i write using MPLAB? can i track the values of various registers etc to see whether they changed value or not?

Another thing, once i choose the device (PIC16F877), could i use the name of the registers straight away? or do i have to equate the Name with the address ( eg: STATUS equ 03h ) ?

Thanks alot guys,
 

n9352527

Joined Oct 14, 2005
1,198
Originally posted by Mazaag@Feb 23 2006, 05:35 AM
Hey guys,
I just got a PIC16F877 and wanted to practice writing out some code, however i don't have programmer yet.

I download MPLAB, and just wanted to ask , is it possible to check the syntax etc of the code i write using MPLAB? can i track the values of various registers etc to see whether they changed value or not?

Another thing, once i choose the device (PIC16F877), could i use the name of the registers straight away? or do i have to equate the Name with the address ( eg: STATUS equ 03h ) ?

Thanks alot guys,
[post=14289]Quoted post[/post]​
Syntax checking, if you compile the program it'd show if there is any error.

Use the simulator to run your program. You could watch just about anything.

If you created a project through the wizard thingy you would get the appropriate include files and linker automatically. Otherwise check that appropriate include files and linker are selected. These will equate the names with addresses and map the addresses during linking.
 
Top