Connect your switchs between PORTB and GND.Code:TRISB=255 TRISD=0 OPTION_REG.7=0 ' enable pull-ups resistor on PORTB Loop: PORTD=~PORTB goto Loop
All PORTD pins goes to PC thru serie resistor.. let's say 1K
Connect your switchs between PORTB and GND.Code:TRISB=255 TRISD=0 OPTION_REG.7=0 ' enable pull-ups resistor on PORTB Loop: PORTD=~PORTB goto Loop
All PORTD pins goes to PC thru serie resistor.. let's say 1K
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks