ELAN Home Systems EM78P459AK, EM78P459AM, EM78P458AM, EM78P458AP manual PIN Assignment

Page 6

3. PIN ASSIGNMENT

EM78P458/459

OTP ROM

P56/CIN+

P57/CO

1

24

2

23

P55/CIN-

P54/TCC

P56/CIN+

P57/CO

P60/ADC1

P61/ADC2

VSS

P62/ADC3

P63/ADC4

P64/ADC5

P65/ADC6

P66/ADC7

1 20

219

318

417

5EM78P458 16

615

714

813

912

1011

P55/CIN-

P54/TCC

OSCI

OSCO

VDD

P53/VREF

P52/PWM2

P51/PWM1

P50/INT

P67/ADC8

P60/ADC1

P61/ADC2

ENTCC

VSS

VSS

P62/ADC3

P63/ADC4

P64/ADC5

P65/ADC6

P66/ADC7

3

 

22

4

 

21

5

EM78P459

20

6

19

7

18

8

17

 

9

 

16

10

 

15

11

 

14

12

 

13

OSCI

OSCO

RESET

VDD

VDD

P53/VREF

P52/PWM2

P51/PWM1

P50/INT

P67/ADC8

 

 

 

 

Fig. 1 Pin Assignment

 

Table 1 EM78P458 Pin Description

 

 

 

 

 

 

 

 

 

 

Symbol

Pin No.

Type

 

Function

 

 

 

 

 

 

 

 

 

VDD

16

-

Power supply.

 

 

 

OSCI

18

I

* XTAL type: Crystal input terminal or external clock input pin.

 

* RC type: RC oscillator input pin.

 

 

 

 

 

 

 

 

 

 

*XTAL type: Output terminal for crystal oscillator or external clock input

 

OSCO

17

O

pin.

 

 

 

*RC type: Clock output with a period of one instruction cycle time, the

 

 

 

 

prescaler is determined by the CONT register.

 

 

 

 

 

* External clock signal input.

 

 

P50

12

I

* General-purpose Input only.

 

 

* Default value while power-on reset.

 

 

 

 

 

 

 

P51 ~ P57

13~15

I/O

* General-purpose I/O pin.

 

 

19, 20,

 

 

* Default value while power-on reset.

 

 

 

1, 2

 

 

 

 

 

 

 

 

 

P60 ~ P67

3, 4,

I/O

* General-purpose I/O pin.

 

 

6~11

* Default value while power-on reset.

 

 

 

 

 

 

INT

12

I

* External interrupt pin triggered by falling edge.

 

 

ADC1~ADC8

3, 4,

I

* Analog to Digital Converter.

 

 

6 ~ 11

* Defined by AD-CMPCON (IOCA0)<2:4>.

 

 

 

 

 

 

PWM1,

13, 14

O

* Pulse width modulation outputs.

 

 

 

 

This specification is subject to change without prior notice.

6

07.01.2003 (V1.3)

Image 6
Contents EM78P458/459 BIT MICRO-CONTROLLEREM78P458/459 Application Note General Description Features EM78P458/459 PIN Assignment EM78P459 Pin Description R0 Indirect Addressing Register Function DescriptionOperational Registers R1 Time Clock /CounterProgram Counter Organization R5 ~ R6 Port 5 ~ Port R3 Status RegisterR4 RAM Select Register R7 ~ R8Data Memory Configuration 10. RB R9 Adcon Analog to Digital ControlRA Addata the converted value of ADC 11. RCRF Interrupt Status Register Special Purpose Registers13. RE 15. R10 ~ R3FInte INT PAB PSR2 PSR1 PSR0 Control RegisterIOC50 ~ IOC60 I/O Port Control Register Bit 0 PSR0 ~ Bit 2 PSR2 TCC/WDT prescaler bitsIOC90 Gcon I/O Configuration & Control of ADC OP2E OP1EVrefs COE IMS2 IMS1 IMS0 CKR1 CKR0 Bit4Bit2 IMS2IMS0 Description of AD Configuration Control BitsIOCB0 Pull-down Control Register IMS2IMS0IOCC0 Open-Drain Control Register IOCD0 Pull-high Control RegisterWdte EIS IOCE0 WDT Control RegisterIOCF0 Interrupt Mask Register Cmpie PWM2IE PWM1IE Adie Exie Icie TcieIOC51 Pwmcon PWM2E PWM1E T2EN T1ENBit 5Bit 3 VOF12VOF10 Offset voltage bits IOC81 PRD1 Period of PWM1CALI1 SIGN1 CALI2 SIGN2IOCB1 PRD2 Period of PWM2 Bit 5Bit 3 VOF22VOF20 Offset voltage bitsTCC/WDT & Prescaler Block Diagram of TCC and WDT I/O PortsCcircuit of I/O Port and I/O Control Register for Port Circuit of I/O Port and I/O Control Register for P60~P67 Reset and Wake-up Function of Reset and Wake-upUsage of Port 6 Input Changed Wake-up/Interrupt Function Contw CLR R1 Status of T, and P of Status Register Values of RST, T, and P after Reset Status of RST, T and P being Affected by EventsInterrupt Analog-To-Digital Converter ADC Interrupt Input CircuitADC Control Register ADCON/R9, AD-CMP-CON/IOCA0, GCON/IOC90 BIT Symbol Iocs Adrun Adpd ADIS2 ADIS1 ADIS0BIT Symbol Vrefs COE IMS2 IMS1 IMS0 CKR1 CKR0 ADCON/R9GCON/IOC90 ADC Data Register ADDATA/RACKR1 and CKR0 Bit 1 and Bit 0 The conversion time select Shows the Gains and the Operating Range of ADCD Conversion Time D Operation During Sleep ModeD Sampling Time Programming Steps/ConsiderationsDemonstration Programs CINT== 0XFIocs Adrun Adpd ADIS2 ADIS1 ADIS0 Dual Sets of PWM Pulse Width Modulation OverviewIncrement Timer Counter Tmrx TMR1H/TWR1L or TMR2H/TWR2L Functional Block Diagram of the Dual PWMsComparator PWM Programming Procedures/StepsPWM Period Prdx PRD1 or PRD2 Period = Prdx + 1 * 4 * 1/Fosc * Tmrx prescale valueTMR1X and TMR2X TMR1H/TWR1L and TMR2H/TMR2L TimerFunction description Prdx PRD1 and PRD2 PWM period registerComparator Timer programming procedures/stepsExternal Reference Signal Programming the Related RegistersUsing as An Operation Amplifier Wake-up from Sleep ModeInterrupt Initialized Values after Reset Summary of the Initialized Values for RegistersCALI1 SIGN1 Oscillator Oscillator ModesEM78P458 Crystal Oscillator/Ceramic Resonators XtalSummary of Maximum Operating Speeds EM78P459EM78P458 EM78P459 HXTLXT VddExternal RC Oscillator Mode RC Oscillator Mode with Internal Capacitor EM78P458 EM78P459 Vcc RextResidue-Voltage Protection Power-on ConsiderationsExternal Power on Reset Circuit EM78P458 EM78P459 RinCode Option Register Word Enwdt Clks PTB HLF RCT HLPBit 5 ~ Bit 0 ID5~ID0 Customer’s ID Bit 11 ~ Bit 9 VOF22~VOF20 Offset voltage bitsInstruction Set List of the instruction set of EM78P458/459ADD A,R AC Test Input/Output Waveform Timing DiagramsReset Timing CLK=0 TCC Input Timing CLKS=0Absolute Maximum Ratings Electrical Characteristics Crystal type, two clocksComparatorOP CharacteristicVdd = 5.0V,Vss=0V,Ta=0 to AC Electrical CharacteristicTa=0C ~ 70 C, VDD=5V±5%, VSS=0VIVR OTP MCU AppendixPackage Types DIP