I have been struggling to get LCD output in PORTD in PIC18f4680..This is because of the initialization problem in the FCD file. I have managed to sort out the issue. There are quite a few multiplexing in that port..I/O, PSP, CCP, ECCP which causing the problem.
I have attached here the FCD so that MM masters can update that. Clearing trisd will not hamper input declaration as whenever anyone declares any pin as input that macro will automatically changes that bit in tris register.
Code: Select all
Initialise="adcon1 = 0x0F;\ncr_bit(trise,PSPMODE);\nccp1con=0x00;\neccp1con=0x00;\ncmcon=0x07;\ntrisd=0x00;\n"
Enamul