IBM EM78P312N manual URTD8

Page 51

EM78P312N

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

 

P

 

P

 

P

 

P

 

P

 

P

 

P

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

 

P

 

P

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

Product Specification (V1.0) 10.03.2006

47

(This specification is subject to change without further notice)

Image 51
Contents DOC. Version EM78P312NElan Microelectronics Corporation Contents 16.3 14.116.1 16.2Bit Microcontroller General DescriptionPin Description Symbol Pin No Type FunctionFunction Description Functional Block DiagramOperating Registers Operating RegistersBit Microcontroller R0 Indirect Addressing Register R1 Time Clock /CounterR2 Program Counter & Stack RBS1 RBS0 User Memory SpaceR3 Status Register Bit 7 ~ Bit 6 RBS1 ~ RBS0 R-Register page selectR5 System Control Register Bit 1 SIS Sleep and Idle mode selectSIS = 0 Idle mode SIS = 1 Sleep mode Bit 0 C Carry flag R4 RAM Select RegisterR7 Port 7 I/O Data Register RB Timer/Counter 4 Control RegisterBit Microcontroller R6 Port 6 I/O Data Register Bit 7 ~ Bit 0 P67 ~ P60 8-bit Port 6 I/O data registerFosc=8M RC Timer 4 Data BufferClock Source Resolution Max. Time TC4CK2 TC4CK1 TC4CK0RFInterrupt Status Flag Register Bit Microcontroller RE Interrupt Status Flag RegisterBit 7 TC3CAP Software capture control Bank 1 R5 TC3CR Timer/Counter 3 Control RegisterTC3M = 1 Capture mode Bank 1 R6 TC3DA Timer 3 Data Buffer a Bank 1 R7 TC3DB Timer 3 Data Buffer BBank 1 RB Adcr AD Control Register Bank 1 R9 TC2DH Timer 2 Data Buffer High ByteBank 1 RA TC2DL Timer 2 Data Buffer Low Byte TC2S = 0 Stop and counter clearBank 1 RD Addh AD High 8-bit Data Buffer Bit 7 ~ Bit 0 ADE7 ~ ADE0 AD input pin enable controlBit 5~ Bit 4 ADCK1 ~ ADCK0 AD Conversion Time Select Bank 1 RC Adic AD Input Pin ControlBit TEN = 0 Disable TEN = 1 EnableBit Microcontroller Bank 1 RE Tbktc TBT/Keytone Control Bank 2 R5 URC1 Uart Control RegisterTC2CK1 TC2CK0 Bank 2 R7 URS Uart Status RegisterBit 7 URRD8 Receiving data Bit BRATE2 BRATE1 BRATE0Bank 2 R9 Urtd Uart Transmit Data Buffer Bit 5 PRE Enable parity additionBit 6 Even Select parity check Even = 0 Odd parity Even = 1 Even parityBit 0 WBE Write buffer empty flag. Read only Bit 5 ~ Bit 3 BRS0 ~ BRS2 SPI Clock Source SelectBit 2 EDS Data shift out edge select EDS = 0 Rising edge EDS = 1 Falling edgeSPID7 SPID6 SPID5 SPID4 SPID3 SPID2 SPID1 SPID0 PHE6x = 1 Disable P6x pull highTransfer Mode Bank 3 RB PLC1 Pull Low Control RegisterSpecial Purpose Registers TC2ES = 0 Rising edge TC2ES = 1 Falling edge IOC6 ~ IOC9 − I/O Port Control RegisterIntcr − INT Control Register Address 0Bh INT1ES = 0 Rising edge INT1ES = 1 Falling edgeExternal Interrupt Adoscr − AD Offset Control Register Address 0ChCali Sign Uerrie Urie Utie Tbie EXIE1 TCIE0 IMR2 − Interrupt Mask Register 2 Address 0FhOperation Mode CPU Operation ModeRegisters for CPU Operation Mode Mode Switching ControlWake-up Methods Sleep Mode Idle ModeWake-up Signal R5 SIS = 1+SLEP R5 SIS= 0 + Slep Instruction AD ConverterConversion Time Operation Mode Max. Frequency Max. Conversion Rate per BitADC Data Register Sampling TimeAddress Name Bit Time Base Timer and Keytone GeneratorMUX Uart Universal Asynchronous Receiver/Transmitter Registers for Uart CircuitName Bit Transmitting Uart ModeBaud Rate Generator ReceivingSPI Serial Peripheral Interface Registers for the SPI CircuitRbank Address Name Bit Serial Clock Shift Direction and Sample PhaseTransfer Mode Bit Transmit ModeBit Microcontroller Bit Receive Mode Bit Transmit/Receive ModeSCK pin Multiple Device Connect /SS SpisRegisters for Timer/Counter 2 Circuit Timer/CounterTimer Mode Counter ModeWindow Mode 21 Window Mode Timing Chart Registers for Timer/Counter 3 Circuit22 Configuration of Timer/Counter3 Capture ModeTCIF4 Registers for Timer 4 CircuitTCR4 PDO ModeTC4 Interrupt PWM Mode12 TCC/WDT & Prescaler Up-counterReset and Wake-up Reset13 I/O Ports Wake-up from Idle Mode Wake-up from Sleep ModeSummary of the Initialized Values for Registers Address Name Reset Type BitSCR Bit Microcontroller Register BankAddres URTD8 Events that may affect the T and P Status Reset TypeStatus of RST, T, and P of the Status Register Bit Microcontroller General Purpose RegistersInterrupt 28 Controller Reset Block DiagramSummary of Maximum Operating Speeds OscillatorOscillator Modes Crystal Oscillator/Ceramic Resonators Crystal740 EM78P312N 809N Oscillator Type Frequency Mode Frequency C1 pF C2 pFOS CI External RC Oscillator ModeBit 12 ~ 9 Not used Enwdtb = 0 Enable Enwdtb = 1 DisableCode Option Register Code Option Register WordOSC = 0 RC type OSC = 1 Crystal type Power-on ConsiderationsExternal Power-on Reset Circuit Customer ID RegisterEM78P809N Residue-Voltage ProtectionVdd EM78P312NBinary Instruction Hex Mnemonic Operation Status Instruction SetDEC Binary Instruction Hex Mnemonic Operation Status AffectedVss = Symbol Parameter Condition Min Typ Max UnitAbsolute Maximum Ratings Recommended Operating ConditionsTa= 25 C, VDD= 5.0V ± 5%, VSS= DC Electrical CharacteristicsTa= 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 AC Test Input/Output Waveform Timing DiagramEM78P311SxY OTP MCUPackage Type Pin Count Package Size