
ML610Q421/ML610Q422/ML610421 User’s Manual
Contents
Contents – 8
21.2.3 Port 4 Direction Register (P4DIR) .................................................................................................... 21-5
21.2.4 Port 4 Control Registers 0, 1 (P4CON0, P4CON1) .......................................................................... 21-6
21.2.5 Port 4 Mode Registers 0, 1 (P4MOD0, P4MOD1) ........................................................................... 21-8
21.3 Description of Operation......................................................................................................................... 21-11
21.3.1 Input/Output Port Functions............................................................................................................ 21-11
21.3.2 Secondary and Tertiary Functions .................................................................................................. 21-11
Chapter 22
22. Port A ............................................................................................................................................................ 22-1
22.1 Overview................................................................................................................................................... 22-1
22.1.1 Features ............................................................................................................................................. 22-1
22.1.2 Configuration .................................................................................................................................... 22-1
22.1.3 List of Pins ........................................................................................................................................ 22-1
22.2 Description of Registers ............................................................................................................................ 22-2
22.2.1 List of Registers ................................................................................................................................ 22-2
22.2.2 Port A Data Register (PAD).............................................................................................................. 22-3
22.2.3 Port A Direction Register (PADIR) .................................................................................................. 22-4
22.2.4 Port A Control Registers 0, 1 (PACON0, PACON1) ....................................................................... 22-5
22.3 Description of Operation........................................................................................................................... 22-7
22.3.1 Input/Output Port Functions.............................................................................................................. 22-7
Chapter 23
23. Melody Driver .............................................................................................................................................. 23-1
23.1 Overview................................................................................................................................................... 23-1
23.1.1 Features ............................................................................................................................................. 23-1
23.1.2 Configuration .................................................................................................................................... 23-1
23.1.3 List of Pins ........................................................................................................................................ 23-1
23.2 Description of Registers ............................................................................................................................ 23-2
23.2.1 List of Registers ................................................................................................................................ 23-2
23.2.2 Melody 0 Control Register (MD0CON) ........................................................................................... 23-3
23.2.3 Melody 0 Tempo Code Register (MD0TMP) ................................................................................... 23-4
23.2.4 Melody 0 Scale Code Register (MD0TON) ...................................................................................... 23-5
23.2.5 Melody 0 Tone Length Code Register (MD0LEN) .......................................................................... 23-6
23.3 Description of Operation........................................................................................................................... 23-7
23.3.1 Operation of Melody Output ............................................................................................................. 23-7
23.3.2 Tempo Codes .................................................................................................................................... 23-8
23.3.3 Tone Length Codes ........................................................................................................................... 23-9
23.3.4 Scale Codes ..................................................................................................................................... 23-10
23.3.5 Example of Using Melody Circuit .................................................................................................. 23-11
23.3.6 Operations of Buzzer Output .......................................................................................................... 23-12
23.4 Specifying port registers ......................................................................................................................... 23-13
23.4.1 Functioning P22 (MD0) as the Melody or Buzzer output ............................................................... 23-13
Chapter 24
24. RC Oscillation Type A/D Converter ............................................................................................................. 24-1
24.1 Overview................................................................................................................................................... 24-1
24.1.1 Features ............................................................................................................................................. 24-1
24.1.2 Configuration .................................................................................................................................... 24-1
24.1.3 List of Pins ........................................................................................................................................ 24-2
24.2 Description of Registers ............................................................................................................................ 24-3
24.2.1
List of Registers ................................................................................................................................ 24-3
24.2.2 RC-ADC Counter A Registers (RADCA0–2) .................................................................................. 24-4
24.2.3 RC-ADC Counter B Registers (RADCB0–2) ................................................................................... 24-5
24.2.4 RC-ADC Mode Register (RADMOD) .............................................................................................. 24-6
24.2.5 RC-ADC Control Register (RADCON) ............................................................................................ 24-7
24.3 Description of Operation........................................................................................................................... 24-8
Содержание ML610421
Страница 1: ...ML610Q421 ML610Q422 ML610421 User s Manual Issue Date Feb 9 2015 FEUL610Q421 06...
Страница 15: ...Chapter 1 Overview...
Страница 44: ...Chapter 2 CPU and Memory Space...
Страница 49: ...Chapter 3 Reset Function...
Страница 53: ...Chapter 4 MCU Control Function...
Страница 69: ...Chapter 5 Interrupts INTs...
Страница 93: ...Chapter 6 Clock Generation Circuit...
Страница 110: ...Chapter 7 Time Base Counter...
Страница 121: ...Chapter 8 Capture...
Страница 129: ...Chapter 9 1 kHz Timer 1kHzTM...
Страница 135: ...Chapter 10 Timers...
Страница 160: ...Chapter 11 PWM...
Страница 172: ...Chapter 12 Watchdog Timer...
Страница 180: ...Chapter 13 Synchronous Serial Port...
Страница 195: ...Chapter 14 UART...
Страница 216: ...Chapter 15 I2 C Bus Interface...
Страница 231: ...Chapter 16 NMI Pin...
Страница 237: ...Chapter 17 Port 0...
Страница 246: ...Chapter 18 Port 1...
Страница 252: ...Chapter 19 Port 2...
Страница 259: ...Chapter 20 Port 3...
Страница 270: ...Chapter 21 Port 4...
Страница 282: ...Chapter 22 Port A...
Страница 290: ...Chapter 23 Melody Driver...
Страница 304: ...Chapter 24 RC Oscillation Type A D Converter...
Страница 327: ...Chapter 25 Successive Approximation Type A D Converter...
Страница 338: ...Chapter 26 LCD Drivers...
Страница 371: ...Chapter 27 Battery Level Detector...
Страница 378: ...Chapter 28 Power Supply Circuit...
Страница 381: ...Chapter 29 On Chip Debug Function...
Страница 384: ...Appendixes...
Страница 435: ...Revision History...