I was struggling with my employees to sort the issue of portd in PIC 18f452..I had interfaced LCD in PORTD but it was not working. We are dealing with that for last 10 days as I thought FC should not have problem as I have used FC for other product and that was fine. But I didn't noticed that I have used LCD in PORTB in that working product but here in PORTD..
So the problem in FCD file in both V4 and V5....PORTD has parallel slave port option which can be enabled and disabled by TRISE<4>..WHICH HAS TO BE DISABLED.
I have sorted the problem and tested in hardware..please update that in v4 and v5 master file..
Code: Select all
Initialise="adcon1 = 0x07;\ncr_bit(trise,PSPMODE);\n"
Enamul