ELAN Home Systems EM78P458AP, EM78P459AK, EM78P459AM, EM78P458AM manual Oscillator Modes

Page 45

EM78P458/459

OTP ROM

Address

Name

Reset Type

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

 

 

 

 

 

 

 

 

 

 

 

 

 

Wake-up from Pin Changed

P

P

P

P

P

P

P

P

 

 

Bit Name

P57

P56

P55

P54

P53

P52

P51

P50

0x05

P5

Power-on

1

1

1

1

1

1

1

1

/RESET and WDT

1

1

1

1

1

1

1

1

 

 

 

 

Wake-up from Pin Changed

P

P

P

P

P

P

P

P

 

 

Bit Name

P67

P66

P65

P64

P63

P62

P61

P60

0x06

P6

Power-on

1

1

1

1

1

1

1

1

/RESET and WDT

1

1

1

1

1

1

1

1

 

 

 

 

Wake-up from Pin Changed

P

P

P

P

P

P

P

P

 

 

Bit Name

-

-

-

-

-

-

-

-

0x7~0x8

R7~R8

Power-on

U

U

U

U

U

U

U

U

/RESET and WDT

P

P

P

P

P

P

P

P

 

 

 

 

Wake-up from Pin Changed

P

P

P

P

P

P

P

P

 

 

Bit Name

X

X

IOCS

ADRUN

ADPD

ADAS2

ADAS1

ADAS0

0x9

R9

Power-on

0

0

0

0

0

0

0

0

(ADCON)

/RESET and WDT

0

0

0

0

0

0

0

0

 

 

 

Wake-up from Pin Changed

P

P

P

P

P

P

P

P

 

 

Bit Name

-

-

-

-

-

-

-

-

0xA

RA

Power-on

0

0

0

0

0

0

0

0

(ADDDATA)

/RESET and WDT

0

0

0

0

0

0

0

0

 

 

 

Wake-up from Pin Changed

P

P

P

P

P

P

P

P

 

 

Bit Name

Bit7

Bit6

Bit5

Bit4

Bit3

Bit2

Bit1

Bit0

0xB

RB

Power-on

0

0

0

0

0

0

0

0

(TMR1L)

/RESET and WDT

0

0

0

0

0

0

0

0

 

 

 

Wake-up from Pin Changed

P

P

P

P

P

P

P

P

 

 

Bit Name

X

X

X

X

X

X

Bit1

Bit0

0xC

RC

Power-on

0

0

0

0

0

0

0

0

(TMR1H)

/RESET and WDT

0

0

0

0

0

0

0

0

 

 

 

Wake-up from Pin Changed

0

0

0

0

0

0

P

P

 

 

Bit Name

Bit7

Bit6

Bit5

Bit4

Bit3

Bit2

Bit1

Bit0

0xD

RD

Power-on

0

0

0

0

0

0

0

0

(TMR2L)

/RESET and WDT

0

0

0

0

0

0

0

0

 

 

 

Wake-up from Pin Changed

P

P

P

P

P

P

P

P

 

 

Bit Name

X

X

X

X

X

X

Bit1

Bit0

0xE

RE

Power-on

0

0

0

0

0

0

0

0

(TMR2H)

/RESET and WDT

0

0

0

0

0

0

0

0

 

 

 

Wake-up from Pin Changed

0

0

0

0

0

0

P

P

 

 

Bit Name

X

CMPIF

PWM2IF

PWM1IF

ADIF

EXIF

ICIF

TCIF

0xF

RF

Power-on

0

0

0

0

0

0

0

0

(ISR)

/RESET and WDT

0

0

0

0

0

0

0

0

 

 

 

Wake-up from Pin Changed

0

P

P

P

P

P

P

P

 

 

Bit Name

-

-

-

-

-

-

-

-

0x10~0x3F

R10~R3F

Power-on

U

U

U

U

U

U

U

U

/RESET and WDT

P

P

P

P

P

P

P

P

 

 

 

 

Wake-up from Pin Changed

P

P

P

P

P

P

P

P

X: not used.

U: unknown or don’t care.

P: previous value before reset.

 

 

t:check Table 5

4.12Oscillator

1.Oscillator Modes

The EM78P458 and EM78P459 can be operated in four different oscillator modes, such as High XTAL oscillator mode (HXT), Low XTAL oscillator mode (LXT), External RC oscillator mode (ERC), and RC oscillator mode with Internal capacitor (IC). Users can select one of them by programming the

This specification is subject to change without prior notice.

45

07.01.2003 (V1.3)

Image 45
Contents BIT MICRO-CONTROLLER EM78P458/459Application Note EM78P458/459General Description Features EM78P458/459 PIN Assignment EM78P459 Pin Description Operational Registers Function DescriptionR0 Indirect Addressing Register R1 Time Clock /CounterProgram Counter Organization R4 RAM Select Register R3 Status RegisterR5 ~ R6 Port 5 ~ Port R7 ~ R8Data Memory Configuration RA Addata the converted value of ADC R9 Adcon Analog to Digital Control10. RB 11. RC13. RE Special Purpose RegistersRF Interrupt Status Register 15. R10 ~ R3FIOC50 ~ IOC60 I/O Port Control Register Control RegisterInte INT PAB PSR2 PSR1 PSR0 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 IOCB0 Pull-down Control Register Description of AD Configuration Control BitsBit4Bit2 IMS2IMS0 IMS2IMS0IOCD0 Pull-high Control Register IOCC0 Open-Drain Control RegisterIOCF0 Interrupt Mask Register IOCE0 WDT Control RegisterWdte EIS Cmpie PWM2IE PWM1IE Adie Exie Icie TciePWM2E PWM1E T2EN T1EN IOC51 PwmconCALI1 SIGN1 IOC81 PRD1 Period of PWM1Bit 5Bit 3 VOF12VOF10 Offset voltage bits CALI2 SIGN2Bit 5Bit 3 VOF22VOF20 Offset voltage bits IOCB1 PRD2 Period of PWM2TCC/WDT & Prescaler I/O Ports Block Diagram of TCC and WDTCcircuit 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 Status of RST, T and P being Affected by Events Values of RST, T, and P after ResetInterrupt Interrupt Input Circuit Analog-To-Digital Converter ADCBIT Symbol Vrefs COE IMS2 IMS1 IMS0 CKR1 CKR0 BIT Symbol Iocs Adrun Adpd ADIS2 ADIS1 ADIS0ADC Control Register ADCON/R9, AD-CMP-CON/IOCA0, GCON/IOC90 ADCON/R9CKR1 and CKR0 Bit 1 and Bit 0 The conversion time select ADC Data Register ADDATA/RAGCON/IOC90 Shows the Gains and the Operating Range of ADCD Sampling Time D Operation During Sleep ModeD Conversion Time Programming Steps/ConsiderationsCINT== 0XF Demonstration ProgramsIocs Adrun Adpd ADIS2 ADIS1 ADIS0 Overview Dual Sets of PWM Pulse Width ModulationFunctional Block Diagram of the Dual PWMs Increment Timer Counter Tmrx TMR1H/TWR1L or TMR2H/TWR2LPWM Period Prdx PRD1 or PRD2 PWM Programming Procedures/StepsComparator Period = Prdx + 1 * 4 * 1/Fosc * Tmrx prescale valueFunction description TimerTMR1X and TMR2X TMR1H/TWR1L and TMR2H/TMR2L Prdx PRD1 and PRD2 PWM period registerExternal Reference Signal Timer programming procedures/stepsComparator Programming the Related Registers Using as An Operation Amplifier Wake-up from Sleep Mode Interrupt Summary of the Initialized Values for Registers Initialized Values after ResetCALI1 SIGN1 Oscillator Modes OscillatorSummary of Maximum Operating Speeds Crystal Oscillator/Ceramic Resonators XtalEM78P458 EM78P459LXT HXTEM78P458 EM78P459 VddExternal RC Oscillator Mode EM78P458 EM78P459 Vcc Rext RC Oscillator Mode with Internal CapacitorExternal Power on Reset Circuit Power-on ConsiderationsResidue-Voltage Protection EM78P458 EM78P459 RinEnwdt Clks PTB HLF RCT HLP Code Option Register WordBit 11 ~ Bit 9 VOF22~VOF20 Offset voltage bits Bit 5 ~ Bit 0 ID5~ID0 Customer’s IDList of the instruction set of EM78P458/459 Instruction SetADD A,R Reset Timing CLK=0 Timing DiagramsAC Test Input/Output Waveform TCC Input Timing CLKS=0Absolute Maximum Ratings Crystal type, two clocks Electrical CharacteristicsAC Electrical CharacteristicTa=0C ~ 70 C, VDD=5V±5%, VSS=0V ComparatorOP CharacteristicVdd = 5.0V,Vss=0V,Ta=0 toIVR Package Types AppendixOTP MCU DIP