mc68hc705v12 Freescale Semiconductor, Inc, mc68hc705v12 Datasheet - Page 85

no-image

mc68hc705v12

Manufacturer Part Number
mc68hc705v12
Description
M68hc05-based Mcu Hc05 Freescale Semiconductor
Manufacturer
Freescale Semiconductor, Inc
Datasheet
7.5.2 Port C Data Direction Register
7.5.3 Port C I/O Pin Interrupts
MC68HC705V12
CAUTION:
NOTE:
Rev. 3.0
data register will return the logic state of the corresponding I/O pin. The
port C data register is unaffected by reset.
Each port C I/O pin may be programmed as an input by clearing the
corresponding bit in the port C data direction register (DDRC) or
programmed as an output by setting the corresponding bit in the DDRC.
The DDRC can be accessed at address $0006 and is cleared by reset.
The inputs of all eight bits of port C are ANDed into the IRQ input of the
CPU. See
own interrupt request latch to enable the user to differentiate between
the IRQ sources. The port IRQ inputs are falling edge sensitive only. Any
port C pin can be disabled as an interrupt input by setting the
corresponding DDR bit or data register bit. To enable port pin interrupts,
the corresponding DDR and data register bits must both be cleared. Any
port C pin that is configured as an output will not cause a port interrupt
when the pin transitions from a 1 to a 0.
The BIH and BIL instructions will apply only to the level on the IRQ pin
itself and not to the internal IRQ input to the CPU. Therefore, BIH and
BIL cannot be used to obtain the result of the logical combination of the
eight pins of port C.
Exercise caution when writing to the port C data register and data
direction register due to their interaction with the IRQ subsystem as
depicted in
should be exercised in using read/modify/write instructions on these
registers.
Freescale Semiconductor, Inc.
For More Information On This Product,
Figure 4-2. IRQ Function Block
Figure 4-2. IRQ Function Block
Go to: www.freescale.com
Parallel Input/Output (I/O)
Diagram. This port has its
Diagram. Special care
Parallel Input/Output (I/O)
Advance Information
Port C

Related parts for mc68hc705v12