;******
INITIALISATION ******
;Before using the I/O ports, data direction registers must be set up. A '1' in
these registers sets the corresponding port
;line to an input, and a '0' makes the corresponding line an output.
| start |
bsf |
STATUS,RP0 |
;Select
special register set |
| |
movlw
b'11111' |
|
;Set
port A data direction to 'all I/P' |
| |
movwf
TRISA |
|
|
| |
movlw
b'00000000' |
|
;Set
port B data direction to 'all O/P' |
| |
movwf
TRISB |
|
|
| |
bcf
STATUS,RP0 |
|
;Select
normal register set |
|