IBM EM78M611E manual Operation Registers, 2.2 R1 Timer / Clock Counter Default Value 0B00000000

Page 14

EM78M611E

Universal Serial Bus Series Microcontroller

8.2.2 Operation Registers

The following subsections describe each of the Operation Registers of the Special Purpose Registers. The Operation Registers are arranged according to the order of the registers’ address. Note that some registers are read only, while others are both readable and writable.

8.2.2.1R0 (Indirect Addressing Register) Default Value: (0B_0000_0000)

R0 is not a physically implemented register. Its major function is as an indirect addressing pointer. Any instruction using R0 as a pointer actually accesses data pointed by the RAM Select Register (R4).

8.2.2.2R1 (Timer / Clock Counter) Default Value: (0B_0000_0000)

The TCC register is an 8-bit timer or counter. It is readable and writable as any other register. The Timer module will be incremented after execution of every instruction cycles. User can work around this by writing an adjusted value. The Timer interrupt is generated when the R1 register overflows from FFh to 00h. This overflow sets bit TCIF (RF[0]). The interrupt can be masked by clearing bit TCIE (IOCF[0]). After Power-on reset and Watchdog reset, the initial value of this register is 0x00.

8.2.2.3R2 (Program Counter & Stack) Default Value: (0B_0000_0000)

The EM78M611E Program Counter is a 13-bit register that allows accessing of the 6k words of the Program Memory with 8 level stacks. The eight LSB bits, A0~A7, are located at R2, while the three MSB bits, A12~A10, are located at R3. The Program Counter is cleared after Power-on reset or Watchdog reset. The first instruction that is executed after a reset is located at address 00h.

10

Product Specification (V1.1) 11.22.2006

(This specification is subject to change without further notice)

Image 14
Contents EM78M611E Trademark Acknowledgments 2.1 Product Specification V1.1 AppendixUniversal Serial Bus Series Microcontroller FeaturesGeneral Description Product Specification V1.1 Original With Both Type DefinitionApplication Pin Assignment VNNEM78M611EXBP/BM/DM 20-Pin DIP/SOP/SSOP Symbol Function Pin DescriptionBlock Diagram ALU ACC Data & Control BUSFunction Description Program MemoryData Memory Special Purpose RegisterOperation Registers 2.2 R1 Timer / Clock Counter Default Value 0B000000002.3 R2 Program Counter & Stack Default Value 0B00000000 Bit 2.4 R3 Status Register Default Value0B00011XXXR3 0 Carry/Borrow Flag Condition Program Memory Page Address2.5 R4 RAM Select Register Default Value 0B00XXXXXX EP0Busy Stall Default Value 0B00000000 RF Interrupt Status RegisterControl Registers AccumulatorControl Register Default Value 0B00111111 TCC Rate WDT RateOperation Mode PS/2PH95 PH93 DualFrq.1 DualFrq.0 FrequencyBit P96 P95 P94 P93 P92 P91 P90 PU8 PU6 PU5 Extra Control Register USB Application FIFOsUSB Application USB Device ControllerReset Saving Power ModeDual Clock Mode InterruptPattern Detect Application PDA Function DescriptionControl Register Sampling Rate and Debounce LengthDB.2 DB.1 DB.0 Debounce Time SR.2 SR.1 SR.0 Sampling RateDuty Cycle Erepwm Control Register Default Value 0B00000001Pulse Width Modulation PWM R10 PWM1 Duty Cycle RegisterClock Hz Period/255 s ERA AD Channel Select Register Default Value 0B00011111Analog-To-Digital Converter ADC ERB AD LSB Data Register Default Value 0B00000000 Channel PortCommand Value Action Execution Time ERC AD MSB Data Register Default Value 0B00000000ERD AD Control Register Default Value 0B00000000 Symbol Parameter Condition Min Type Max Unit DC Electrical CharacteristicSymbol Min Max Unit Absolute Maximum RatingsUSB Interface Application Circuit Operation Registers Address Name Bit Bit1 Default ValueSpecial Register Map Address Name Bit Default Value Extra Register IOCA3 =Instruction Set Binary Instruction Hex Mnemonic Operation Status AffectedThis instruction is not recommended for RE, RF operation 11 16ms Bits 4~12 User ID Address Code Option RegisterAddress EM78M611E