The following lines solved the (first) problem:
CMCON7=0
ECCP1CON=%00000000
TRISE.4=0
TRISD=%0001111
Amazing that a simple "INPUT PORTD.2" doesn't do it.
I will study the datasheet on the CMCON stuff.
thanks
The following lines solved the (first) problem:
CMCON7=0
ECCP1CON=%00000000
TRISE.4=0
TRISD=%0001111
Amazing that a simple "INPUT PORTD.2" doesn't do it.
I will study the datasheet on the CMCON stuff.
thanks
Bookmarks