Thanks for the link, and whist I did look at the FAQ's.. I must admit that I didn't scroll down much further than the original post - Sorry !Originally Posted by mister_e
However the good news is that the LED is now pulsing away on GPIO 0
However I really want to learn from this and I'm a tad confused (easy to do). Whats the difference between having the line in the program code and the INC file. ?
I found that if I removed the line
from the programing code and left the INC file intact the program compiled but the LED did nothing. - Reming out the line in the INC file and adding it to the code file, resulted in the code compiling without errors and the LED is pulsing away fine !Code:@ __CONFIG _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_ON & _MCLRE_OFF & _BODEN_ON
Should (or is that could) I use the INC file and have some statement in the programming code to call this file (something like include 12F675.inc)
Also, will I have to modify every INC file for every PIC that I use so i don't get this problem again ?
Cheers
Malc





Bookmarks