Am186äER and Am188äER Microcontrollers User’s Manual
Advanced Micro Devices, Inc. All rights reserved
Documentation and Literature
Customer Service
If YOU have QUESTIONS, WE’RE Here to Help YOU
Hotline and World Wide Web Support
Page
Table of Contents
Chip Select Unit
Timer Control Unit
Chapter DMA Controller
Viii Table of Contents
PCS MCS
List of Figures
Figure A-1
Processor Release Level PRL Register High-Order Byte Values
List of Tables
Xii Table of Contents
Intended Audience
Introduction and Overview
Design Philosophy
Purpose of this Manual
E86 Microcontroller Family
AMD Documentation
Features and Performance
Features and Performance
KEY Features and Benefits
Distinctive Characteristics
Features and Performance
Am186ER Microcontroller Block Diagram
Am188ER Microcontroller Block Diagram
Clock Generation
Application Considerations
Serial Communications Port
Memory Interface
THIRD-PARTY Development Support Products
Programming
Programming
Register SET
Bits 15-12 -Reserved
Processor Status Flags Register
Bit 1 Reserved
Memory Organization and Address Generation
Bit 5 Reserved
Bit 3 Reserved
Instruction SET
I/O Space
Mnemonic Instruction Name
Instruction Set
JB/JNAE
OUT
Segment Register Implicit Segment Selection Rule
Segments
Data Types
Segment Register Selection Rules
Supported Data Types
Memory Operands
Memory Addressing Mode Examples
Addressing Modes
Register and Immediate Operands
A19-A0 Address Bus output, three-state, synchronous
System Overview
PIN Descriptions
Pin Terminology
Aden
Address Latch Enable output, synchronous
Three-state, output, synchronous
Bus High Enable, Am186ER Microcontroller Only
Address Enable, Am186ER Microcontroller Only
Asynchronous Ready input, asynchronous, level-sensitive
DMA Requests input, synchronous, level-sensitive
Data Enable output, three-state, synchronous
Clock Output a output, synchronous
Clock Output B output, synchronous
Slave Select input, asynchronous
Bus Hold Request input, synchronous, level-sensitive
Maskable Interrupt Request 0 input, asynchronous
Maskable Interrupt Request 1 input, asynchronous
Interrupt Acknowledge 1 output, synchronous
Maskable Interrupt Request 2 input, asynchronous
Interrupt Acknowledge 0 output, synchronous
Maskable Interrupt Request 3 input, asynchronous
Automatic Refresh output, synchronous
Once Mode Request 0 input
Midrange Memory Chip Select
Output, synchronous, internal pullup
Peripheral Chip Select 6 output, synchronous
Peripheral Chip Selects output, synchronous
Peripheral Chip Select 5 output, synchronous
Latched Address Bit 1 output, synchronous
System Overview
PIO Pin Assignments-Numeric Listing
PIO No Associated Pin Power-On Reset Status
PIO Pin Assignments-Alphabetic Listing
Associated Pin PIO No Power-On Reset Status
Refresh 2 three-state, output, synchronous
Reset input, asynchronous, level-sensitive
Address Enable input, internal pullup
Read Strobe output, synchronous, three-state
Bus Cycle Status Bit 6 output, synchronous
Internal Memory Disable input, internal pullup
Show Read Enable input, internal pullup
Bus Cycle Status output, three-state, synchronous
Serial Data input/output, synchronous
Serial Data Enables output, synchronous
Timer Input 0 input, synchronous, edge-sensitive
Serial Clock output, synchronous, three-state
Once Mode Request 1 input, internal pullup
Timer Input 1 input, synchronous, edge-sensitive
Timer Output 0 output, synchronous
Timer Output 1 output, synchronous
Write Low Byte, Am186ER Microcontroller Only
Power Supply input
Write High Byte, Am186ER Microcontroller Only
Output, three-state, synchronous
Pins That Are Used by Emulators
BUS Operation
Clkouta
A19-A0 Address AD7-AD0
Pseudo Static RAM Psram Support
Byte Write Enables
BUS Interface Unit
Nonmultiplexed Address Bus
System Overview
Min
Clock and Power Management Unit
Phase-Locked Loop PLL
Maximum and Minimum Clock Frequencies Mode X1/X2
External Source Clock
Crystal-Driven Clock Source
System Clocks
Power-Save Operation
System Overview
Peripheral Control Block
Peripheral Control Block
Overview
Peripheral Control Block Register Map
Timer 1 Count Register
Bit 13 Reserved
Bit 15 Reserved
Reset Configuration Register RESCON, offset F6h
Reset Configuration Register RESCON, Offset F6h
Bits 7-0 Reserved -Value is undefined
Processor Release Level Register PRL, Offset F4h
Bits 7-3 Reserved -Read back as
Power-Save Control Register PDCON, Offset F0h
Divider Factor
Initialization and Processor Reset
Registers not listed in this table are undefined at reset
Peripheral Control Block
Chip Select Unit
Chip Select Unit
Chip Select Overlap
Chip Select Timing
Ready and WAIT-STATE Programming
Chip Select Registers
Memory Block Starting
Upper Memory Chip Select Register UMCS, Offset A0h
Bit 15 Reserved-Set to
Umcs Block Size Programming Values
Bits 6 Reserved- Set to Bits 5-3 Reserved- Set to
Bits 11-8 Reserved
Memory Block Ending
Low Memory Chip Select Register LMCS, Offset A2h
Lmcs Block Size Programming Values
Bits 11-8 Reserved- Set to
Midrange Memory Chip Select Register MMCS, offset A6h
Midrange Memory Chip Select Register MMCS, Offset A6h
Bits 8-3 Reserved -Set to
Total Block Individual
PCS and MCS Auxiliary Register MPCS, Offset A8h
Bit 15 Reserved- Set to
MCS Block Size Programming
Bits 5-3 Reserved -Set to
Peripheral Chip Select Register PACS, offset A4h
Peripheral Chip Select Register PACS, Offset A4h
PCS3-PCS0 Wait-State Encoding Wait States
Bits 6-4 Reserved -Set to
PCS Address Ranges Line
Low High
Chip Select Unit
Internal Memory
Internal Memory
Interaction with External RAM
Emulator and Debug Modes
Internal Memory Disable
Show Read Enable
Bits 8-0 Reserved -Set to
Internal Memory Chip Select Register IMCS, Offset ACh
Internal Memory
Refresh Control Unit
Refresh Control Unit
Memory Partition Register MDRAM, Offset E0h
Bits 8-0 Reserved -Read back as
Bits 14-9 Reserved -Read back as
Enable RCU Register EDRAM, Offset E4h
Clock Prescaler Register CDRAM, Offset E2h
Interrupt Vector Table
Interrupt Control Unit
Definitions of Interrupt Terms
Interrupt Type
Interrupt Priority
Interrupt Enable Flag if
Maskable and Nonmaskable Interrupts
Interrupt Mask Bit
Overall
Software Exceptions
Am186ER and Am188ER Microcontroller Interrupt Types
Interrupt Conditions and Sequence
Maskable Hardware Interrupt Priority
Interrupt Priority
Nonmaskable Interrupts and Software Interrupt Priority
Nonmaskable Interrupt-NMI Interrupt Type 02h
Divide Error Exception Interrupt Type 00h
Software Exceptions, Traps, and NMI
Trace Interrupt Interrupt Type 01h
Unused Opcode Exception Interrupt Type 06h
Breakpoint Interrupt Interrupt Type 03h
Into Detected Overflow Exception Interrupt Type 04h
Array Bounds Exception Interrupt Type 05h
External Interrupt Acknowledge Bus Cycles
Interrupt Acknowledge
Interrupt Controller Reset Conditions
Fully Nested Mode
Master Mode Operation
Cascade Mode Interrupt Controller Connections
Cascade Mode
End-of-Interrupt Write to the EOI Register
Special Fully Nested Mode
Operation in a Polled Environment
Master Mode Interrupt Controller Registers
Value of I0CON and I1CON at reset is 000Fh
Priority Level
Bits 15-5 Reserved -Set to
INT4 Control Register I4CON, offset 40h
3 INT4 Control Register I4CON, Offset 40h Master Mode
Bits 15-4 Reserved -Set to
Value of Wdcon at reset is 000Fh
Serial Port Interrupt Control Register SPICON, offset 44h
Bits 15-5 Reserved -Set to Bit 4 Reserved-Set to
10 Interrupt Status Register INTSTS, offset 30h
Interrupt Status Register INTSTS, Offset 30h Master Mode
Bits 15-11 Reserved
Interrupt Request Register REQST, Offset 2Eh Master Mode
12 In-Service Register INSERV, offset 2Ch
In-Service Register INSERV, Offset 2Ch Master Mode
Priority Field Mask Master Mode PR2-PR0
Priority Mask Register PRIMSK, Offset 2Ah Master Mode
14 Interrupt Mask Register IMASK, offset 28h
Interrupt Mask Register IMASK, Offset 28h Master Mode
Bits 14-5 Reserved -Set to
Poll Status Register POLLST, Offset 26h Master Mode
16 Poll Register POLL, offset 24h
Poll Register POLL, Offset 24h Master Mode
Bits 14-5 Reserved
End-of-Interrupt Register EOI, Offset 22h Master Mode
Slave Mode Interrupt Controller Registers
Slave Mode Operation
Slave Mode Interrupt Nesting
These registers are set to 000Fh on reset
20 Interrupt Status Register INTSTS, offset 30h
Interrupt Status Register INTSTS, Offset 30h Slave Mode
21 Interrupt Request Register REQST, offset 2Eh
Interrupt Request Register REQST, Offset 2Eh Slave Mode
22 In-Service Register INSERV, offset 2Ch
In-Service Register INSERV, Offset 2Ch Slave Mode
Priority Field Mask Slave Mode PR2-PR0
Priority Mask Register PRIMSK, Offset 2Ah Slave Mode
24 Interrupt Mask Register IMASK, offset 28h
Interrupt Mask Register IMASK, Offset 28h Slave Mode
25 Specific End-of-Interrupt Register EOI, offset 22h
Bits 15-3 Reserved -Write as
Bits 2-0 Reserved -Read as
Interrupt Vector Register INTVEC, Offset 20h Slave Mode
Bits 15-8 Reserved -Read as
Interrupt Control Unit
Programmable Registers
Timer Control Unit
Timer Control Unit Register Summary Offsetfrom
Timer Control Unit
Timer Operating Frequency
Bits 11-6 Reserved -Set to
Timer Control Unit
Bits 4-1 Reserved -Set to
Timer 2 Mode and Control Register T2CON, Offset 66h
Bits 12-6 Reserved -Set to
TC15-TC0
Value of these registers at reset is undefined
Timer Control Unit
DMA Controller 10-1
DMA Controller
DMA Operation
DMA Controller Register Summary Offsetfrom
10-2 DMA Controller
Programmable DMA Registers
DMA Controller 10-3
DMA Control Registers D0CON, Offset CAh, D1CON, Offset DAh
10-4 DMA Controller
Synchronization Type
Sync Type
DMA Controller 10-5
DMA Transfer Count Registers D0TC, D1TC, offsets C8h and D8h
10-6 DMA Controller
DMA Controller 10-7
10-8 DMA Controller
DMA Controller 10-9
10-10 DMA Controller
DMA Requests
DMA Controller 10-11
Synchronization Timing
Source Synchronization Timing
Destination Synchronization Timing
10-12 DMA Controller
DMA Acknowledge
DMA Priority
DMA Programming
DMA Controller 10-13
DMA Channels on Reset
10-14 DMA Controller
Asynchronous Serial Port 11-1
Asynchronous Serial Port
Asynchronous Serial Port Register Summary Offsetfrom
11-2 Asynchronous Serial Port
Serial Port Control Register SPCT, Offset 80h
Asynchronous Serial Port 11-3
Parity Mode Bit Settings
11-4 Asynchronous Serial Port
Serial Port Status Register SPSTS, Offset 82h
Bits 15-7 Reserved -Set to
Asynchronous Serial Port 11-5
Serial Port Transmit Data Register SPTD, Offset 84h
Bits 15-8 Reserved
11-6 Asynchronous Serial Port
Serial Port Receive Data Register SPRD, Offset 86h
Asynchronous Serial Port 11-7
Serial Port Baud Rate Divisor Register SPBAUD, Offset 88h
11-8 Asynchronous Serial Port
Synchronous Serial Interface 12-1
Synchronous Serial Interface
Synchronous Serial Interface Register Summary Offset from
12-2 Synchronous Serial Interface
Four-Pin Interface
Synchronous Serial Interface 12-3
Synchronous Serial Status Register SSS, Offset 10h
Bits 3-2 Reserved -Set to
Synchronous Serial Control Register SSC, Offset 12h
Bits 15-6 Reserved -Set to
Synchronous Serial Interface 12-5
Bits 15-8 Reserved -Set to
12-6 Synchronous Serial Interface
Synchronous Serial Receive Register SSR, Offset 18h
Synchronous Serial Interface 12-7
SSI Programming
Synchronous Serial Interface Multiple Read
Synchronous Serial Interface Multiple Write
Programmable I/O Pins 13-1
Programmable I/O Pins
13-2
Registers PIOMODE1, 76h PDIR0, 78h PDATA0, 7Ah
PIO Mode and PIO Direction Settings Pin Function
PIO Mode Registers
PIO Mode 1 Register PIOMODE1, Offset 76h
PIO Mode 0 Register PIOMODE0, Offset 70h
13-4
PIO Direction Registers
PIO Direction 1 Register PDIR1, Offset 78h
PIO Direction 0 Register PDIR0, Offset 72h
PIO Data Register 0 PDATA0, Offset 74h
Programmable I/O Pins 13-5
PIO Data Registers
PIO Data Register 1 PDATA1, Offset 7Ah
13-6
Register Summary
Register Summary
Rescon
T1CMPB
Figure A-1 Internal Register Summary
Memory Partition Register Mdram
DMA 0 Control Register D0CON
Internal Memory Chip Select Register Imcs
Serial Port Baud Rate Divisor Register Spbaud
PMODE15-PMODE0
Timer 2 Maxcount Compare a Register T2CMPA
Timer 0 Maxcount Compare B Register T0CMPB
Sfnm
Interrupt Request Register Reqst Master Mode
Interrupt Request Register Reqst Slave Mode
Interrupt Mask Register Imask
Interrupt Vector Register Intvec Slave Mode
Index
Index
Index
Index
Index
Index
Index
Index
Index
Index
Index