iv
Table of Contents OP7100
Digital I/O ............................................................................................35
Serial Communication..........................................................................36
RS-232 Communication ..................................................................38
Receive and Transmit Buffers.......................................................38
CTS/RTS Control .........................................................................39
Modem Communication ............................................................... 39
RS-485 Communication ..................................................................40
Developing an RS-485 Network...................................................40
Use of the Serial Ports.....................................................................42
Z180 Serial Ports ..........................................................................43
Asynchronous Serial Communication Interface...................................45
ASCI Status Registers .....................................................................45
/DCD0 (Data Carrier Detect)........................................................45
TIE (Transmitter Interrupt Enable)...............................................45
TDRE (Transmitter Data Register Empty) ...................................45
CTS1E (CTS Enable, Channel 1) .................................................46
RIE (Receiver Interrupt Enable)...................................................46
FE (Framing Error) .......................................................................46
PE (Parity Error)...........................................................................46
OVRN (Overrun Error) ................................................................46
RDRF (Receiver Data Register Full)............................................46
ASCI Control Register A ................................................................47
MOD0–MOD2 (Data Format Mode Bits) ....................................47
MPBR/EFR (Multiprocessor Bit Receive/Error Flag Reset)........47
/RTS0 (Request to Send, Channel 0) ............................................47
CKA1D (CKA1 Disable)..............................................................47
TE (Transmitter Enable) ...............................................................47
RE (Receiver Enable) ...................................................................48
MPE (Multiprocessor Enable) ......................................................48
ASCI Control Register B ................................................................48
SS (Source/Speed Select) .............................................................48
DR (Divide Ratio) ........................................................................49
PEO (Parity Even/Odd) ................................................................49
/CTS/PS (Clear to Send/Prescaler) ...............................................49
MP (Multiprocessor Mode) ..........................................................49
MPBT (Multiprocessor Bit Transmit) ..........................................49
Chapter 4: Software 51
Supplied Software................................................................................52
Digital I/O ............................................................................................53
Real-Time Clock (RTC).......................................................................54
Display .................................................................................................55
Flash EPROM .................................................................................55