![](//vs1.manuzoid.com/store/data-gzf/0f99fd7e130a58cbc2d86014d9ecb225/2/000763759.htmlex.zip/bgd.jpg)
- ii -
Contents
3.3 NOTES ...................................................................................................................................53
CHAPTER 4 CLOCK GENERATOR .....................................................................................................................55
4.1 CONFIGURATION AND FUNCTION ...................................................................................55
4.2 NOTES ...................................................................................................................................56
4.2.1 Inputting an external clock .......................................................................................56
4.2.2 Using the Crystal/Ceramic Oscillator ......................................................................56
CHAPTER 5 PORT FUNCTIONS .........................................................................................................................59
5.1 DIGITAL I/O PORTS .............................................................................................................59
5.2 PORT 0...................................................................................................................................60
5.2.1 Hardware Configuration ............................................................................................61
5.2.2 Setting the Input/Output Mode and Control Mode ...............................................61
5.2.3 Operation ....................................................................................................................62
5.2.4 Built-In Pull-Up Resistor ............................................................................................62
5.2.5 Driving Transistors ....................................................................................................62
5.3 PORT 2...................................................................................................................................63
5.3.1 Hardware Configuration ............................................................................................64
5.3.2 Setting the Input Mode and Control Mode ............................................................64
5.3.3 Operation ....................................................................................................................64
5.3.4 Built-In Pull-Up Resistor ............................................................................................65
5.4 PORT 3...................................................................................................................................66
5.4.1 Hardware Configuration ............................................................................................68
5.4.2 Setting the I/O Mode and Control Mode ................................................................71
5.4.3 Operation ....................................................................................................................73
5.4.4 Built-In Pull-Up Resistor ............................................................................................74
5.5 PORT 4...................................................................................................................................75
5.5.1 Hardware Configuration ............................................................................................76
5.5.2 Setting the I/O Mode and Control Mode ................................................................76
5.5.3 Operation ....................................................................................................................77
5.5.4 Built-In Pull-Up Resistor ............................................................................................78
5.5.5 Driving LEDs Directly.................................................................................................79
5.6 PORT 5...................................................................................................................................80
5.6.1 Hardware Configuration ............................................................................................80
5.6.2 Setting the I/O Mode and Control Mode ................................................................80
5.6.3 Operation ....................................................................................................................81
5.6.4 Built-In Pull-Up Resistor ............................................................................................82
5.6.5 Driving LEDs Directly.................................................................................................83
5.7 PORT 6...................................................................................................................................84
5.7.1 Hardware Configuration ............................................................................................85
5.7.2 Setting the I/O Mode and Control Mode ................................................................88
5.7.3 Operation ....................................................................................................................90
5.7.4 Built-In Pull-Up Resistor ............................................................................................91
5.7.5 Note .............................................................................................................................92
5.8 PORT 7...................................................................................................................................92
5.8.1 Hardware Configuration ............................................................................................92
5.8.2 Setting the I/O Mode and Control Mode ................................................................92
5.8.3 Operation ....................................................................................................................93