English
Language : 

IA186EM_11 Datasheet, PDF (79/146 Pages) InnovASIC, Inc – 8-Bit/16-Bit Microcontrollers
IA186EM/IA188EM
8-Bit/16-Bit Microcontrollers
Data Sheet
February 25, 2011
5.1.25 PDIR1 (078h) and PDIR0 (072h)
PIO DIRection Registers. Each PIO pin is configured as an input or an output by the
corresponding bit in the PIO Direction register (see Table 44).
Table 44. PIO Mode and PIO Direction Settings
PIO Mode
0
0
1
1
PIO Direction
0
1
0
1
Pin function
Normal operation
PIO input with pullup/pulldown
PIO output
PIO input without pullup/pulldown
The value of the PDIR0 register is FC0Fh at reset (see Table 45).
Table 45. PDIR0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
PDIR15–PDIR0
The value of the PDIR1 register is FFFFh at reset (see Table 46).
Table 46. PDIR1
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
PDIR31–PDIR16
Bits [15–0]—PDIR15–PDIR0 PIO Direction 0 Bits → For each bit, if the value is 1, the
pin is configured as an input. If 0, as an output. The values of these bits correspond to
those in the PIO data registers and PIO mode registers.
Bits [15–0]—PDIR31–PDIR16 PIO Direction 1 Bits → For each bit, if the value is 1, the
pin is configured as an input. If 0, as an output. The values of these bits correspond to
those in the PIO Data registers and PIO Mode registers.
5.1.26 PIOMODE1 (076h) and PIOMODE0 (070h)
PIO MODE Registers. Each PIO pin is configured as an input or an output by the corresponding
bit in the PIO direction register. The bit number of PMODE corresponds to the PIO number (see
Table 44, PIO Mode and PIO Direction Settings). The value of the PIOMODE0 register is
0000h at reset (see Table 47).
Table 47. PIOMODE0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
PMODE15–PMODE0
®
IA211050831-19
http://www.Innovasic.com
UNCONTROLLED WHEN PRINTED OR COPIED
Customer Support:
Page 79 of 146
1-888-824-4184