Mosaic
Well-Known Member
Digital I/O ports use buffers.
I'd like some an explanation on how these buffers work.
here's a what if:
;PORTA is set as an input via TRISA
bsf PORTA,0
; Input on PORTA,0 is a low impedance 0.
; PORTA now set as an output.
Now when I read PORTA,0 it should read 0 due to the low Z input, not so?
However if the Input were a HI-z, 0, would I read a 1 from PORTA,0 due to the bsf PORTA,0?
Does a PORT carry a single buffer or are the Input buffers separate from the output buffers?
I'd like some an explanation on how these buffers work.
here's a what if:
;PORTA is set as an input via TRISA
bsf PORTA,0
; Input on PORTA,0 is a low impedance 0.
; PORTA now set as an output.
Now when I read PORTA,0 it should read 0 due to the low Z input, not so?
However if the Input were a HI-z, 0, would I read a 1 from PORTA,0 due to the bsf PORTA,0?
Does a PORT carry a single buffer or are the Input buffers separate from the output buffers?