I'm a PIC noob. I just received my PIC Kit 2 today. I want to add the file register called 'DISPLAY' to my watch window. But the 'Add Symbol' feature is greyed out.
Sorry if I'm being thick. Very grateful for any help. Thanks in advance.
I can add any symbol/text by selecting it and then dragging it into the symbol list (add symbol being also grayed out). However i am not sure it works this way. Haven't tested.
I have compiled it because I can flash the chip and the prog works. I am only using the MPLAB IDE environment to debug and flash. It's confusing using two seperate progs to do the same task. I'm not entirely sure I know what I'm talking about yet - still finding my way.
With the PICKIT you can program while in MPLAB. Select PICKIT2 on the debugger menu (in MPLAB)... look in the PICKIT help for more info as well. When you use the PICKIT as a debugger you can see the real registers on your PIC when you step/pause/breakpoint your code, and not some simulated values that does not work well with things like the ADC.
The PICIT is also a basic logic analizer, but you can play around with that when you have a bit more experience.
I've managed to add the symbols; I used the template file (object) for the chip I'm using and added the symbols and the code. There is a lot of other default code in the template file that I don't yet understand.
I'll go and have another look at the PICkit help as you suggest and see if I can figure that one out. Very grateful for your help.
Looking good. Try to make a LED flash for a start, then add a switch and toggle it with that. Remember to put a resistor between about 300R and 1K in series with the LED.