mc68hc05x4dw Freescale Semiconductor, Inc, mc68hc05x4dw Datasheet - Page 65

no-image

mc68hc05x4dw

Manufacturer Part Number
mc68hc05x4dw
Description
Xc68hc705x4 Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Port B
3-ports
R/W
† Note that R/W is an internal signal, not available to the user.
0
0
1
1
DDR
0
1
0
1
WOI enable and pull-down enable registers control each pin individually;
these registers are memory mapped to the same addresses as port A
data register and data direction register (i.e $00 and $04). When the
AWPS bit in the port configuration register (PCR) is set, port A WOI
enable and pull-down enable registers are selected instead of port A
data and DDR registers. Data and DDR registers are selected when the
AWPS bit in PCR is cleared; this is also cleared at reset. Note that WOI
can be programmed independently of the DDR contents (input or
output).
Port B is an 8-bit bi-directional port. The port B data register is at $0001
and the data direction register (DDR) is at $0005. Reset does not affect
the data register, but clears the data direction register, thereby returning
the ports to inputs. Writing a ‘1’ to a DDR bit sets the corresponding port
bit to output mode. On port B a single WOI enable bit and a single
pull-down enable bit are provided to control all 8 bits together. These two
bits are respectively bit 1 and bit 2 of port configuration register (PCR).
When bit 1 of the PCR is set, WOI is enabled only on those port B pins
that have been programmed as inputs. Note that port B shares pin 1 of
the device with the TCMP function of the 16-bit programmable timer. If
bit 4 of the PCR is set then pin 1 is TCMP and the wired-OR functions
are disabled on this pin. If bit 4 in the PCR is ‘0’ then pin 1 is PB7. On
reset, bits 0–4 of the PCR are cleared.
The I/O pin is in input mode. Data is written into the output data latch.
Freescale Semiconductor, Inc.
Data is written into the output data latch, and output to the I/O pin.
For More Information On This Product,
The I/O pin is in output mode. The output data latch is read.
Table 1. I/O pin functions
Go to: www.freescale.com
Parallel input/output ports
The state of the I/O pin is read.
I/O pin function
Parallel input/output ports
MC68HC05X4 Rev 1.0
Port B

Related parts for mc68hc05x4dw