<?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>topic MC9S08QE Timer input capture wake from STOP in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08QE-Timer-input-capture-wake-from-STOP/m-p/762914#M22556</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an MC9S08QE128 with a lot of interrupt driven inputs.&amp;nbsp; So many that I ran out of keyboard interrupt pins, and had to use some TMR1, TMR2 and TMR3 pins.&amp;nbsp; The project also has to draw very low power, so it spends most of its time in STOP3 mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the inputs and interrupts work perfectly when the processor is awake.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The keyboard interrupts wake the processor from STOP mode as intended.&amp;nbsp; The timer interrupts don't do anything in STOP mode. The hardware signals on the pins are still working as in run mode.&amp;nbsp; I used CodeWarrior 10.6 and Processor Expert to set the registers up.&amp;nbsp; I have the IREFSTEN and IRCLKEN bits set, and EFRESTEN and ERCLKEN clear, so the internal oscillator should be running in STOP3 mode, but of course there isn't any way to verify that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In STOP mode, the ICSV1 registers are:&lt;/P&gt;&lt;P&gt;ICSC1 = 0x07&amp;nbsp; so it should be running on the internal oscillator&lt;/P&gt;&lt;P&gt;ICSC2 = 0x00&amp;nbsp;&amp;nbsp; I don't think any of the rest of these apply to this situation, but here they are anyway.&lt;/P&gt;&lt;P&gt;ICSTRM = 0xA0&lt;/P&gt;&lt;P&gt;ICSSC = 0x70&lt;/P&gt;&lt;P&gt;FTRIM = 0x00&lt;/P&gt;&lt;P&gt;TRIM = 0xA0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TPM_1 registers&lt;/P&gt;&lt;P&gt;TPM1SC = 0x8F timer overflow interrupt disabled; not center-aligned PWM; bus rate clock selected.&lt;/P&gt;&lt;P&gt;counter and counter modulo registers are don't cares&lt;/P&gt;&lt;P&gt;TPM1C0SC = 0x00 = not used&lt;/P&gt;&lt;P&gt;TPM1C1SC = 0x48 = input capture interrupts enabled on falling edge only&lt;/P&gt;&lt;P&gt;TPM1C2SC = 0x4C = input capture interrupts enabled on rising or falling edge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TPM2 and TPM3 are similar.&amp;nbsp; TPM3 also has an edge aligned PWM motor drive on Channels 2-5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've searched the errata for this device; nothing.&amp;nbsp; I am stumped.&amp;nbsp; Any suggestions would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2018 17:00:59 GMT</pubDate>
    <dc:creator>GaryOlmstead</dc:creator>
    <dc:date>2018-04-04T17:00:59Z</dc:date>
    <item>
      <title>MC9S08QE Timer input capture wake from STOP</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08QE-Timer-input-capture-wake-from-STOP/m-p/762914#M22556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an MC9S08QE128 with a lot of interrupt driven inputs.&amp;nbsp; So many that I ran out of keyboard interrupt pins, and had to use some TMR1, TMR2 and TMR3 pins.&amp;nbsp; The project also has to draw very low power, so it spends most of its time in STOP3 mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the inputs and interrupts work perfectly when the processor is awake.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The keyboard interrupts wake the processor from STOP mode as intended.&amp;nbsp; The timer interrupts don't do anything in STOP mode. The hardware signals on the pins are still working as in run mode.&amp;nbsp; I used CodeWarrior 10.6 and Processor Expert to set the registers up.&amp;nbsp; I have the IREFSTEN and IRCLKEN bits set, and EFRESTEN and ERCLKEN clear, so the internal oscillator should be running in STOP3 mode, but of course there isn't any way to verify that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In STOP mode, the ICSV1 registers are:&lt;/P&gt;&lt;P&gt;ICSC1 = 0x07&amp;nbsp; so it should be running on the internal oscillator&lt;/P&gt;&lt;P&gt;ICSC2 = 0x00&amp;nbsp;&amp;nbsp; I don't think any of the rest of these apply to this situation, but here they are anyway.&lt;/P&gt;&lt;P&gt;ICSTRM = 0xA0&lt;/P&gt;&lt;P&gt;ICSSC = 0x70&lt;/P&gt;&lt;P&gt;FTRIM = 0x00&lt;/P&gt;&lt;P&gt;TRIM = 0xA0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TPM_1 registers&lt;/P&gt;&lt;P&gt;TPM1SC = 0x8F timer overflow interrupt disabled; not center-aligned PWM; bus rate clock selected.&lt;/P&gt;&lt;P&gt;counter and counter modulo registers are don't cares&lt;/P&gt;&lt;P&gt;TPM1C0SC = 0x00 = not used&lt;/P&gt;&lt;P&gt;TPM1C1SC = 0x48 = input capture interrupts enabled on falling edge only&lt;/P&gt;&lt;P&gt;TPM1C2SC = 0x4C = input capture interrupts enabled on rising or falling edge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TPM2 and TPM3 are similar.&amp;nbsp; TPM3 also has an edge aligned PWM motor drive on Channels 2-5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've searched the errata for this device; nothing.&amp;nbsp; I am stumped.&amp;nbsp; Any suggestions would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 17:00:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC9S08QE-Timer-input-capture-wake-from-STOP/m-p/762914#M22556</guid>
      <dc:creator>GaryOlmstead</dc:creator>
      <dc:date>2018-04-04T17:00:59Z</dc:date>
    </item>
  </channel>
</rss>

