Intel 8XC196K Series User Manual page 189

Table of Contents

Advertisement

8XC196K x , J x , CA USER'S MANUAL
The following example describes how the master can transmit 16 bytes of data to the slave
through the PTS, using this optional handshaking capability.
1.
These four steps can occur in any order:
— You initialize the master as a transmitter and the slave as a receiver.
— The master prepares 16 bytes for transmission and places them in RAM.
— The master initializes a PTS channel to move data from RAM to SSIOx_BUF.
— The slave initializes a PTS channel to move data from SSIOx_BUF to RAM.
2.
You set the master's SSIOx interrupt pending bit in the INT_PEND1 register.
3.
The PTS transfers a byte to SSIOx_BUF.
4.
The slave pulls the clock line low until it is ready to receive a byte, then allows the clock
line to float (allowing the external resistor to pull it up).
5.
The master detects the high clock line and transmits the byte.
6.
When the master finishes transmitting the byte, it sets its SSIOx interrupt pending bit in
INT_PEND1 and allows the clock line to float.
7.
When the slave finishes receiving the byte, it sets its SSIOx interrupt pending bit in
INT_PEND1.
8.
Steps 3 through 7 are repeated until the PTS byte count reaches 0.
9.
The next interrupt requests PTS service.
8-8

Advertisement

Table of Contents
loading

Table of Contents