Synchronous Modes (Modes 0 And 4); Mode 0 - Intel 8XC196MC User Manual

Table of Contents

Advertisement

7.3.1

Synchronous Modes (Modes 0 and 4)

The 8XC196MH serial port has two synchronous modes, mode 0 and mode 4. Mode 0 is the syn-
chronous mode available on all the 8XC196 devices that have serial ports. Mode 4 is an enhanced,
full-duplex synchronous mode.
7.3.1.1

Mode 0

The most common use of mode 0 is to expand the I/O capability of the device with shift registers
(see Figure 7-2). In this mode, the TXDx pin outputs a set of eight clock pulses, while the RXDx
pin either transmits or receives data. Data is transferred eight bits at a time with the least-signif-
icant bit first. Figure 7-3 shows a diagram of the relative timing of these signals. Note that only
mode 0 uses RXDx as an open-drain output.
Clock Inhibit
Serial In
V
CC
Serial
In B
Clear
Figure 7-2. Typical Shift Register Circuit for Mode 0
In mode 0, RXDx must be enabled for receptions and disabled for transmissions. (See "Program-
ming the Control Register" on page 7-10.) When RXDx is enabled, either a rising edge on the
RXDx input or clearing the receive interrupt (RI) flag in SPx_STATUS starts a reception. When
RXDx is disabled, writing to SBUFx_TX starts a transmission.
Disabling RXDx stops a reception in progress and inhibits further receptions. To avoid a partial
or undesired complete reception, disable RXDx before clearing the RI flag in SPx_STATUS. This
can be handled in an interrupt environment by using software flags or in straight-line code by us-
ing the interrupt pending register to signal the completion of a reception.
Q#
Shift Register
74HC165
Inputs
Outputs
Shift Register
74HC164
Get other manuals https://www.bkmanuals.com
Shift / LOAD#
V
CC
74HC05
15kΩ
Serial In A
Clock
SERIAL I/O (SIO) PORT
P x . x
Data
RXD
Clock
TXD
Microcontroller
Enable#
P x . x
A0264-03
7-5

Advertisement

Table of Contents
loading

This manual is also suitable for:

8xc196md8xc196mh

Table of Contents