IBM EM78P809N manual Register Bank

Page 56

EM78P809N

8-Bit Microcontroller

Register Bank 2

Address

 

Name

 

Reset Type

Bit 7

 

Bit 6

 

Bit 5

 

Bit 4

 

Bit 3

 

Bit 2

 

Bit 1

 

Bit 0

 

 

 

 

Bit Name

URTD8

 

UMODE1

 

UMODE0

 

BRATE2

 

BRATE1

 

BRATE0

 

UTBE

 

TXE

0x05

 

URC1

 

Power-On

U

 

0

 

0

 

0

 

0

 

0

 

0

 

0

 

/RESET and WDT time out

P

 

P

 

P

 

P

 

P

 

P

 

0

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Wake-Up from SLEEP, IDLE mode

P

 

0

 

P

 

P

 

P

 

P

 

P

 

0

 

 

 

 

Bit Name

X

 

X

 

SBIM1

 

SBIM0

 

UINVEN

 

X

 

X

 

X

0x06

 

URC2

 

Power-On

U

 

U

 

0

 

0

 

0

 

U

 

U

 

U

 

/RESET and WDT time out

U

 

U

 

P

 

P

 

P

 

U

 

U

 

U

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Wake-Up from SLEEP, IDLE mode

U

 

U

 

P

 

P

 

P

 

U

 

U

 

U

 

 

 

 

Bit Name

URRD8

 

EVEN

 

PRE

 

PRERR

 

OVERR

 

FMERR

 

URBF

 

RXE

0x07

 

URS

 

Power-On

U

 

0

 

0

 

0

 

0

 

0

 

0

 

0

 

/RESET and WDT time out

P

 

P

 

P

 

0

 

0

 

0

 

0

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Wake-Up from SLEEP, IDLE mode

P

 

P

 

P

 

P

 

P

 

P

 

P

 

0

 

 

 

 

Bit Name

URRD7

 

URRD6

 

URRD5

 

URRD4

 

URRD3

 

URRD2

 

URRD1

 

URRD0

0x08

 

URRD

 

Power-On

U

 

U

 

U

 

U

 

U

 

U

 

U

 

U

 

/RESET and WDT time out

P

 

P

 

P

 

P

 

P

 

P

 

P

 

P

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Wake-Up from SLEEP, IDLE mode

P

 

P

 

P

 

P

 

P

 

P

 

P

 

P

 

 

 

 

Bit Name

URTD 7

 

URTD 6

 

URTD 5

 

URTD 4

 

URTD 3

 

URTD 2

 

URTD 1

 

URTD0

0x09

 

URTD

Power-On

U

 

U

 

U

 

U

 

U

 

U

 

U

 

U

/RESET and WDT time out

P

 

P

 

P

 

P

 

P

 

P

 

P

 

P

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Wake-Up from SLEEP, IDLE mode

P

 

P

 

P

 

P

 

P

 

P

 

P

 

P

Register Bank 3

Address

Name

Reset Type

 

Bit 7

 

Bit 6

 

Bit 5

 

Bit 4

 

Bit 3

 

Bit 2

 

Bit 1

 

Bit 0

 

 

Bit Name

 

SMP

 

DCOL

 

BRS2

 

BRS1

 

BRS0

 

EDS

 

DORD

 

WBE

0x05

SPIC1

Power-On

 

0

 

0

 

0

 

0

 

0

 

0

 

0

 

0

/RESET and WDT time out

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

 

 

P

 

P

 

P

 

P

 

P

 

P

 

P

 

 

 

Wake-Up from SLEEP, IDLE mode

 

P

 

P

 

P

 

P

 

P

 

P

 

P

 

P

 

 

Bit Name

 

SPIS

 

X

 

X

 

X

 

X

 

SPIM1

 

SPIM0

 

RBF

0x06

SPIC2

Power-On

 

0

 

0

 

0

 

0

 

0

 

0

 

0

 

0

/RESET and WDT time out

 

0

 

0

 

0

 

0

 

0

 

 

 

 

 

0

 

 

 

 

 

 

 

 

P

 

P

 

 

 

Wake-Up from SLEEP, IDLE mode

 

0

 

P

 

P

 

P

 

P

 

P

 

P

 

P

 

 

Bit Name

 

SPID17

 

SPID16

 

SPID15

 

SPID14

 

SPID13

 

SPID12

 

SPID11

 

SPID10

0x07

SPID1

Power-On

 

U

 

U

 

U

 

U

 

U

 

U

 

U

 

U

/RESET and WDT time out

 

P

 

P

 

P

 

P

 

P

 

P

 

P

 

P

 

 

 

 

 

 

 

 

 

 

 

 

Wake-Up from SLEEP, IDLE mode

 

P

 

P

 

P

 

P

 

P

 

P

 

P

 

P

 

 

Bit Name

 

X

 

X

 

/PHE81

 

/PHE80

 

/PHE63

 

/PHE62

 

/PHE61

 

/PHE60

0x0A

PHC1

Power-On

 

U

 

U

 

1

 

1

 

1

 

1

 

1

 

1

/RESET and WDT time out

 

U

 

U

 

1

 

1

 

1

 

1

 

1

 

1

 

 

 

 

 

 

 

 

 

 

 

 

Wake-Up from SLEEP, IDLE mode

 

U

 

U

 

P

 

P

 

P

 

P

 

P

 

P

 

 

Bit Name

 

X

 

X

 

/PLE81

 

/PLE80

 

/PLE63

 

/PLE62

 

/PLE61

 

/PLE60

0x0B

PLC2

Power-On

 

U

 

U

 

1

 

1

 

1

 

1

 

1

 

1

/RESET and WDT time out

 

U

 

U

 

1

 

1

 

1

 

1

 

1

 

1

 

 

 

 

 

 

 

 

 

 

 

 

Wake-Up from SLEEP, IDLE mode

 

U

 

U

 

P

 

P

 

P

 

P

 

P

 

P

 

 

Bit Name

 

X

 

X

 

X

 

X

 

/PHE73

 

/PHE72

 

/PHE71

 

/PHE70

0x0C

PHC2

Power-On

 

U

 

U

 

U

 

U

 

1

 

1

 

1

 

1

/RESET and WDT time out

 

U

 

U

 

U

 

U

 

1

 

1

 

1

 

1

 

 

 

 

 

 

 

 

 

 

 

 

Wake-Up from SLEEP, IDLE mode

 

U

 

U

 

U

 

U

 

P

 

P

 

P

 

P

 

 

Bit Name

 

X

 

X

 

X

 

X

 

/PLE73

 

/PLE72

 

/PLE71

 

/PLE70

0x0D

PLC2

Power-On

 

U

 

U

 

U

 

U

 

1

 

1

 

1

 

1

/RESET and WDT time out

 

U

 

U

 

U

 

U

 

1

 

1

 

1

 

1

 

 

 

 

 

 

 

 

 

 

 

 

Wake-Up from SLEEP, IDLE mode

 

U

 

U

 

U

 

U

 

P

 

P

 

P

 

P

52

Product Specification (V1.0) 07.26.2005

(This specification is subject to change without further notice)

Image 56
Contents EM78P809N DOC. VersionElan Microelectronics Corporation Contents Specification Revision History CPU Bit MicrocontrollerApplications „ General purposePin Assignment OTP Programming Pins Functional Block Diagram Function DescriptionOperating Registers TbktcR1/TCC − Time Clock /Counter Address 01h R2/PC − Program Counter & Stack Address 02hR3/SR − Status Register Address 03h Bit 7 ~ Bit 6 RBS1 ~ RBS0 R-Register page selectBit 5 Not used RBS1 RBS0General Purpose Register Bank Address 20H ~ 3FH Bit 0 C Carry flag R4/RSR − RAM Select Register Address 04hGRBS1 GRBS0 SIS = 0 Idle mode SIS = 1 Sleep mode PORT6 − Port 6 I/O Data Register Address 06hPORT7 Port 7 I/O Data Register Address 07h PORT8 − Port 8 I/O Data Register Address 08hTC4CR Timer/Counter 4 Control Register Address 0Bh TC4S = 1 StartTC4FF1 TC4FF0 TC4CK2 TC4CK1 TC4CK0Bit Microcontroller TC4D − Timer 4 Data Buffer Address 0Ch ISFR1 − Interrupt Status Flag Register 1 Address 0EhBit 7 TC3CAP Software capture control TC3CAP =TC3S = 1 Start TC3CAP TC3S TC3CK1 TC3CK0 TC3MTC3DB − Timer 3 Data Buffer B Address 07h TC2M = 1 Window modeBit 7 ~ Bit 6 ADD1 ~ ADD0 AD low 2-bit data buffer TC2S = 1 StartAdcr − AD Control Register Address 0Bh TC2DH − Timer 2 Data Buffer High Byte Address 09hTC2DL − Timer 2 Data Buffer Low Byte Address 0Ah Bit 3 ADP AD power control Bit 7 ~ Bit 0 ADE7 ~ ADE0 AD input pin enable controlAdic − AD Input Pin Control Address 0Ch Addh − AD High 8-bit Data Buffer Address 0DhBit 7 TEN Keytone enable control TEN = 0 Disable TEN = 1 EnableBit 3 Tbten Time Base Timer Enable Control Bit Microcontroller Tbktc − TBT/Keytone Control Address 0EhBit 3 Uinven Enable Uart TXD and RXD port inverse output Uinven = 0 Disable TXD and RXD port inverse outputUinven = 1 Enable TXD and RXD port inverse output Bit 4 ~ Bit 2 BRATE2 ~ BRATE1 Transmit Baud Rate SelectEven = 0 Odd parity Even = 1 Even parity Bit 5 PRE Enable parity additionBit Microcontroller URS − Uart Status Register Address 07h Bit 2 EDS Data shift out edge select EDS = 0 Rising edge EDS = 1 Falling edgeSMP Dcol BRS2 BRS1 EDS Dord WBETransfer Mode SPIC2 − SPI Control Register 2 Address 06hSpid SPI Data Buffer Address 07h SPID7 SPID6 SPID5 SPID4 SPID3 SPID2 SPID1 SPID0PLE7x = 1 Disable P7x pull low PLC1 Pull Low Control Register 1 Address 0BhPHC2 − Pull High Control Register 2 Address 0Ch PLC2 − Pull Low Control 2 Address 0DhSpecial Purpose Registers AccumulatorControl Register Bit 7 Wdto WDT output selectBit Microcontroller IOC6 ~ IOC9 − I/O Port Control Register Intcr − INT Control Register Address 0BhBit 2 Reserved INT1ES = 0 Rising edge INT1ES = 1 Falling edgeINT Pin Secondary Enable Condition Function Pin External InterruptAdoscr − AD Offset Control Register Address 0Ch EdgeIMR2 − Interrupt Mask Register 2 Address 0Fh Uerrie Urie Utie Tbie EXIE1 TCIE0CPU Operation Mode Registers for CPU operation modeRbank Register Bank bits 7, 6 of R3, R/W Read/Write RbankNormal Mode Switching ControlOperation Mode Registers for AD Converter Circuit AD Converter→ Don’t care → Interrupt request flag will be recorded Conversion Time ADC Data RegisterSampling Time Max. Frequency Max. Conversion Rate per Bit Time Base Timer and Keytone GeneratorADCK10 Tone Output Pin Timing Chart Rbank Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit Uart Universal Asynchronous Receiver/TransmitterRegisters for Uart Circuit Uart Mode Data Format in UartTransmitting ReceivingRegisters for the SPI Circuit SPI Serial Peripheral InterfaceBaud Rate Generator Shift Direction and Sample Phase Transfer ModeBit Transmit Mode Serial ClockBit Microcontroller Bit Receive Mode Bit Transmit/Receive ModeSCK pin Multiple Device Connect /SSRbank Address Name Bit 7 Bit 6 Bit Timer/CounterRegisters for Timer/Counter 2 Circuit Window Mode Timer ModeCounter Mode Window Mode Timing Chart Registers for Timer/Counter 3 CircuitCapture mode Configuration of Timer/Counter3Registers for Timer 4 Circuit TCIF4PDO Mode TCR4TC4 Interrupt PWM Mode12 TCC/WDT & Prescaler 13 I/O Ports Reset and Wake-upReset All interrupt Wake-up from Sleep ModeWake-up from Idle mode Address Name Reset Type Bit Summary of the Initialized Values for RegistersBit Microcontroller Register Bank SCRTC2D9 TC2D8 Register Bank Previous value before reset Reset TypeStatus of RST, T, and P of Status Register Bit Microcontroller General Purpose RegistersController Reset Block Diagram InterruptOscillator Oscillator ModesCrystal Oscillator/Ceramic Resonators Crystal Summary of Maximum Operating SpeedsOscillator Type Frequency Mode C1 pF C2 pF EM78P809NExt. Clock 740External RC Oscillator Mode Crystal/Resonator-Parallel Mode CircuitEnwdtb = 0 Enable Enwdtb = 1 Disable Code Option RegisterCode Option Register Word For design reference onlyPower-on Considerations External Power-on Reset CircuitCustomer ID Register Cyes = 0 One cycle Cyes = 1 Two cyclesResidue-Voltage Protection VddEM78P809N Rin Vdd EM78P809NInstruction Set Vdd 40KR2Binary Instruction Hex Mnemonic Operation Status Affected DECSymbol Parameter Condition Min Typ Max Unit Absolute Maximum RatingsRecommended Operating Conditions Vss =Typical value is based on characterization results at 25C DC Electrical CharacteristicsTa= 25 C, VDD= 5.0V ± 5%, VSS= Ta= 25 C, VDD= 3.0V ± 5%, VSS= Varef AC Electrical Characteristic Symbol Parameter Conditions Min Typ Max UnitTa=- 40C ~ 85 C, VDD=5V ± 5%, VSS=0V = selected prescaler ratioTiming Diagram AC Test Input/Output WaveformPin Count Package Size Package TypesOTP MCU Contents III EM78P809N