227
5.7
Port 6
5.7.1
Overview
Port 6 is a 6-bit I/O port. Port 6 pins also function as 8-bit timer input/output pins (TMRI0,
TMCI0, TMO0, TMRI1, TMCI1, and TMO1), interrupt input pins (
IRQ13
to
IRQ8
), and DMAC
input/output pins (
DREQ0
,
TEND0
,
DACK0
,
DREQ1
,
TEND1
, and
DACK1
). Port 6 pin
functions are the same in all operating modes.
DMAC input/output pins can be switched to port 7 by setting the DMACS bit in PFCR2. When
pins P65 to P60 are used for IRQ input, they are Schmitt-trigger inputs.
Figure 5.6 shows the port 6 pin configuration.
P65 (I/O) / TMO1 (output) /
DACK1
(output) /
IRQ13
(input)
P64 (I/O) / TMO0 (output) /
DACK0
(output) /
IRQ12
(input)
P63 (I/O) / TMCI1 (input) /
TEND1
(output) /
IRQ11
(input)
P62 (I/O) / TMCI0 (input) /
TEND0
(output) /
IRQ10
(input)
P61 (I/O) / TMRI1 (input) /
DREQ1
(input) /
IRQ9
(input)
P60 (I/O) / TMRI0 (input) /
DREQ0
(input) /
IRQ8
(input)
Port 6
Port 6 pins
Figure 5.6 Port 6 Pin Functions
5.7.2
Register Configuration
Table 5.11 shows the port 6 register configuration.
Table 5.11
Port 6 Registers
Name
Abbreviation
R/W
Initial Value
Address
*
Port 6 data direction register
P6DDR
W
H'00
H'FE25
Port 6 data register
P6DR
R/W
H'00
H'FF65
Port 6 register
PORT6
R
Undefined
H'FF55
Port function control register 2
PFCR2
R/W
H'0E
H'FE34
Note:
*
Lower 16 bits of the address.
Содержание H8S/2670
Страница 5: ......
Страница 9: ......
Страница 199: ...182 ...
Страница 361: ...344 ...
Страница 393: ...376 ...
Страница 647: ...630 ...