ok so I've found the directives explanations in MPLAB erm there is a ton how do I know which ones I'm using ? I presume the ones in the 16F88 templeate file has them all so if I check out their meaning I'll be ok... this is very confusing whats wrong with just listing the registers and saying "0" or "1"
for example CP="0"
hi TC,
Chill, its always con 'fusing' at first.
The word fuse is a hang over from the time ic's did have an internal 'minifuse link' which was actually 'blown'
or not during programming,, I never use it, its confusing to new readers.
The assembler expects the program writer to define the CONFIGURATION, on how the PIC's
'internal hardware' is going to be used.
A simple one is the FOSC <2:0> a three bit code, it tells the PIC which oscillator configuration you are using..
eg internal or external.
Another one is the WDTEN, watch dog timer.
This is used with your program so that if the WDT times out, something is 'wrong' in the programs operation
and so your program has to take corrective action.
I dont normally use it, so I switch it OFF.
/PWRTEN, Power up Timer enable.
This is a delay on starting the actual program after the power has been switched ON, gives the osc time to settle.
I use it as it gives the LCD a little time to settle.
MCLRE, This is to use the RA5 pin either as a RESET pin OR a digital pin.
BOREN, Do you want to check for a 'dip' in the Vss to the PIC. a brown out.
If brown out is used, then your program could be written to give a warm start. etc.
Does this help a little.?