blainecf
- 13th June 2006, 16:59
Greetings all you brain trusts!
Using the 44pin PLCC version of this chip to control a bank of relays.
Thought I did all the standard stuff; all the relays hooked to PORTB worked as expected, none of the relays hooked to PORTD worked.
However, when I changed the code to:
OUTPUT PORTD.7
...
HIGH PORTD.7
the relays work just fine.
Previously, I was using TRISB and TRISD, then setting the individual ports on or off using PORTD.7 = %1, which worked on PORTB but not on PORTD. (Syntax was identical)
Any ideas?
Using the 44pin PLCC version of this chip to control a bank of relays.
Thought I did all the standard stuff; all the relays hooked to PORTB worked as expected, none of the relays hooked to PORTD worked.
However, when I changed the code to:
OUTPUT PORTD.7
...
HIGH PORTD.7
the relays work just fine.
Previously, I was using TRISB and TRISD, then setting the individual ports on or off using PORTD.7 = %1, which worked on PORTB but not on PORTD. (Syntax was identical)
Any ideas?