<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>8-bit MicrocontrollersのトピックRe: Simple on/off microcontroller?</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-on-off-microcontroller/m-p/145185#M7097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;BR /&gt;i have reflected the case and since this may be interesting for other people, have decided to draw a schematic for this case. The HCS08QD4 has 6 GPIO's so why not create a tutorial project?&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; Here it is (sorry the hardware is not tested yet, but the PCB is ready!):&lt;BR /&gt;&lt;BR /&gt;In the attachment you can find the schematics and the layout, as well as a brief description of this project. (again sorry; the BOM has to be done also).&lt;BR /&gt;&lt;BR /&gt;Now i will write the program (in C). I think i do first the simple ON/OFF action. The second part will be to drive a LED depending on how long the pushbutton is pressed (ON, OFF, BLINKING) and as a third part i will do dimming of a LED using the PWM of TIM1.&lt;BR /&gt;&lt;BR /&gt;Saluti Joerg&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/8BITCOMM/4742_hcs08_qd4tut_01.pdf" rel="nofollow" target="_self"&gt;hcs08-qd4tut-01.pdf&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-20&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;01:34 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Feb 2007 22:11:38 GMT</pubDate>
    <dc:creator>joerg</dc:creator>
    <dc:date>2007-02-19T22:11:38Z</dc:date>
    <item>
      <title>Simple on/off microcontroller?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-on-off-microcontroller/m-p/145179#M7091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;P&gt;&lt;SPAN style=": ; color: #000000; font-size: 3; font-family: 'Times New Roman';"&gt;Hey guys, I'm new here and also rather new to electronics.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #000000; font-size: 3; font-family: 'Times New Roman';"&gt;I've been trying to find a way to make a momentary push button (push and hold in to keep on, release to turn off) act like a regular on/off switch (push to turn on, push again to turn off). This pushbutton is meant to control a simple LED.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #000000; font-size: 3; font-family: 'Times New Roman';"&gt;My original idea was to use the following circuit:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN style="font-size: 2;"&gt;&lt;A href="http://img.photobucket.com/albums/v190/agreatjedi/PushButtoncircuit.gif"&gt;&lt;IMG src="http://img.photobucket.com/albums/v190/agreatjedi/PushButtoncircuit.gif" /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 3;"&gt;My project however is being powered by two 1.5v button cell batteries, and the inverters would still draw power even when 'off'.&lt;BR /&gt;&lt;SPAN style="font-size: 2;"&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 3;"&gt;&lt;BR /&gt;I am looking for a solution that will make my LED turn on when the momentary pushbutton is pressed, and turn off if pressed again, and doesn’t consume power while off.&lt;/SPAN&gt; &lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 3;"&gt;A Microcontroller was recommended, but I don't know what exactly I should be looking for. My project is very tiny, making use of a tactile switch no taller then 0.55mm and the LED is 0.8mm in height.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 3;"&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 3;"&gt;What type of Microcontroller should I be looking for?&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 3;"&gt;Presuming there is a microcontroller out there that meets my needs, what other components are necessary?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #000000; font-size: 3; font-family: 'Times New Roman';"&gt;I appreciate your help and if any more information is needed just let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Times New Roman'; font-size: 3;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 03:04:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-on-off-microcontroller/m-p/145179#M7091</guid>
      <dc:creator>Bluenose</dc:creator>
      <dc:date>2007-02-14T03:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Simple on/off microcontroller?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-on-off-microcontroller/m-p/145180#M7092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;A MicroController {MCU} is clever and does what the software tells it to do.&lt;BR /&gt;The advantage with small MCUs is that their stand-by consumption is very very low.&lt;BR /&gt;You will never be able to find a semiconductor that does not consume current at all.&lt;BR /&gt;&lt;BR /&gt;The type of MCU you are looking for is very low end, very low power.&lt;BR /&gt;I see two perfect candidate: MC9S08QG family and MC9RS08KA2.&lt;BR /&gt;Both are very small and with limited features.&lt;BR /&gt;&lt;BR /&gt;Still they are perfect and will allow you some variations in the future. For instance if you want the LED to blink when you press the switch three times.&lt;BR /&gt;&lt;BR /&gt;I advise you to follow one of the numerous online course that Freescale offer on their website. These courses are free and will introduce you to the world of 8-bit MCUs, the device you need for your application.&lt;BR /&gt;&lt;BR /&gt;Good Luck!&lt;BR /&gt;&lt;BR /&gt;Alfredo.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 03:22:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-on-off-microcontroller/m-p/145180#M7092</guid>
      <dc:creator>Nabla69</dc:creator>
      <dc:date>2007-02-14T03:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Simple on/off microcontroller?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-on-off-microcontroller/m-p/145181#M7093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;As well as using a very low power microcontroller, as Nabla69 (the man of many names) suggested, you could use any old microcontroller, and have it power itself off when it sees the button pushed.&lt;BR /&gt;&lt;BR /&gt;You would have the button do double-duty:&lt;BR /&gt;1) It would provide power to the microcontroller, and&lt;BR /&gt;2) It would provide an input to the microcontroller that the firmware could sense.&lt;BR /&gt;&lt;BR /&gt;The microcontroller firmware would have to be able to control a switch that powers both it and the LED. A simple MosFet would do.&lt;BR /&gt;&lt;BR /&gt;The firmware would act like so:&lt;BR /&gt;0) The power is off, and the firmware does nothing (one would hope).&lt;BR /&gt;1) User pushes the button, which powers-up the microcontroller and LED.&lt;BR /&gt;2) The microcontroller turns the switch ON, in order to hold itself and the LED on.&lt;BR /&gt;3) The microcontroller senses the button, and waits for it to be released.&lt;BR /&gt;4) The user releases the button, but the switch keeps everything powered.&lt;BR /&gt;5) The microcontroller senses the button, and waits for it to be pressed again.&lt;BR /&gt;6) User pushes the button, which is then sensed by the microcontroller.&lt;BR /&gt;7) The microcontroller turns the switch OFF, to allow itself to be powered OFF.&lt;BR /&gt;8) The user releases the button, causing the power to be removed from everything.&lt;BR /&gt;You are now back to step 0.&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;Alban applied rocco edit request.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Message Edited by Alban on &lt;SPAN class="date_text"&gt;2007-02-14&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;09:00 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 09:56:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-on-off-microcontroller/m-p/145181#M7093</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2007-02-14T09:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Simple on/off microcontroller?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-on-off-microcontroller/m-p/145182#M7094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;That&amp;nbsp;sounds very promising Rocco. I'm going to have to do a lot of&amp;nbsp; research on Microcontrollers so expect me back here from time to time with a few more questions!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks guys.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Feb 2007 07:36:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-on-off-microcontroller/m-p/145182#M7094</guid>
      <dc:creator>Bluenose</dc:creator>
      <dc:date>2007-02-17T07:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Simple on/off microcontroller?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-on-off-microcontroller/m-p/145183#M7095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Bluenose&lt;BR /&gt;I have done a project like rooco described for a controller that turns on a generator by pushing on a switch (remote control) and the whole device is switched OFF pushing the STOP switch. It uses a HC08QT micro (a HCSQD4 would work also) and needs some transistors to control the power of the MPU. If you are interested i can send you the schematics and a example for the software (it is written for the CW (asm) and uses the EBS08 a OS).&lt;BR /&gt;&lt;BR /&gt;Saluti Joerg&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Feb 2007 18:49:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-on-off-microcontroller/m-p/145183#M7095</guid>
      <dc:creator>joerg</dc:creator>
      <dc:date>2007-02-18T18:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Simple on/off microcontroller?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-on-off-microcontroller/m-p/145184#M7096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hey Joerg, I just sent you a PM&lt;/DIV&gt;&lt;DIV&gt;Thanks!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 03:37:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-on-off-microcontroller/m-p/145184#M7096</guid>
      <dc:creator>Bluenose</dc:creator>
      <dc:date>2007-02-19T03:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Simple on/off microcontroller?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-on-off-microcontroller/m-p/145185#M7097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;BR /&gt;i have reflected the case and since this may be interesting for other people, have decided to draw a schematic for this case. The HCS08QD4 has 6 GPIO's so why not create a tutorial project?&lt;BR /&gt;&lt;BR /&gt;-&amp;gt; Here it is (sorry the hardware is not tested yet, but the PCB is ready!):&lt;BR /&gt;&lt;BR /&gt;In the attachment you can find the schematics and the layout, as well as a brief description of this project. (again sorry; the BOM has to be done also).&lt;BR /&gt;&lt;BR /&gt;Now i will write the program (in C). I think i do first the simple ON/OFF action. The second part will be to drive a LED depending on how long the pushbutton is pressed (ON, OFF, BLINKING) and as a third part i will do dimming of a LED using the PWM of TIM1.&lt;BR /&gt;&lt;BR /&gt;Saluti Joerg&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/8BITCOMM/4742_hcs08_qd4tut_01.pdf" rel="nofollow" target="_self"&gt;hcs08-qd4tut-01.pdf&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-20&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;01:34 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 22:11:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-on-off-microcontroller/m-p/145185#M7097</guid>
      <dc:creator>joerg</dc:creator>
      <dc:date>2007-02-19T22:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Simple on/off microcontroller?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-on-off-microcontroller/m-p/145186#M7098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK&lt;BR /&gt;Here the updated description of the tutorial. AND the software (part1 and part2).&lt;BR /&gt;&lt;BR /&gt;Saluti Joerg&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/8BITCOMM/4788_1_hcs08_qd4tut.pdf" rel="nofollow" target="_self"&gt;hcs08-qd4tut.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/8BITCOMM/4788_2_EBS08C_QD4_51_TUT1.zip" rel="nofollow" target="_self"&gt;EBS08C_QD4_51_TUT1.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/8BITCOMM/4788_3_EBS08C_QD4_51_TUT2.zip" rel="nofollow" target="_self"&gt;EBS08C_QD4_51_TUT2.zip&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-20&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;01:33 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 01:03:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Simple-on-off-microcontroller/m-p/145186#M7098</guid>
      <dc:creator>joerg</dc:creator>
      <dc:date>2007-02-22T01:03:57Z</dc:date>
    </item>
  </channel>
</rss>

