PDA

View Full Version : Pic18f4455



nat22
- 3rd September 2008, 14:52
Hello,

how can I set configuration bit for Low Voltage Program that my RB5 is I/O (not PGM) for my PIC18F4455, I can not find it in .INC file, (I use assembly language).

thanks

Bruce
- 3rd September 2008, 15:31
Look in the P18F4455.inc file in your MPASM directory. There's a list of all config options.

New way;
; Single-Supply ICSP Enable bit:
LVP = OFF Single-Supply ICSP disabled
LVP = ON Single-Supply ICSP enabled

Old way;
_LVP_OFF_4L EQU H'FB' ; Single-Supply ICSP disabled
_LVP_ON_4L EQU H'FF' ; Single-Supply ICSP enabled

nat22
- 4th September 2008, 08:09
Hello Bruce,

thank you for your advice, I have overlooked it in .INC file. It is OK now.

Can you tell me please, for PIC18F4455, can I turn off SPP0, SPP1, SPP2 and SPP3 with configuration bits or I have to do it on some other way?

thanks

Bruce
- 4th September 2008, 13:55
Read the section on Streaming Parallel Port in the data sheet. If that doesn't answer your
question let me know....;o}

nat22
- 5th September 2008, 14:56
Hello Bruce,
I have found it, thanks for advice,

regards