Hi, Does anyone know a way of using port bits in an array? I want to use indexes to turn on a port bit i.e PORTAbits.RA0 = 1 for index 0, PORTAbits.RA1 = 1 for index 1etc.
movf index,W
addwf PCL,F
goto Index0_IO
goto Index1_IO
...
Index0_IO:
bcf PORTB,0
return
Index1_IO:
bsf PORTB,0
return
etc..
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
K | Capacitor Question | General Electronics Chat | 5 | |
E | PAM2861 Data sheet pwm question | General Electronics Chat | 8 | |
X | Guys I've got a newby question for the experts here. | General Electronics Chat | 21 | |
F | Question about Darlington Arrays | General Electronics Chat | 14 | |
A | Quick question about arrays and pointers in c++ | Programming & Languages | 1 |
by Aaron Carman
by Duane Benson
by Duane Benson
by Jeff Child