CM7000 Series
C-Programmable Core Module
Users Manual
Revision F
CM7000 Series Core Modules Users Manual
Part Number 019-0018 Revision F
Last revised on February 18, 1999 Printed in U.S.A.
Copyright
© 1999 Z-World All rights reserved.
Z-World reserves the right to make changes and improvements to its
products without providing notice.
Trademarks
Dynamic C
®
is a registered trademark of Z-World
Windows
®
is a registered trademark of Microsoft Corporation
PLCBus
is a trademark of Z-World
Hayes Smart Modem
®
is a registered trademark of Hayes
icrocomputer Products, Inc.
Notice to Users
When a system failure may cause serious consequences, protecting life and
property against such consequences with a backup system or safety device
is essential. The buyer agrees that protection against consequences
resulting from system failure is the buyers responsibility.
This device is not approved for life-support or medical systems.
All Z-World products are 100 percent functionally tested. Additional
testing may include visual quality control inspections or mechanical
defects analyzer inspections. Specifications are based on characterization
of tested sample units rather than testing over temperature and voltage of
each unit. Z-World may qualify components to operate within a range of
parameters that is different than the manufacturers recommended range.
This strategy is believed to be more economical and effective. Additional
testing or burn-in of an individual unit is available by special arrangement.
Company Address
Z-World
Telephone:
Facsimile:
Web Site:
E-Mail:
(530) 757-3737
(530) 753-5141
http://www.z w orld.c om
zworld@zworld.com
2900 Spafford Street
Davis, California 95616-6800
USA
T
ABLE OF
C
ONTENTS
About This Manual
Chapter 1:
Overview
ix
13
Introduction .......................................................................................... 14
Features ........................................................................................... 14
Options ................................................................................................. 14
CM7100 Series ............................................................................... 14
CM7200 Series ............................................................................... 16
Software Development and Evaluation Tools ...................................... 17
Chapter 2:
Getting Started
Programming Setup ............................................................................. 20
CM7100 ............................................................................................... 20
CM7100 Method 1 Prototyping Board ...................................... 21
CM7100 Method 2 Development Board .................................... 24
CM7100 Method 3 Embedded in System .................................. 27
CM7100 Method 4 In-Target Direct Development .................... 28
Safeguards .................................................................................... 29
CM7200 ............................................................................................... 30
CM7200 Method 1 Prototyping Board ...................................... 30
CM7200 Method 2 Embedded In System .................................. 32
19
Chapter 3:
System Development
General Description ............................................................................. 34
Interface Description ............................................................................ 36
CM7000 Subsystems ........................................................................... 39
DMA ............................................................................................... 39
DMA Registers ............................................................................. 40
Software ........................................................................................ 41
Programmable Timers ..................................................................... 42
Software ........................................................................................ 42
EPROM ........................................................................................... 43
CM7100 ........................................................................................ 43
CM7200 ........................................................................................ 45
SRAM ............................................................................................. 46
EEPROM ........................................................................................ 47
Real-Time Clock (RTC) .................................................................. 47
33
CM7000
Table of Contents
s
iii
Power Management ......................................................................... 48
Handling Power Fluctuations ........................................................ 49
The Watchdog Timer .................................................................... 52
Power Shutdown and Reset .......................................................... 52
PFI Early Warning ..................................................................... 52
Memory Protection ....................................................................... 53
Battery/Super Capacitor Backup .................................................. 53
System Reset ................................................................................... 55
Serial Communication .......................................................................... 56
RS-232 Communication .................................................................. 57
Receive and Transmit Buffers ....................................................... 58
Echo Option .................................................................................. 58
CTS/RTS Control ......................................................................... 58
XMODEM File Transfer ................................................................. 58
Modem Communication .................................................................. 59
Interrupt Handling for Z180 Port 0 ............................................... 59
Software Support .......................................................................... 60
Master-Slave Networking ............................................................... 60
Software Support .......................................................................... 61
Use of the Serial Ports ..................................................................... 62
Attainable Baud Rates .................................................................. 63
Z180 Serial Ports .......................................................................... 63
Asynchronous Serial Communication Interface ................................... 65
ASCI Status Registers ..................................................................... 65
/DCD0 (Data Carrier Detect) ........................................................ 65
TIE (Transmitter Interrupt Enable) ............................................... 65
TDRE (Transmitter Data Register Empty) ................................... 65
CTS1E (CTS Enable, Channel 1) ................................................. 66
RIE (Receiver Interrupt Enable) ................................................... 66
FE (Framing Error) ....................................................................... 66
PE (Parity Error) ........................................................................... 66
OVRN (Overrun Error) ................................................................ 66
RDRF (Receiver Data Register Full) ............................................ 66
ASCI Control Register A ................................................................ 67
MOD0MOD2 (Data Format Mode Bits) .................................... 67
MPBR/EFR (Multiprocessor Bit Receive/Error Flag Reset) ........ 67
/RTS0 (Request to Send, Channel 0) ............................................ 67
CKA1D (CKA1 Disable) .............................................................. 67
TE (Transmitter Enable) ............................................................... 67
RE (Receiver Enable) ................................................................... 68
MPE (Multiprocessor Enable) ...................................................... 68
iv
s
Table of Contents
CM7000
ASCI Control Register B ................................................................ 68
SS (Source/Speed Select) ............................................................. 68
DR (Divide Ratio) ........................................................................ 69
PEO (Parity Even/Odd) ................................................................ 69
/CTS/PS (Clear to Send/Prescaler) ............................................... 69
MP (Multiprocessor Mode) .......................................................... 69
MPBT (Multiprocessor Bit Transmit) .......................................... 69
Chapter 4:
Design Considerations
Bus Loading ......................................................................................... 72
Bus Timing ........................................................................................... 76
Standard I/O Cycles ............................................................................. 76
Wait State Insertion ......................................................................... 77
System Power ....................................................................................... 78
Power-On and Reset Management ....................................................... 79
Watchdog Timer ................................................................................... 79
I/O Addressing ..................................................................................... 80
71
Appendix A:
Troubleshooting
Out of the Box ...................................................................................... 82
Dynamic C Will Not Start .................................................................... 83
Dynamic C Loses Serial Link .............................................................. 83
CM7000 Repeatedly Resets ................................................................. 83
Common Programming Errors ............................................................. 84
81
Appendix B:
Specifications
Electrical and Mechanical Specifications ............................................ 86
Mechanical Dimensions .................................................................. 87
Jumpers and Headers ........................................................................... 88
CM7100 .......................................................................................... 88
CM7200 .......................................................................................... 89
85
Appendix C:
Memory, I/O Map, and Interrupt Vectors
CM7000 Memory ................................................................................ 92
Execution Timing ............................................................................ 93
Memory Map ....................................................................................... 94
Input/Output Select Map ................................................................. 94
Z180 Internal Input/Output Register Addresses 0x00-0x3F ........... 94
Epson 72423 Timer Registers 0x41800x418F .............................. 96
Other Addresses .............................................................................. 97
I/O Addressing .............................................................................. 97
91
CM7000
Table of Contents
s
v