|
MC68HC05J3 Datasheet, PDF (33/92 Pages) Motorola, Inc – High-density Complementary Metal Oxide Semiconductor (HCMOS) Microcomputer Unit | |||
|
◁ |
KIE â Keyboard interrupt enable
1 (set) â Keyboard interrupt enabled on port B.
0 (clear) â Keyboard interrupt disabled.
TCAP â Timer input capture function
1 (set) â PB5 acts as the TCAP input to the 16-bit timer. The pin is forced to
an input state regardless of the data direction bit.
0 (clear) â PB5 functions as a normal I/O pin.
4
TCMP â Timer output compare function
1 (set) â PB4 acts as the TCMP output for the 16-bit timer. The pin is forced to
an output state regardless of the data direction bit.
0 (clear) â PB4 functions as a normal I/O pin.
Bits 3â0 are not implemented on the conï¬guration register and always read zero. Writing to these
bits has no meaning or effect.
4.4.4 Data direction register A (DDRA)
Port A data direction (DDRA)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$0004
0000 0000
Writing a â1â to any bit conï¬gures the corresponding port pin as an output; conversely, writing any
bit to â0â conï¬gures the corresponding port pin as an input.
Reset clears these registers, thus conï¬guring all pins as inputs.
4.4.5 Data direction register B (DDRB)
Port B data direction (DDRB)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$0005 0
0
0000 0000
Writing a â1â to any bit conï¬gures the corresponding port pin as an output; conversely, writing any
bit to â0â conï¬gures the corresponding port pin as an input.
Reset clears these registers, thus conï¬guring all pins as inputs.
MC68HC05J3
INPUT/OUTPUT PORTS
TPG
MOTOROLA
4-5
|
▷ |