Spanish Italian
17454 Users    

Stopped by a Datasheet - a Freescale microcontroller

  Download PDF version of the Article

I never thought that I could be stopped by a datasheet (a Freescale microcontroller).
The device was always on, but poorly managed, since stand by current was demanding on battery life.
Aside from some circuit modifications, the meat of the job was in managing the stop function of the micro, where peripherals and core are stopped, allowing for a very low quiescent current.
For the purposes of this project two stop modes were available: wake on keyboard / wake on stop mode timer.
Due to original requests from customer, both modes were useful. I was thinking about:

  • Put the micro in stop/wake on keyboard, lowest consumption.
  • Wake from keyboard
  • Perform requested operation
  • Enable stop/wake from timer (every 25ms) for 3s, with higher consumption
  • If no more operation are requested, then go back to stop/wake on keyboard, lowest consumption

This two handling modes allow for a rapid response from operator requests and lower consumption on the other hand.
BUT.......
If you go to MC68HC908QY4A datasheet, it is written that once you select one of the two modes after reset, you are not allowed to switch to the other stop mode.....
Thus I had to implement the following cycle :

  • Put the micro in stop/wake on keyboard, lowest consumption
  • Wake from keyboard
  • Perform requested operation
  • Wait for 3s, with very high consumption
  • If no more operation are requested, then go back to stop/wake on keyboard, lowest consumption

Pity, isn't it ?

Stop/Wake Modes

What are the "stop/wake on keyboard" and "stop/wake from timer" modes you are talking about in this post? I am not familiar with such modes. Try giving the Freescale technical support team a call or drop them an email.

http://www.freescale.com/webapp/sps/site/homepage.jsp?nodeId=0M10Xv6c0C

Stop / Wake Modes

Take a look on :
MC68HC908QY4A datasheet at the following chapters :

  • Chapter 4 - Auto Wakeup Module (AWU) :
    4.5 Stop Mode
  • Chapter 5 - Configuration Register (CONFIG)
    5.2 Functional Description :
    "The configuration registers are used in the initialization of various options.
    The configuration registers can be written once after each reset"
  • Chapter 9 - Keyboard Interrupt Module (KBI)
    9.5 Stop Mode
  • Chapter 13 - System Integration Module (SIM)
    13.7 Low-Power Modes
    13.7.2 Stop Mode

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Who's new

  • fernand
  • Ligrock
  • paolo_0665
  • chanuei
  • JM
  • samsilva77
  • araghube
  • stoll
  • mt
  • orionkw

Who's online

There are currently 0 users and 43 guests online.