Hi All, I'm using a PIC16F684 as a master and a digital output accelerometer as the slave. I'm using a one of the digital I/Os as the data line. The data line will be pulled high and low from both the master and the slave, as well as start/stop bits, addressing and data bytes.
Will I need to set that specific digital I/O pin to an input when recieving data and set it as an output when sending data? Or will the uC realize that the line has been pulled low or high when I test the corresponding PORT register bit?
The accelerometer I'm using is a Kionix KXTF9.
Thanks in advance!
Will I need to set that specific digital I/O pin to an input when recieving data and set it as an output when sending data? Or will the uC realize that the line has been pulled low or high when I test the corresponding PORT register bit?
The accelerometer I'm using is a Kionix KXTF9.
Thanks in advance!