사용자 설명서차례COVER1Major Revisions in This Edition7PREFACE9CHAPTER 1 GENERAL (uPD78054 Subseries)371.1 Features371.2 Applications381.3 Ordering Information381.4 Quality Grade391.5 Pin Configuration (Top View)401.6 78K/0 Series Expansion431.7 Block Diagram451.8 Outline of Function461.9 Differences between Standard Quality Grade Products and (A) Products481.10 Mask Options48CHAPTER 2 GENERAL (uPD78054Y Subseries)492.1 Features492.2 Applications502.3 Ordering Information502.4 Quality Grade502.5 Pin Configuration (Top View)512.6 78K/0 Series Expansion542.7 Block Diagram562.8 Outline of Function572.9 Mask Options58CHAPTER 3 PIN FUNCTION (uPD78054 Subseries)593.1 Pin Function List593.1.1 Normal operating mode pins593.1.2 PROM programming mode pins (PROM versions only)633.2 Description of Pin Functions643.2.1 P00 to P07 (Port 0)643.2.2 P10 to P17 (Port 1)653.2.3 P20 to P27 (Port 2)653.2.4 P30 to P37 (Port 3)663.2.5 P40 to P47 (Port 4)673.2.6 P50 to P57 (Port 5)673.2.7 P60 to P67 (Port 6)673.2.8 P70 to P72 (Port 7)683.2.9 P120 to P127 (Port 12)693.2.10 P130 and P131 (Port 13)693.2.11 AVREF0693.2.12 AVREF1693.2.13 AVDD703.2.14 AVSS703.2.15 RESET#703.2.16 X1 and X2703.2.17 XT1 and XT2703.2.18 VDD703.2.19 VSS703.2.20 VPP (PROM versions only)703.2.21 IC (Mask ROM version only)703.3 Input/output Circuits and Recommended Connection of Unused Pins71CHAPTER 4 PIN FUNCTION (uPD78054Y Subseries)754.1 Pin Function List754.1.1 Normal operating mode pins754.1.2 PROM programming mode pins (PROM versions only)794.2 Description of Pin Functions804.2.1 P00 to P07 (Port 0)804.2.2 P10 to P17 (Port 1)814.2.3 P20 to P27 (Port 2)814.2.4 P30 to P37 (Port 3)824.2.5 P40 to P47 (Port 4)824.2.6 P50 to P57 (Port 5)834.2.7 P60 to P67 (Port 6)834.2.8 P70 to P72 (Port 7)844.2.9 P120 to P127 (Port 12)844.2.10 P130 and P131 (Port 13)854.2.11 AVREF0854.2.12 AVREF1854.2.13 AVDD854.2.14 AVSS854.2.15 RESET#854.2.16 X1 and X2864.2.17 XT1 and XT2864.2.18 VDD864.2.19 VSS864.2.20 VPP (PROM versions only)864.2.21 IC (Mask ROM version only)864.3 Input/output Circuits and Recommended Connection of Unused Pins87CHAPTER 5 CPU ARCHITECTURE915.1 Memory Spaces915.1.1 Internal program memory space995.1.2 Internal data memory space1005.1.3 Special Function Register (SFR) area1005.1.4 External memory space1005.1.5 Data memory addressing1015.2 Processor Registers1095.2.1 Control registers1095.2.2 General registers1125.2.3 Special Function Register (SFR)1145.3 Instruction Address Addressing1185.3.1 Relative addressing1185.3.2 Immediate addressing1195.3.3 Table indirect addressing1205.3.4 Register addressing1205.4 Operand Address Addressing1215.4.1 Implied addressing1215.4.2 Register addressing1225.4.3 Direct addressing1235.4.4 Short direct addressing1245.4.5 Special-Function Register (SFR) addressing1255.4.6 Register indirect addressing1265.4.7 Based addressing1275.4.8 Based indexed addressing1285.4.9 Stack addressing128CHAPTER 6 PORT FUNCTIONS1296.1 Port Functions1296.2 Port Configuration1346.2.1 Port 01346.2.2 Port 11366.2.3 Port 2 (uPD78054 Subseries)1376.2.4 Port 2 (uPD78054Y Subseries)1396.2.5 Port 31416.2.6 Port 41426.2.7 Port 51436.2.8 Port 61446.2.9 Port 71466.2.10 Port 121486.2.11 Port 131496.3 Port Function Control Registers1506.4 Port Function Operations1566.4.1 Writing to input/output port1566.4.2 Reading from input/output port1566.4.3 Operations on input/output port1576.5 Selection of Mask Option157CHAPTER 7 CLOCK GENERATOR1597.1 Clock Generator Functions1597.2 Clock Generator Configuration1597.3 Clock Generator Control Register1617.4 System Clock Oscillator1657.4.1 Main system clock oscillator1657.4.2 Subsystem clock oscillator1667.4.3 Scaler1687.4.4 When no subsystem clocks are used1687.5 Clock Generator Operations1697.5.1 Main system clock operations1707.5.2 Subsystem clock operations1717.6 Changing System Clock and CPU Clock Settings1717.6.1 Time required for switchover between system clock and CPU clock1717.6.2 System clock and CPU clock switching procedure173CHAPTER 8 16-BIT TIMER/EVENT COUNTER1758.1 Outline of Timers Incorporated in the uPD78054, 78054Y Subseries1758.2 16-Bit Timer/Event Counter Functions1778.3 16-Bit Timer/Event Counter Configuration1798.4 16-Bit Timer/Event Counter Control Registers1828.5 16-Bit Timer/Event Counter Operations1918.5.1 Interval timer operations1918.5.2 PWM output operations1938.5.3 PPG output operations1968.5.4 Pulse width measurement operations1978.5.5 External event counter operation2048.5.6 Square-wave output operation2068.5.7 One-shot pulse output operation2088.6 16-Bit Timer/Event Counter Operating Precautions212CHAPTER 9 8-BIT TIMER/EVENT COUNTERS 1 AND 22159.1 8-Bit Timer/Event Counters 1 and 2 Functions2159.1.1 8-bit timer/event counter mode2159.1.2 16-bit timer/event counter mode2189.2 8-Bit Timer/Event Counters 1 and 2 Configurations2209.3 8-Bit Timer/Event Counters 1 and 2 Control Registers2239.4 8-Bit Timer/Event Counters 1 and 2 Operations2289.4.1 8-bit timer/event counter mode2289.4.2 16-bit timer/event counter mode2349.5 Cautions on 8-Bit Timer/Event Counters 1 and 2238CHAPTER 10 WATCH TIMER24110.1 Watch Timer Functions24110.2 Watch Timer Configuration24210.3 Watch Timer Control Registers24210.4 Watch Timer Operations24610.4.1 Watch timer operation24610.4.2 Interval timer operation246CHAPTER 11 WATCHDOG TIMER24711.1 Watchdog Timer Functions24711.2 Watchdog Timer Configuration24911.3 Watchdog Timer Control Registers25011.4 Watchdog Timer Operations25311.4.1 Watchdog timer operation25311.4.2 Interval timer operation254CHAPTER 12 CLOCK OUTPUT CONTROL CIRCUIT25512.1 Clock Output Control Circuit Functions25512.2 Clock Output Control Circuit Configuration25612.3 Clock Output Function Control Registers257CHAPTER 13 BUZZER OUTPUT CONTROL CIRCUIT26113.1 Buzzer Output Control Circuit Functions26113.2 Buzzer Output Control Circuit Configuration26113.3 Buzzer Output Function Control Registers262CHAPTER 14 A/D CONVERTER26514.1 A/D Converter Functions26514.2 A/D Converter Configuration26514.3 A/D Converter Control Registers26914.4 A/D Converter Operations27314.4.1 Basic operations of A/D converter27314.4.2 Input voltage and conversion results27514.4.3 A/D converter operating mode27614.5 A/D Converter Cautions278CHAPTER 15 D/A CONVERTER28115.1 D/A Converter Functions28115.2 D/A Converter Configuration28215.3 D/A Converter Control Registers28415.4 Operations of D/A Converter28515.5 Cautions Related to D/A Converter286CHAPTER 16 SERIAL INTERFACE CHANNEL 0 (uPD78054 Subseries)28716.1 Serial Interface Channel 0 Functions28816.2 Serial Interface Channel 0 Configuration29016.3 Serial Interface Channel 0 Control Registers29416.4 Serial Interface Channel 0 Operations30116.4.1 Operation stop mode30116.4.2 3-wire serial I/O mode operation30216.4.3 SBI mode operation30716.4.4 2-wire serial I/O mode operation33316.4.5 SCK0#/P27 pin output manipulation339CHAPTER 17 SERIAL INTERFACE CHANNEL 0 (uPD78054Y Subseries)34117.1 Serial Interface Channel 0 Functions34217.2 Serial Interface Channel 0 Configuration34417.3 Serial Interface Channel 0 Control Registers34817.4 Serial Interface Channel 0 Operations35617.4.1 Operation stop mode35617.4.2 3-wire serial I/O mode operation35717.4.3 2-wire serial I/O mode operation36117.4.4 I2C bus mode operation36717.4.5 Cautions on use of I2C bus mode38517.4.6 Restrictions in I2C bus mode38817.4.7 SCK0#/SCL/P27 pin output manipulation390CHAPTER 18 SERIAL INTERFACE CHANNEL 139318.1 Serial Interface Channel 1 Functions39318.2 Serial Interface Channel 1 Configuration39418.3 Serial Interface Channel 1 Control Registers39718.4 Serial Interface Channel 1 Operations40518.4.1 Operation stop mode40518.4.2 3-wire serial I/O mode operation40618.4.3 3-wire serial I/O mode operation with automatic transmit/receive function409CHAPTER 19 SERIAL INTERFACE CHANNEL 243919.1 Serial Interface Channel 2 Functions43919.2 Serial Interface Channel 2 Configuration44019.3 Serial Interface Channel 2 Control Registers44419.4 Serial Interface Channel 2 Operation45219.4.1 Operation stop mode45219.4.2 Asynchronous serial interface (UART) mode45419.4.3 3-wire serial I/O mode46719.4.4 Limitations when UART mode is used474CHAPTER 20 REAL-TIME OUTPUT PORT47720.1 Real-Time Output Port Functions47720.2 Real-Time Output Port Configuration47820.3 Real-Time Output Port Control Registers480CHAPTER 21 INTERRUPT AND TEST FUNCTIONS48321.1 Interrupt Function Types48321.2 Interrupt Sources and Configuration48421.3 Interrupt Function Control Registers48821.4 Interrupt Servicing Operations49721.4.1 Non-maskable interrupt request acknowledge operation49721.4.2 Maskable interrupt request acknowledge operation50021.4.3 Software interrupt request acknowledge operation50321.4.4 Multiple interrupt servicing50321.4.5 Interrupt request reserve50621.5 Test Functions50721.5.1 Registers controlling the test function50721.5.2 Test input signal acknowledge operation509CHAPTER 22 EXTERNAL DEVICE EXPANSION FUNCTION51122.1 External Device Expansion Functions51122.2 External Device Expansion Function Control Register51622.3 External Device Expansion Function Timing51822.4 Example of Connection with Memory523CHAPTER 23 STANDBY FUNCTION52523.1 Standby Function and Configuration52523.1.1 Standby function52523.1.2 Standby function control register52623.2 Standby Function Operations52723.2.1 HALT mode52723.2.2 STOP mode530CHAPTER 24 RESET FUNCTION53324.1 Reset Function533CHAPTER 25 ROM CORRECTION53725.1 ROM Correction Functions53725.2 ROM Correction Configuration53725.3 ROM Correction Control Registers53925.4 ROM Correction Application54025.5 ROM Correction Example54325.6 Program Execution Flow54425.7 Cautions on ROM Correction546CHAPTER 26 uPD78P054, 78P05854726.1 Memory Size Switching Register (uPD78P054)54926.2 Memory Size Switching Register (uPD78P058)55026.3 Internal Expansion RAM Size Switching Register55126.4 PROM Programming55226.4.1 Operating modes55226.4.2 PROM write procedure55426.4.3 PROM reading procedure55826.5 Erasure Procedure (uPD78P054KK-T and 78P058KK-T Only)55926.6 Opaque Film Masking the Window (uPD78P054KK-T and 78P058KK-T Only)55926.7 Screening of One-Time PROM Versions559CHAPTER 27 INSTRUCTION SET56127.1 Legends Used in Operation List56227.1.1 Operand identifiers and description methods56227.1.2 Description of "operation" column56327.1.3 Description of "flag operation" column56327.2 Operation List56427.3 Instructions Listed by Addressing Type572APPENDIX A DIFFERENCES BETWEEN uPD78054, 78054Y SUBSERIES AND uPD78058F, 78058FY SUBSERIES577APPENDIX B DEVELOPMENT TOOLS579B.1 Language Processing Software582B.2 PROM Writing Tools584B.2.1 Hardware584B.2.2 Software584B.3 Debugging Tools585B.3.1 Hardware585B.3.2 Software587B.4 OS for IBM PC589B.5 Upgrading Former In-circuit Emulators for 78K/0 Series to IE-78001-R-A589APPENDIX C EMBEDDED SOFTWARE593APPENDIX D REGISTER INDEX595D.1 Register Index595APPENDIX E REVISION HISTORY599크기: 3.21메가바이트페이지: 603Language: English매뉴얼 열기