IBM EM78P809N manual Bit Microcontroller Register Bank, Scr

Page 54

EM78P809N

8-Bit Microcontroller

Register Bank 0

Address

Name

Reset Type

Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

 

 

Bit Name

X

PS2

PS1

PS0

X

X

SIS

REM

0x05

SCR

Power-On

U

0

0

0

U

U

0

0

/RESET and WDT time out

U

0

0

0

U

U

0

0

 

 

 

 

Wake-Up from SLEEP, IDLE mode

U

P

P

P

U

U

P

P

 

 

Bit Name

P67

P66

P65

P64

P63

P62

P61

P60

0x06

PORT6

Power-On

1

1

1

1

1

1

1

1

/RESET and WDT time out

1

1

1

1

1

1

1

1

 

 

 

 

Wake-Up from SLEEP, IDLE mode

P

P

P

P

P

P

P

P

 

 

Bit Name

X

X

X

X

P73

P72

P71

P70

0x07

PORT7

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

X

X

P81

P80

0x08

PORT8

Power-On

U

U

U

U

U

U

1

1

/RESET and WDT time out

U

U

U

U

U

U

1

1

 

 

 

 

Wake-Up from SLEEP, IDLE mode

U

U

U

U

U

U

P

P

 

 

Bit Name

P97

P96

P95

P94

P93

P92

P91

P90

0x09

PORT9

Power-On

1

1

1

1

1

1

1

1

/RESET and WDT time out

1

1

1

1

1

1

1

1

 

 

 

 

Wake-Up from SLEEP, IDLE mode

P

P

P

P

P

P

P

P

 

 

Bit Name

TC4FF1

TC4FF0

TC4S

TC4CK2

TC4CK1

TC4CK0

TC4M1

TC4M0

0x0B

TC4CR

Power-On

0

0

0

0

0

0

0

0

/RESET and WDT time out

0

0

0

0

0

0

0

0

 

 

 

 

Wake-Up from SLEEP, IDLE mode

P

P

P

P

P

P

P

P

 

 

Bit Name

TC4D7

TC4D6

TC4D5

TC4D4

TC4D3

TC4D2

TC4D1

TC4D0

0x0C

TC4D

Power-On

0

0

0

0

0

0

0

0

/RESET and WDT time out

0

0

0

0

0

0

0

0

 

 

 

 

Wake-Up from SLEEP, IDLE mode

P

P

P

P

P

P

P

P

 

 

Bit Name

X

X

INT3F

INT3R

X

X

WDTIF

EXIF0

0X0D

ISFR0

Power-On

U

U

0

0

U

U

0

0

/RESET and WDT time out

U

U

0

0

U

U

0

0

 

 

 

 

Wake-Up from SLEEP, IDLE mode

U

U

P

P

U

U

P

P

 

 

Bit Name

EXIF5

TCIF2

ADIF

X

EXIF3

TCIF4

SPIF

TCIF3

0X0E

ISFR1

Power-On

0

0

0

U

0

0

0

0

/RESET and WDT time out

0

0

0

U

0

0

0

0

 

 

 

 

Wake-Up from SLEEP, IDLE mode

U

P

P

U

P

P

P

P

 

 

Bit Name

X

UERRIF

RBFF

TBEF

TBIF

EXIF1

X

TCIF0

0X0F

ISFR2

Power-On

U

0

0

0

0

0

U

0

/RESET and WDT time out

U

0

0

0

0

0

U

0

 

 

 

 

Wake-Up from SLEEP, IDLE mode

U

P

P

P

P

P

U

P

50

Product Specification (V1.0) 07.26.2005

(This specification is subject to change without further notice)

Image 54
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 02hBit 5 Not used R3/SR − Status Register Address 03hBit 7 ~ Bit 6 RBS1 ~ RBS0 R-Register page select RBS1 RBS0Bit 0 C Carry flag R4/RSR − RAM Select Register Address 04h GRBS1 GRBS0General Purpose Register Bank Address 20H ~ 3FH PORT7 Port 7 I/O Data Register Address 07h SIS = 0 Idle mode SIS = 1 Sleep modePORT6 − Port 6 I/O Data Register Address 06h PORT8 − Port 8 I/O Data Register Address 08hTC4FF1 TC4FF0 TC4CR Timer/Counter 4 Control Register Address 0BhTC4S = 1 Start TC4CK2 TC4CK1 TC4CK0Bit Microcontroller TC4D − Timer 4 Data Buffer Address 0Ch ISFR1 − Interrupt Status Flag Register 1 Address 0EhTC3S = 1 Start Bit 7 TC3CAP Software capture controlTC3CAP = TC3CAP TC3S TC3CK1 TC3CK0 TC3MBit 7 ~ Bit 6 ADD1 ~ ADD0 AD low 2-bit data buffer TC3DB − Timer 3 Data Buffer B Address 07hTC2M = 1 Window mode TC2S = 1 StartTC2DH − Timer 2 Data Buffer High Byte Address 09h TC2DL − Timer 2 Data Buffer Low Byte Address 0AhAdcr − AD Control Register Address 0Bh Adic − AD Input Pin Control Address 0Ch Bit 3 ADP AD power controlBit 7 ~ Bit 0 ADE7 ~ ADE0 AD input pin enable control Addh − AD High 8-bit Data Buffer Address 0DhBit 3 Tbten Time Base Timer Enable Control Bit 7 TEN Keytone enable controlTEN = 0 Disable TEN = 1 Enable Bit Microcontroller Tbktc − TBT/Keytone Control Address 0EhUinven = 1 Enable TXD and RXD port inverse output Bit 3 Uinven Enable Uart TXD and RXD port inverse outputUinven = 0 Disable TXD and RXD port inverse output Bit 4 ~ Bit 2 BRATE2 ~ BRATE1 Transmit Baud Rate SelectBit 5 PRE Enable parity addition Bit Microcontroller URS − Uart Status Register Address 07hEven = 0 Odd parity Even = 1 Even parity SMP Dcol BRS2 BRS1 Bit 2 EDS Data shift out edge selectEDS = 0 Rising edge EDS = 1 Falling edge EDS Dord WBESpid SPI Data Buffer Address 07h Transfer ModeSPIC2 − SPI Control Register 2 Address 06h SPID7 SPID6 SPID5 SPID4 SPID3 SPID2 SPID1 SPID0PHC2 − Pull High Control Register 2 Address 0Ch PLE7x = 1 Disable P7x pull lowPLC1 Pull Low Control Register 1 Address 0Bh PLC2 − Pull Low Control 2 Address 0DhControl Register Special Purpose RegistersAccumulator Bit 7 Wdto WDT output selectBit 2 Reserved Bit Microcontroller IOC6 ~ IOC9 − I/O Port Control RegisterIntcr − INT Control Register Address 0Bh INT1ES = 0 Rising edge INT1ES = 1 Falling edgeAdoscr − AD Offset Control Register Address 0Ch INT Pin Secondary Enable Condition Function PinExternal Interrupt EdgeIMR2 − Interrupt Mask Register 2 Address 0Fh Uerrie Urie Utie Tbie EXIE1 TCIE0Rbank Register Bank bits 7, 6 of R3, R/W Read/Write CPU Operation ModeRegisters for CPU operation mode RbankMode Switching Control Operation ModeNormal AD Converter → Don’t care → Interrupt request flag will be recordedRegisters for AD Converter Circuit ADC Data Register Sampling TimeConversion Time Time Base Timer and Keytone Generator ADCK10Max. Frequency Max. Conversion Rate per Bit Tone Output Pin Timing Chart Uart Universal Asynchronous Receiver/Transmitter Registers for Uart CircuitRbank Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit Uart Mode Data Format in UartTransmitting ReceivingSPI Serial Peripheral Interface Baud Rate GeneratorRegisters for the SPI Circuit Bit Transmit Mode Shift Direction and Sample PhaseTransfer Mode Serial ClockBit Microcontroller Bit Receive Mode Bit Transmit/Receive ModeSCK pin Multiple Device Connect /SSTimer/Counter Registers for Timer/Counter 2 CircuitRbank Address Name Bit 7 Bit 6 Bit Timer Mode Counter ModeWindow Mode Window Mode Timing Chart Registers for Timer/Counter 3 CircuitCapture mode Configuration of Timer/Counter3Registers for Timer 4 Circuit TCIF4PDO Mode TCR4PWM Mode 12 TCC/WDT & PrescalerTC4 Interrupt Reset and Wake-up Reset13 I/O Ports Wake-up from Sleep Mode Wake-up from Idle modeAll interrupt Address Name Reset Type Bit Summary of the Initialized Values for RegistersBit Microcontroller Register Bank SCRTC2D9 TC2D8 Register Bank Status of RST, T, and P of Status Register Previous value before resetReset Type Bit Microcontroller General Purpose RegistersController Reset Block Diagram InterruptCrystal Oscillator/Ceramic Resonators Crystal OscillatorOscillator Modes Summary of Maximum Operating SpeedsExt. Clock Oscillator Type Frequency Mode C1 pF C2 pFEM78P809N 740External RC Oscillator Mode Crystal/Resonator-Parallel Mode CircuitCode Option Register Word Enwdtb = 0 Enable Enwdtb = 1 DisableCode Option Register For design reference onlyCustomer ID Register Power-on ConsiderationsExternal Power-on Reset Circuit Cyes = 0 One cycle Cyes = 1 Two cyclesEM78P809N Rin Residue-Voltage ProtectionVdd Vdd EM78P809NInstruction Set Vdd 40KR2Binary Instruction Hex Mnemonic Operation Status Affected DECRecommended Operating Conditions Symbol Parameter Condition Min Typ Max UnitAbsolute Maximum Ratings Vss =DC Electrical Characteristics Ta= 25 C, VDD= 5.0V ± 5%, VSS=Typical value is based on characterization results at 25C Ta= 25 C, VDD= 3.0V ± 5%, VSS= Varef Ta=- 40C ~ 85 C, VDD=5V ± 5%, VSS=0V AC Electrical CharacteristicSymbol Parameter Conditions Min Typ Max Unit = selected prescaler ratioTiming Diagram AC Test Input/Output WaveformPackage Types OTP MCUPin Count Package Size Contents III EM78P809N