Datasheet

Rev. 3.00, 03/04, page 185 of 830
8.1.4 Pin Functions
The relationship between register setting values and pin functions are as follows in each operating
mode.
Extended Mode (EXPE = 1):
The function of port 1 pins is switched as shown below according to the P1nDDR bit.
P1nDDR 0 1
ADMXE 0 1 0 1
ABW,
ABW256,
ABWCP
Either bit is 0
(8/16 bit bus)
All 1
(8 bit bus)
Either bit is 0 All 1
(8 bit bus)
Pin function P1n input pin AD7 to AD0
input/output
pin
P1n input
pin
A7 to A0
output pin
Setting
prohibited
P1n output
pin
[Legend]
n = 7 to 0
Single-Chip Mode (EXPE = 0):
The function of port 1 pins is switched as shown below according to the combination of the OEn
bit and P1nDDR bit in PWOERA of PWM and the PWMS bit in PTCNT0.
P1nDDR 0 1 1 1
PWMS 0 1 0
OEn 0 1
Pin function P1n input pin P1n output pin PWn output pin
[Legend]
n = 7 to 0