IBM EM78M611E manual Interrupt, Dual Clock Mode

Page 28

EM78M611E

Universal Serial Bus Series Microcontroller

:

// Set the Port 6 to input port

MOV

A, @0xFF

IOW PORT6

// Read the state of Port 6

MOV

PORT6, PORT6

// Clear the RUN bit

IOR

0xE

AND

A, 0B11101111

IOW

0xE

:

 

:

 

8.7.2

Dual Clock Mode

The EM78M611E has one internal oscillator for power saving application. Clearing the Bit IOCE [7] will enable the low frequency oscillator. At the same time, the external oscillator will be turned off. Then the MCU will run under very low frequency to conserve power. Four types of frequency are available for selection in setting bits IOCA [6, 7].

The USB Host Resume Interrupt can only be used in this mode. If this interrupt is enabled, the MCU will be interrupted when the USB Host Resume signal is detected on USB Bus.

8.8 Interrupt

The EM78M611E has one interrupt vector in 0x0001. When an interrupt occurs during an MCU program run, it will jump to the interrupt vector (0x0001) and execute the instructions sequentially from the interrupt vector. RF is the interrupt status register, which records the interrupt status in the relative flags/bits.

The interrupt condition could be one of the following:

TCC Overflow: When the Timer Clock / Counter Register (R1) overflows, the status flag RF[0] will be set to 1. Its interrupt vector is 0X0001.

Port 7 State Change: When the input signals in Port 7 changes, the status flag RF[4] will be set to 1. Its interrupt vector is 0X0001.

SE1 Pattern Detection Interrupt Conditions: If the Pattern Detection Application function is enabled, there will be four conditions with which interrupt is generated, and the status flag RF[5] is set to 1 (interrupt vector is 0X0001).

a)Signal from P.92 changes to low and the Pattern Counter value is bigger than R11 register value.

24

Product Specification (V1.1) 11.22.2006

(This specification is subject to change without further notice)

Image 28
Contents EM78M611E Trademark Acknowledgments 2.1 Product Specification V1.1 AppendixGeneral Description FeaturesUniversal Serial Bus Series Microcontroller Product Specification V1.1 Application Type DefinitionOriginal With Both 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 Register2.3 R2 Program Counter & Stack Default Value 0B00000000 2.2 R1 Timer / Clock Counter Default Value 0B00000000Operation Registers R3 0 Carry/Borrow Flag 2.4 R3 Status Register Default Value0B00011XXXBit 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/2Bit P96 P95 P94 P93 P92 P91 P90 DualFrq.1 DualFrq.0 FrequencyPH95 PH93 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 RateErepwm Control Register Default Value 0B00000001 Pulse Width Modulation PWMDuty Cycle R10 PWM1 Duty Cycle RegisterAnalog-To-Digital Converter ADC ERA AD Channel Select Register Default Value 0B00011111Clock Hz Period/255 s ERB AD LSB Data Register Default Value 0B00000000 Channel PortERD AD Control Register Default Value 0B00000000 ERC AD MSB Data Register Default Value 0B00000000Command Value Action Execution Time DC Electrical Characteristic Symbol Min Max UnitSymbol Parameter Condition Min Type Max Unit Absolute Maximum RatingsUSB Interface Application Circuit Special Register Map Address Name Bit Bit1 Default ValueOperation Registers 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 Address Code Option Register11 16ms Bits 4~12 User ID Address EM78M611E