Home
F²MC-8FX FAMILY MB95200 SERIES Wake-up on Key
Contents
1. RKKK KKK KKK KKK KKK KKK KAMAIN LOUCINE KKK KKK KKK KK KK KK KK KK KK void main void IERT STBC_SPL 0 Zei ERN PIN HOLD PRECEDING while 1 Delay 5 ED2 LED2 ED3 LED3 ED4 LED4 Delay 5 MCU AN 500039 E 11 Page 8 Wake up on Key Stroke V1 1 FUJITSU Chapter 5 Additional Information 5 Additional Information For more information about how to use MB9595200H 210H EV board BGM Adaptor and SOFTUNE please refer to SKT MB2146 410A 01 E User Manual or visit Web http www fujitsu com cn fmc services mcu MCU AN 500039 E 11 Page 9
2. kok k kok k k kk X kk k kok k kk X kk OK KK kok OK KKK NAME __interrupt void external int06 void FUNCTION LED3 LED4 Lihgt gt Unlight FAK KKK kok X k X kk kk kk k k X kk kk kok X k X kk kk X kk X k X k kk X k kk __interrupt void external int06 void ETC30_EIRO 0 CLEAR INTERRUPT REOUEST LED3 LIGHT TO UNLIGHT LED4 LIGHT TO UNLIGHT LED3 Light LED3 Unlight LED4 Light v L Delay 10 ED4 Unlight BORK KKK KK KK KK KK IK RK kk KK I KR kk KK OK KK KK NAME __interrupt void external int07 void FUNCTION ENTERY STANDBY MODE STOP MODE TKK AK k kk k kk X kk kk kok kk X kk kk kok k kk X kk kk k kk X kk kk kk kk k k __interrupt void external int07 void EIC30_EIR1 0 CLEAR INTERRUPT REQUEST LED2 3 4 KEEP LIGHT ED2 Light ED3 Light ED4 Light STBC_STP 1 ENTERY STOP MOD MCU AN 500039 E 11 Page 7 Wake up on Key Stroke V1 1 FUJITSU Chapter 4 Sample Code KKK kk kk KK KKK AMCU initialization k k kk kk k k word MCU tazateon moa DI SC 0x03 R6 P63 1 le output R6_P64 1 le output RO P05 1 e output ED2 Unlight ED3 Unlight ED4 Unlight external interrupt PACO INTO6 INT07 enable falling edge InitIragLevels INIT INTERRUPT LEVELS SET EES ENABLE ALL INTERRUPT
3. Fujitsu Microelectronics Shanghai Co Ltd MCU AN 500039 E 11 Application Note F2MC 8FX FAMILY 8 BIT MICROCONTROLLER MB95200 SERIES Wake up on Key Stroke APPLICATION NOTE FUJITSU FUJITSU Wake up on Key Stroke V1 1 Revision History Revision History Date Author Change of Records 2009 4 13 Lori Li V1 0 First draft 2009 4 15 Lori Li V1 1 Add detailed description on standby modes This manual contains 9 pages The products described in this manual and the specifications thereof may be changed without prior notice To obtain up to date information and or specifications contact your Fujitsu sales representative or Fujitsu authorized dealer Fujitsu will not be liable for infringement of copyright industrial property right or other rights of a third party caused by the use of information or drawings described in this manual 3 The contents of this manual may not be transferred or copied without the express permission of Fujitsu 4 The products contained in this manual are not intended for use with eguipments which reguire extremely high reliability such as aerospace eguipments undersea repeaters nuclear control systems or medical equipments for life support Some of the products described in this manual may be strategic materials or special technology as defined by the Foreign Exchange and Foreign Trade Control Law In such cases the products or portions thereof must not be export
4. ed without permission as defined under the law 2008 Fujitsu Microelectronics Shanghai Co Ltd MCU AN 500039 E 11 Page 2 Wake up on Key Stroke V1 1 FUJITSU Contents Contents REVISION HISTORY eebe 2 e WC LE 3 1 INTRODUCTION E 4 2 STANDBY MODES ee 5 3 WAKE UP ON KEY SCHERER eege Eeer Eegen 6 ab Hardware te BE 6 3 2 Software Design alos ecto o i ctcceceeet steers oe toes oka os upe ea aka vu psa oso a soon a oa an 6 4 SAMPLE CODE sass sacswssssadcepstscesnnttssenetsvsnsvsttacedsntstssancedbeceussshsesretcusedeacatsasssetbiensetseseicasincds 7 5 ADDITIONAL INFORMATION s erer 9 MCU AN 500039 E 11 Page 3 FUJITSU Wake up on Key Stroke V1 1 Chapter 1 Introduction 1 Introduction This document describes how to wake up from standby mode on key stroke and gives one sample code MCU AN 500039 E 11 Page 4 al Wake up on Key Stroke V1 1 Chapter 2 Standby Modes FUJITSU 2 Standby Modes This chapter introduces standby modes and the STBC register Usually a device has limited power supply To minimize power consumption the device will transit to low power consumption modes standby modes when it is not in operation state The device in standby modes can be waken up on key stroke to operating mode There are four standby modes sleep mode stop mode timebase timer mode and watch mode The device transits to a standby mode according to the setting of the standby control regis
5. higher than 11B is issued in a standby mode the device is released from the standby mode To wake up the device on key stroke use the external interrupt 6 and 7 Press key S1 enter the external interrupt 7 and set the STBC register and the device enters a standby mode Press key S2 and enter the external interrupt 6 the device will release from the standby mode and transit to normal operation The flow chart is illustrated as below Key S2 a Key S1 e Enter Standby Mode MCU AN 500039 E 11 Page 6 Wake up on Key Stroke V1 1 FUJITSU Chapter 4 Sample Code 4 Sample Code This chapter illustrates how to wake up a device from a standby mode on key stroke with an example The following code can make a device transit to stop mode and be released from stop mode THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS FUJITSU MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR ELIGIBILITY FOR ANY PURPOSES SE C Fujitsu Microelectronics Shanghai Co WTD include mb95200 h define LED2 PDRO P05 define LED3 PDR6 P64 define LED4 PDR6_P63 define Light 0 LED light define Unlight 1 LED unlight EEN LOUCINE KKK KKK KK KK KK KK KK d unsigned char vDelay unsigned int uiCount Sugie ALA while uiCount for i 0 i1 lt 100 i asm tNOP BORK KKK KK KK KK I KK I KK kk k
6. ter STBC The device can be released from a standby mode by an interrupt or a reset Before transiting to normal operation the device may wait for the oscillation stabilization wait time to elapse if necessary Figure 1 shows the Standby Control Register STBC This register is used to control transition from the RUN state to a standby mode set the pin state in a standby mode and control the generation of a software reset Address bit7 bit6 bit5 bit4 bit3 bit2 DI bitO Initial value 00084 STP SLP SPL SRST TMD SCRDY MCRDY MRDY 00000XXXg RO W ROW RW RO W HOI HAN X R WX RWX Figure 1 Standby Control Register STBC For detailed information on standby modes please refer to AN mcu an 500002 e 11 Basic FW Setup on Fujitsu website MCU AN 500039 E 11 Page 5 FUJITSU Wake up on Key Stroke V1 1 Chapter 3 Wake up on Key Stroke 3 Wake up on Key Stroke This chapter introduces how to wake up a device from standby modes on key stroke To wake up the device from a standby mode on key stroke first initialize the I O register and enable the external interrupt then the device enters a standby mode such as stop mode sleep mode timebase timer mode or watch mode The device in a standby mode can wake up and return to operating mode by pressing an external key 3 1 Hardware Setting Figure 1 Hardware Setting 3 2 Software Design When an interrupt request whose interrupt level is
Download Pdf Manuals
Related Search
Related Contents
RCA RCD175i Portable CD Player User Manual Copyright © All rights reserved.
Failed to retrieve file