PMC156/PMS156 Series
8-bit IO-Type Controller
Data Sheet
Version 0.05 – July 07, 2016
Copyright
2016 by PADAUK Technology Co., Ltd., all rights reserved
10F-2, No. 1, Sec. 2, Dong-Da Road, Hsin-Chu 300, Taiwan, R.O.C.
TEL: 886-3-532-7598
www.padauk.com.tw
PMC156/PMS156 Series
8-bit IO-Type Controller
IMPORTANT NOTICE
PADAUK Technology reserves the right to make changes to its products or to terminate
production of its products at any time without notice. Customers are strongly
recommended to contact PADAUK Technology for the latest information and verify
whether the information is correct and complete before placing orders.
PADAUK Technology products are not warranted to be suitable for use in life-support
applications or other critical applications. PADAUK Technology assumes no liability for
such applications. Critical applications include, but are not limited to, those that may
involve potential risks of death, personal injury, fire or severe property damage.
PADAUK Technology assumes no responsibility for any issue caused by a customer’s
product design. Customers should design and verify their products within the ranges
guaranteed by PADAUK Technology. In order to minimize the risks in customers’ products,
customers should design a product with adequate operating safeguards.
©Copyright 2016, PADAUK Technology Co. Ltd
Page 2 of 67
PDK-DS-PMX156-EN_V005 – July 7, 2016
PMC156/PMS156 Series
8-bit IO-Type Controller
Table of Contents
1.
Features ............................................................................................................................... 7
1.1.
1.2.
1.3.
Special Features ..................................................................................................................... 7
System Features ..................................................................................................................... 7
CPU Features ......................................................................................................................... 7
2.
3.
4.
General Description and Block Diagram .......................................................................... 8
Pin Assignment and Functional Description.................................................................... 9
Device Characteristics ..................................................................................................... 14
4.1.
4.2.
4.3.
4.4.
4.5.
4.6.
4.7.
4.8.
4.9.
4.10.
4.11.
4.12.
4.13.
4.14.
4.15.
DC/AC Characteristics .......................................................................................................... 14
Absolute Maximum Ratings .................................................................................................. 15
Typical IHRC Frequency vs. VDD (calibrated to 16MHz) ..................................................... 16
Typical ILRC Frequency vs. VDD ......................................................................................... 16
Typical IHRC Frequency vs. Temperature (calibrated to 16MHz) ........................................ 17
Typical ILRC Frequency vs. Temperature ............................................................................ 17
Typical Operating Current vs. VDD and CLK=IHRC/n .......................................................... 18
Typical Operating Current vs. VDD and CLK=ILRC/n .......................................................... 18
Typical Lowest Operating Current vs. VDD and CLK=ILRC/n .............................................. 19
Typical operating current vs. VDD @ system clock = 4MHz EOSC / n ................................ 19
Typical operating current vs. VDD @ system clock = 32kHz EOSC / n ............................... 20
Typical IO pull high resistance .............................................................................................. 21
Typical IO driving current (I
OH
) and sink current (I
OL
) ............................................................ 21
Typical IO input high / low threshold voltage (V
IH
/V
IL
) ........................................................... 22
Typical VDD/2 Bias output voltage ....................................................................................... 22
Program Memory – OTP ....................................................................................................... 23
Boot Up ................................................................................................................................. 23
Data Memory – SRAM .......................................................................................................... 24
Oscillator and clock ............................................................................................................... 24
5.4.1. Internal High RC oscillator and Internal Low RC oscillator ........................................ 24
5.4.2. IHRC calibration ......................................................................................................... 24
5.4.3. IHRC Frequency Calibration and System Clock ........................................................ 25
5.4.4. External Crystal Oscillator.......................................................................................... 26
5.4.5. System Clock and LVR levels .................................................................................... 28
5.4.6. System Clock Switching............................................................................................. 28
16-bit Timer (Timer16) .......................................................................................................... 30
Watchdog Timer.................................................................................................................... 32
Interrupt................................................................................................................................. 32
Power-Save and Power-Down .............................................................................................. 35
5.8.1. Power-Save mode (“stopexe”) ................................................................................... 35
5.8.2. Power-Down mode (“stopsys”) .................................................................................. 36
Page 3 of 67
PDK-DS-PMX156-EN_V005 – July 7, 2016
5.
Functional Description ..................................................................................................... 23
5.1.
5.2.
5.3.
5.4.
5.5
5.6
5.7
5.8
©Copyright 2016, PADAUK Technology Co. Ltd
PMC156/PMS156 Series
8-bit IO-Type Controller
5.9
5.10
5.8.3. Wake-up..................................................................................................................... 37
IO Pins .................................................................................................................................. 39
Reset and LVR...................................................................................................................... 40
5.10.1. Reset........................................................................................................................ 40
5.10.2. LVR reset ................................................................................................................. 40
5.10.3. Notice for LVR reset................................................................................................. 40
LCD Bias Voltage Generator ................................................................................................ 42
ACC Status Flag Register (flag), IO address = 0x00 ............................................................ 43
Stack Pointer
Register
(sp), IO address = 0x02 ................................................................... 43
Clock Mode Register (clkmd), IO address = 0x03 ................................................................ 43
Interrupt Enable Register (inten), IO address = 0x04 ........................................................... 44
Interrupt Request Register (intrq), IO address = 0x05 .......................................................... 44
Timer 16 mode Register (t16m), IO address = 0x06............................................................. 44
External Oscillator setting Register (eoscr,
write only),
IO address = 0x0a .......................... 45
IHRC oscillator control Register (ihrcr,
write only),
IO address = 0x0b ................................. 45
Interrupt Edge Select Register (integs), IO address = 0x0c.................................................. 45
Port A Digital Input Enable Register (padier), IO address = 0x0d......................................... 46
Port B Digital Input Enable Register (pbdier), IO address = 0x0e......................................... 47
Port A Data Registers (pa), IO address = 0x10 .................................................................... 48
Port A Control Registers (pac), IO address = 0x11 .............................................................. 48
Port A Pull-High Registers (paph), IO address = 0x12 ......................................................... 48
Port B Data Registers (pb), IO address = 0x14 .................................................................... 48
Port B Control Registers (pbc), IO address = 0x15 .............................................................. 48
Port B Pull-High Registers (pbph), IO address = 0x16 ......................................................... 48
MISC Register (misc), IO address = 0x3b ............................................................................ 49
Data Transfer Instructions..................................................................................................... 51
Arithmetic Operation Instructions .......................................................................................... 53
Shift Operation Instructions................................................................................................... 55
Logic Operation Instructions ................................................................................................. 56
Bit Operation Instructions...................................................................................................... 58
Conditional Operation Instructions ........................................................................................ 58
System control Instructions ................................................................................................... 59
Summary of Instructions Execution Cycle ............................................................................ 61
Summary of affected flags by Instructions ............................................................................ 62
Using IC ................................................................................................................................ 63
8.1.1.
IO pin usage and setting ................................................................................... 63
8.1.2.
Interrupt ............................................................................................................. 64
8.1.3.
System clock switching ..................................................................................... 64
8.1.4.
Power down mode, wakeup and watchdog ....................................................... 65
8.1.5.
TIMER time out ................................................................................................. 65
Page 4 of 67
PDK-DS-PMX156-EN_V005 – July 7, 2016
5.11
6.
IO Registers....................................................................................................................... 43
6.1
6.2
6.3
6.4
6.5
6.6
6.7
6.8
6.9
6.10
6.11
6.12
6.13
6.14
6.15
6.16
6.17
6.18
7.
Instructions ....................................................................................................................... 50
7.1
7.2
7.3
7.4
7.5
7.6
7.7
7.8
7.9
8.
Special Notes .................................................................................................................... 63
8.1.
©Copyright 2016, PADAUK Technology Co. Ltd
PMC156/PMS156 Series
8-bit IO-Type Controller
8.1.6.
LVR ................................................................................................................... 65
8.1.7.
Instructions ........................................................................................................ 66
8.1.8.
RAM definition ................................................................................................... 66
8.1.9.
LCD COM pin application .................................................................................. 66
8.1.10.
Program writing ................................................................................................. 66
Using ICE .............................................................................................................................. 67
Warning ................................................................................................................................. 67
8.2.
8.3.
©Copyright 2016, PADAUK Technology Co. Ltd
Page 5 of 67
PDK-DS-PMX156-EN_V005 – July 7, 2016