PDA

View Full Version : Extra I/O



moby
- 30th March 2004, 11:05
Has anyone a simple way of getting 16 I/O's out of one pic port?

Dwayne
- 30th March 2004, 20:26
Hello Moby,

Moby>>Has anyone a simple way of getting 16 I/O's out of one pic port?<<

Not sure if this is what you want, but if you use one pin to Toggle the device you want to read the port at that time, you can use that port for 2, 3, 4 devices... Load up your port, Toggle the clock pin of the device you want to read that port. Load up the port and toggle the next device you want to read that port. A example may be to a printer and LCD.

porta.0 is LCD.
porta.1 is Printer or other widget.

Portb=%00101011
high Porta.0
Pause 1
Low Porta.0

Portb=%11101010
High Porta.1
pause 1
Low porta.1

Dwayne