English
Language : 

MC68HC705P9 Datasheet, PDF (86/160 Pages) Motorola, Inc – HCMOS Microcontroller Unit 
Freescale Semiconductor, Inc.
Parallel Input/Output (I/O) Ports
SDI — Serial Data Input
When the SIOP is enabled, SDI is the SIOP data input.
SDO — Serial Data Output
When the SIOP is enabled, SDO is the SIOP data output.
7.4.2 Data Direction Register B (DDRB)
Data direction register B determines whether each port B pin is an input
or an output.
NOTE:
Enabling and then disabling the SIOP configures data direction register
B for SIOP operation and can also change the port B data register. After
disabling the SIOP, initialize data direction register B and the port B data
register as your application requires.
$0005 Bit 7
6
5
4
3
2
1
Bit 0
Read:
0
0
0
0
0
DDRB7 DDRB6 DDRB5
Write:
Reset: 0
0
0
0
0
0
0
0
= Unimplemented
Figure 7-6. Data Direction Register B (DDRB)
DDRB[7:5] — Data Direction Register B Bits
These read/write bits control port B data direction. Reset clears
DDRB[7:5], configuring all three port B pins as inputs.
1 = Corresponding port B pin configured as output
0 = Corresponding port B pin configured as input
NOTE: Avoid glitches on port B pins by writing to the port B data register before
changing data direction register B bits from 0 to 1.
Figure 7-7 shows the I/O logic of port B.
Technical Data
86
Parallel Input/Output (I/O) Ports
For More Information On This Product,
Go to: www.freescale.com
MC68HC705P9 — Rev. 4.0
MOTOROLA