
7
Serial Mode 1
Serial Mode 1 is selected by tying SMS0 (Pin 18) low, SMS1
(Pin 19) high, and SEL (Pin 28) low (Figure 4B). In this mode
the HI-7159A interface emulates a UART, reading and
writing data in serial data packets of 1 start bit, 8 data bits,
1 parity bit (EVEN), and 1 stop bit. The baud rate is
determined by the state of BRS0 and BRS1 (Pins 24 and 25)
as shown in Table 2. Pin 15 becomes the serial receiver pin
(RXD) and pin 16 the serial transmitter pin (TXD). CS (Pin
17) remains a chip select and must either be tied to DGND or
pulled low (see Figure 2B) to access the device.
SAD0-SAD3 (Pins 20-23) are unused in this mode and
should be tied high.
Design Hints for Operating in the Parallel
Mode
1. Always read the status byte twice to make sure that it is
cleared.
2. Make sure the status byte is cleared before issuing a
command to change modes.
3. Read each digit pair ve times before reading the next
byte to ensure that the output data is correct.
4. Use a watchdog timer to monitor conversion time. If
conversion time is either too long or too short, reissue the
conversion command.
TABLE 2. BAUD RATE SELECTION FOR MODES 1 AND 2
BRS0
PIN 24
BRS1
PIN 25
BAUD RATE
(fXTAL = 2.4576MHz)
BAUD RATE vs
fXTAL
DGND
300
fXTAL/8192
DGND
VCC
1200
fXTAL/2048
VCC
DGND
9600
fXTAL/256
VCC
19200
fXTAL/128
+5V
CS
15
RD
14
28
SEL
1
27
16
17
ADDRESS
DECODER
26
25
D7
18
D0
RD
D7
D0
P
XTAL
DGND
ADDRESS
BUS
DATA
BUS
VEE
VCC
WR
-5V
HI- 7159A
FIGURE 3. PARALLEL MODE CONFIGURATION
FIGURE 4A. SERIAL MODE 0
FIGURE 4B. SERIAL MODE 1
FIGURE 4C. SERIAL MODE 2
FIGURE 4. SERIAL MODE CONFIGURATIONS
+5V
CS
15
14
1
27
16
26
18
17
28
CLK
RXD/TXD
CLK
RXD/TXD
SM0
SEL
8051
19
SM1
10
11
VEE
VCC
DGND
HI-7159A
-5V
20-25
+5V
P
XTAL
+5V
TXD
RXD
TXD
SM0
+5V
SM1
BRS0
BRS1
+5V
20K
XTAL
VCC
VEE
CS
SEL
DGND
-5V
+5V
UART/
P
15
14
1
27
16
19
18
24
25
26
17
28
20 - 23
HI-7159A
+5V
15
14
1
27
16
26
19
18
28
TXD
RXD
TXD
24
25
BRS0
BRS1
+5V
SEL
UART/
P
20K
SM1
+5V
SM0
ADDRESS
SELECT
20
21
22
23
17
VCC
VEE
DGND
HI-7159A
-5V
TO UP TO 31 ADDITIONAL
HI-7159As
XTAL
HI-7159A