English
Language : 

MC68HC908JL3E Datasheet, PDF (159/226 Pages) Motorola, Inc – Microcontrollers
Input/Output (I/O) Ports
Port B
Table 12-2 summarizes the operation of the port A pins.
Table 12-2. Port A Pin Functions
PTAPUE Bit
1
0
DDRA
Bit
0
0
PTA Bit
X(1)
X
I/O Pin Mode
Input, VDD(2)
Input, Hi-Z(4)
Accesses to DDRA
Read/Write
DDRA[6:0]
DDRA[6:0]
X
1
X
Output
DDRA[6:0]
Notes:
1. X = Don’t care.
2. I/O pin pulled to VDD by internal pull-up.
3. Writing affects data register, but does not affect input.
4. Hi-Z = High Impedance.
Accesses to PTA
Read
Pin
Pin
Write
PTA[6:0](3)
PTA[6:0](3)
PTA[6:0]
PTA[6:0]
12.4 Port B
Port B is an 8-bit special function port that shares all eight of its port pins
with the analog-to-digital converter (ADC) module, see Section 11.
12.4.1 Port B Data Register (PTB)
The port B data register contains a data latch for each of the eight port B
pins.
Address: $0001
Bit 7
6
5
4
3
2
Read:
PTB7
Write:
PTB6
PTB5
PTB4
PTB3
PTB2
Reset:
Unaffected by reset
Alternative Function: ADC7 ADC6 ADC5 ADC4 ADC3 ADC2
Figure 12-6. Port B Data Register (PTB)
1
PTB1
ADC2
Bit 0
PTB0
ADC0
PTB[7:0] — Port B Data Bits
These read/write bits are software programmable. Data direction of
each port B pin is under the control of the corresponding bit in data
direction register B. Reset has no effect on port B data.
MC68H(R)C908JL3E/JK3E/JK1E — Rev. 2.0
MOTOROLA
Input/Output (I/O) Ports
Technical Data
159