Contents
Contents
1
2
3
4
5
General Description ................................................................................................3
Features...................................................................................................................3
Pin Assignment .......................................................................................................4
Functional Block Diagram ......................................................................................5
Pin Description........................................................................................................6
5.1 EM78P341NP/M...............................................................................................6
5.2 EM78P342NP/M...............................................................................................7
5.3 EM78P343NP/M/KM.........................................................................................8
Function Description ..............................................................................................9
6
6.1 Operational Registers.......................................................................................9
6.1.1 R0 (Indirect Address Register) .......................................................................... 9
6.1.2 R1 (Time Clock /Counter)................................................................................... 9
6.1.3 R2 (Program Counter) and Stack ....................................................................... 9
6.1.3.1 Data Memory Configuration................................................................11
6.1.4 R3 (Status Register) ......................................................................................... 12
6.1.5 R4 (RAM Select Register) ................................................................................ 12
6.1.6 R5 ~ R6 (Port 5 ~ Port 6).................................................................................. 13
6.1.7 R7 (Port 7) ........................................................................................................ 13
6.1.8 R8 (AISR: ADC Input Select Register) ............................................................. 14
6.1.9 R9 (ADCON: ADC Control Register) ................................................................ 15
6.1.10 RA (ADOC: ADC Offset Calibration Register) .................................................. 17
6.1.11 RB (ADDATA: Converted Value of ADC).......................................................... 17
6.1.12 RC (ADDATA1H: Converted Value of ADC) ..................................................... 17
6.1.13 RD (ADDATA1L: Converted Value of ADC)...................................................... 18
6.1.14 RE (Interrupt Status 2 & Wake-up Control Register)........................................ 18
6.1.15 RF (Interrupt Status 2 Register)........................................................................ 19
6.1.16 R10 ~ R3F ........................................................................................................ 19
6.2 Special Purpose Registers.............................................................................. 20
6.2.1 A (Accumulator) ................................................................................................ 20
6.2.2 CONT (Control Register) .................................................................................. 20
6.2.3 IOC50 ~ IOC70 (I/O Port Control Register)...................................................... 21
6.2.4 IOC80 (Comparator and TCCA Control Register) ............................................ 21
6.2.5 IOC90 (TCCB and TCCC Control Register)..................................................... 22
6.2.6 IOCA0 (IR and TCCC Scale Control Register)................................................. 23
6.2.7 IOCB0 (Pull-Down Control Register)................................................................ 24
6.2.8 IOCC0 (Open-Drain Control Register) ............................................................. 24
6.2.9 IOCD0 (Pull-high Control Register) .................................................................. 25
Product Specification (V1.0) 12.01.2006
•iii