Programmable I/O Signals
Am186™CC/CH/CU Microcontrollers User’s Manual
9-5
9.4
REGISTERS
The 16 registers listed in Table 9-2 program the PIO signals. Appendix A summarizes the
bits in all the registers. For a complete description of all the peripheral registers, see the
Am186™CC/CH/CU Microcontrollers Register Set Manual, order #21916.
9.5
OPERATION
9.5.1
Usage
Note: Before using the PIOs, ensure multiplexed pins are configured to reflect the use of
PIO and not other functionality (see Table 9-1 on page 9-3).
To define a pin to be used as a PIO, use the following process:
1. Set the applicable bits in the PIO Mode and PIO Direction registers. To avoid changing
system PIO functionality unintentionally, it is good programming practice to do a read-
modify-write when setting these bits.
2. Manipulate data with the PIO Data, PIO Set, and PIO Clear registers.
9.5.2
Defining the PIO Signal as Input or Output
Table 9-3 shows how the bit settings for the PIO Mode and PIO Direction registers affect
signal function. The internal pullup and pulldown resistors each have a value of
approximately 10 K
Ω
.
Table 9-2
PIO Register Summary
Offset
Register
Mnemonic
Register Name
Description
3C0h
PIOMODE0
PIO Mode 0
Set PIO15–PIO0 to PIO or alternate function, and as input
or output (see Table 9-3).
3C2h
PIODIR0
PIO Direction 0
3C4h
PIODATA0
PIO Data 0
Stores read or write data driven on outputs PIO15–PIO0.
Reads of this register reflect the value of the pin.
3C6h
PIOSET0
PIO Set 0
Sets PIO Data register contents for PIO15–PIO0.
3C8h
PIOCLR0
PIO Clear 0
Clears PIO Data register contents for PIO15–PIO0.
3CAh
PIOMODE1
PIO Mode 1
Set PIO31–PIO16 to PIO or alternate function, and as input
or output (see Table 9-3).
3CCh
PIODIR1
PIO Direction 1
3CEh
PIODATA1
PIO Data 1
Stores read or write data driven on outputs PIO31–PIO16.
Reads of this register reflect the value of the pin.
3D0h
PIOSET1
PIO Set 1
Sets PIO Data register contents for PIO31–PIO16.
3D2h
PIOCLR1
PIO Clear 1
Clears PIO Data register contents for PIO31–PIO16.
3D4h
PIOMODE2
PIO Mode 2
Set PIO47–PIO32 to PIO or alternate function, and as input
or output (see Table 9-3).
3D6h
PIODIR2
PIO Direction 2
3D8h
PIODATA2
PIO Data 2
Stores read or write data driven on outputs PIO47–PIO32.
Reads of this register reflect the value of the pin.
3DAh
PIOSET2
PIO Set 2
Sets PIO Data register contents for PIO47–PIO32.
3DCh
PIOCLR2
PIO Clear 2
Clears PIO Data register contents for PIO47–PIO32.
Содержание Am186 CC
Страница 1: ...Am186 CC CH CU Microcontrollers User s Manual Order 21914B...
Страница 4: ...iv Am186 CC CH CU Microcontrollers User s Manual...
Страница 18: ...Table of Contents xviii Am186 CC CH CU Microcontrollers User s Manual...
Страница 24: ...Introduction xxiv Am186 CC CH CU Microcontrollers User s Manual...
Страница 39: ...Architectural Overview Am186 CC CH CU Microcontrollers User s Manual 1 15 Figure 1 6 32 Channel Linecard CH CC...
Страница 40: ...Architectural Overview 1 16 Am186 CC CH CU Microcontrollers User s Manual...
Страница 86: ...System Overview 3 36 Am186 CC CH CU Microcontrollers User s Manual...
Страница 92: ...Emulator Support 4 6 Am186 CC CH CU Microcontrollers User s Manual...
Страница 112: ...DRAM Controller 6 8 Am186 CC CH CU Microcontrollers User s Manual...
Страница 134: ...Interrupts 7 22 Am186 CC CH CU Microcontrollers User s Manual...
Страница 186: ...Programmable I O Signals 9 8 Am186 CC CH CU Microcontrollers User s Manual...
Страница 200: ...Watchdog Timer 11 6 Am186 CC CH CU Microcontrollers User s Manual...
Страница 232: ...Asynchronous Serial Ports UARTs 13 24 Am186 CC CH CU Microcontrollers User s Manual...
Страница 242: ...Synchronous Serial Port SSI 14 10 Am186 CC CH CU Microcontrollers User s Manual...
Страница 264: ...High Level Data Link Control HDLC 15 22 Am186 CC CH CU Microcontrollers User s Manual...
Страница 332: ...Universal Serial Bus USB 18 34 Am186 CC CH CU Microcontrollers User s Manual...
Страница 348: ...Register Summary A 16 Am186 CC CH CU Microcontrollers User s Manual...
Страница 376: ...Index Index 18 Am186 CC CH CU Microcontrollers User s Manual...