IBM EM78M611E manual Control Register Default Value 0B00111111, TCC Rate WDT Rate

Page 21

EM78M611E

Universal Serial Bus Series Microcontroller

8.2.3.2CONT (Control Register) Default Value: (0B_0011_1111)

Bit 7

 

Bit 6

 

Bit 5

 

Bit 4

 

Bit 3

 

Bit 2

 

Bit 1

 

Bit 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LED

 

INT

TSR2

 

TSR1

TSR0

PSR2

 

PSR1

 

PSR0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Except for Bit 6 (Interrupt enable control bit), the CONT register can be read by the instruction "CONTR" and written by the instruction “CONTW".

CONT [0~2] Watchdog Timer prescaler bits. These three bits are used as the Watchdog Timer prescaler.

CONT [3~5] TCC Timer prescaler bits.

The relationship between the prescaler value and these bits are shown below:

PSR2/TSR2

 

PSR1/TSR1

 

PSR0/TSR0

 

TCC Rate

 

WDT Rate

 

 

 

 

 

 

 

 

 

0

 

0

 

0

 

1: 2

 

1: 1

 

 

 

 

 

 

 

 

 

0

 

0

 

1

 

1: 4

 

1: 2

 

 

 

 

 

 

 

 

 

0

 

1

 

0

 

1: 8

 

1: 4

 

 

 

 

 

 

 

 

 

0

 

1

 

1

 

1: 16

 

1: 8

 

 

 

 

 

 

 

 

 

1

 

0

 

0

 

1: 32

 

1: 16

 

 

 

 

 

 

 

 

 

1

 

0

 

1

 

1: 64

 

1: 32

 

 

 

 

 

 

 

 

 

1

 

1

 

0

 

1: 128

 

1: 64

 

 

 

 

 

 

 

 

 

1

 

1

 

1

 

1: 256

 

1: 128

 

 

 

 

 

 

 

 

 

NOTE

WDT Timing base is “Power-on time”. Set by the code option [2, 1.]

Ex. Code option [2 ,1] = 01 (2ms), and Prescaler = 1:128.

WDT overflow time is: 2mS * 2^7 = 256 mS

CONT [6] Interrupt enable control bit. This bit toggles Interrupt function between enable and disable. It is set to 1 by the interrupt disable instruction "DISI" and reset by the interrupt enable instructions "ENI" or "RETI."

0 : Disable the Interrupt function

1 : Enable the Interrupt function

CONT [7] LED bit. This bit is used to enable the LED sink capacity of P76 and P77.

0 : Disable the LED sink capacity of P76, P77

1 : Enable the LED sink capacity of P76, P77

Product Specification (V1.11) 04.20.2007

17

(This specification is subject to change without further notice)

Image 21
Contents EM78M611E Trademark Acknowledgments 2.1 Appendix Product Specification V1.1Features General DescriptionUniversal Serial Bus Series Microcontroller Product Specification V1.1 Type Definition ApplicationOriginal With Both VNN Pin AssignmentEM78M611EXBP/BM/DM 20-Pin DIP/SOP/SSOP Pin Description Symbol FunctionALU ACC Data & Control BUS Block DiagramProgram Memory Function DescriptionSpecial Purpose Register Data Memory2.2 R1 Timer / Clock Counter Default Value 0B00000000 2.3 R2 Program Counter & Stack Default Value 0B00000000Operation Registers 2.4 R3 Status Register Default Value0B00011XXX R3 0 Carry/Borrow FlagBit Program Memory Page Address Condition2.5 R4 RAM Select Register Default Value 0B00XXXXXX EP0Busy Stall RF Interrupt Status Register Default Value 0B00000000Accumulator Control RegistersTCC Rate WDT Rate Control Register Default Value 0B00111111PS/2 Operation ModeDualFrq.1 DualFrq.0 Frequency Bit P96 P95 P94 P93 P92 P91 P90PH95 PH93 PU8 PU6 PU5 USB Application FIFOs Extra Control RegisterUSB Device Controller USB ApplicationSaving Power Mode ResetInterrupt Dual Clock ModeFunction Description Pattern Detect Application PDASampling Rate and Debounce Length Control RegisterSR.2 SR.1 SR.0 Sampling Rate DB.2 DB.1 DB.0 Debounce TimePulse Width Modulation PWM Erepwm Control Register Default Value 0B00000001Duty Cycle R10 PWM1 Duty Cycle RegisterERA AD Channel Select Register Default Value 0B00011111 Analog-To-Digital Converter ADCClock Hz Period/255 s Channel Port ERB AD LSB Data Register Default Value 0B00000000ERC AD MSB Data Register Default Value 0B00000000 ERD AD Control Register Default Value 0B00000000Command Value Action Execution Time Symbol Min Max Unit DC Electrical CharacteristicSymbol Parameter Condition Min Type Max Unit Absolute Maximum RatingsUSB Interface Application Circuit Address Name Bit Bit1 Default Value Special Register MapOperation Registers Extra Register IOCA3 = Address Name Bit Default ValueBinary Instruction Hex Mnemonic Operation Status Affected Instruction SetThis instruction is not recommended for RE, RF operation Code Option Register Address11 16ms Bits 4~12 User ID Address EM78M611E