EM6605 EM Microelectronic, EM6605 Datasheet - Page 11

no-image

EM6605

Manufacturer Part Number
EM6605
Description
4 bit Microcontroller
Manufacturer
EM Microelectronic
Datasheet
Figure 6.Port A
Additionally, PA3 can also be used as the input terminal for the event counter (see section 8).
The input port PA(0:3) also has individually selectable interrupts. Each port has its own interrupt mask bit in
the MPortA register. When an interrupt occurs inspection of the IRQpA and the IntRq registers allows the
source of the interrupt to be identified. The IRQpA register is automatically cleared by a RESET, by reading
the register. Reading IRQpA register also clears the INTPA flag in IntRq register. At initial RESET the
MPortA is set to 0, thus disabling any input interrupts.
See also section 9 for further details about the interrupt controller.
6.2. PortA registers
Table 12.PortA input status register - PortA
Table 13.PortA Interrupt request register - IRQpA
Table 14.PortA interrupt mask register - MportA
Debounced PA0 is connected to CPU TestVar1
Debounced PA1 is connected to CPU TestVar2
Debounced PA2 is connected to CPU TestVar3
Bit
3
2
1
0
Bit
3
2
1
0
Bit
3
2
1
0
Name
PA3
PA2
PA1
PA0
Name
IRQpa3
IRQpa2
IRQpa1
IRQpa0
Name
MPA3
MPA2
MPA1
MPA0
Reset
-
-
-
-
Reset
0
0
0
0
Reset
0
0
0
0
R/W
R
R
R
R
R/W
R
R
R
R
R/W
R/W
R/W
R/W
R/W
PA3 input status
PA2 input status
PA1 input status
PA0 input status
input PA3 interrupt request flag
input PA2 interrupt request flag
input PA1 interrupt request flag
input PA0 interrupt request flag
interrupt mask for input PA3
interrupt mask for input PA2
interrupt mask for input PA1
interrupt mask for input PA0
Description
Description
Description
© EM Microelectonic-Marin SA, 02/99, Rev. B/243
EM6605
11

Related parts for EM6605