<?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: Hcs08 AD converting problem</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Hcs08-AD-converting-problem/m-p/168977#M11147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hoped that my problem its solved, but is still here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i debug and run my program, i cant see changes .(led no light)&amp;nbsp; but when i stop and sart just step prgram evryhting is OK. (mean that LED start lighting. )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;*******************************************************************&lt;BR /&gt;;* This stationery serves as the framework for a user application. *&lt;BR /&gt;;* For a more comprehensive program that demonstrates the more *&lt;BR /&gt;;* advanced functionality of this processor, please see the *&lt;BR /&gt;;* demonstration applications, located in the examples *&lt;BR /&gt;;* subdirectory of the "Freescale CodeWarrior for HC08" program *&lt;BR /&gt;;* directory. *&lt;BR /&gt;;*******************************************************************&lt;BR /&gt;&lt;BR /&gt;; Include derivative-specific definitions&lt;BR /&gt;INCLUDE 'derivative.inc'&lt;BR /&gt;&lt;BR /&gt;; export symbols&lt;BR /&gt;XDEF _Startup, main&lt;BR /&gt;XDEF tlacidlo_ISR, main&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;; XDEF hodiny,main&lt;BR /&gt;; we export both '_Startup' and 'main' as symbols. Either can&lt;BR /&gt;; be referenced in the linker .prm file or from C/C++ later on&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;XREF __SEG_END_SSTACK ; symbol defined by the linker for the end of the stack&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;; variable/data section&lt;BR /&gt;MY_ZEROPAGE: SECTION SHORT ; Insert here your data definition&lt;BR /&gt;&lt;BR /&gt;; code section&lt;BR /&gt;MyCode: SECTION&lt;BR /&gt;&lt;BR /&gt;;prerusenie tlacidlom zmena lediek .... na konci naspet povoli prerusenie myslim overit&lt;BR /&gt;tlacidlo_ISR: BRSET 5,PTBD,L2&lt;BR /&gt;&lt;BR /&gt;BCLR 7,PTBD&lt;BR /&gt;BSET 5,PTBD&lt;BR /&gt;BSET 2,IRQSC&lt;BR /&gt;RTI&lt;BR /&gt;L2: BCLR 5,PTBD&lt;BR /&gt;BSET 7,PTBD&lt;BR /&gt;BSET 2,IRQSC&lt;BR /&gt;RTI&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;; zacoatok hlavneho programu&lt;BR /&gt;main:&lt;BR /&gt;_Startup:&lt;BR /&gt;; inicializacia&lt;BR /&gt;LDHX #__SEG_END_SSTACK ; initialize the stack pointer&lt;BR /&gt;TXS&lt;BR /&gt;CLI&lt;BR /&gt;&lt;BR /&gt;LDA #$13&lt;BR /&gt;STA SOPT1 ; enable interrupts&lt;BR /&gt;; nastavenie portu B3-7 ako vystup&lt;BR /&gt;LDA #$F8 ; ak dam iba $Fo tak mi do A zapise hodnotu z pamet miesta F0&lt;BR /&gt;STA PTBDD&lt;BR /&gt;&lt;BR /&gt;LDA #$E0&lt;BR /&gt;STA PTADD&lt;BR /&gt;&lt;BR /&gt;; nastavenie prerusenia tlacidla&lt;BR /&gt;BCLR 5,IRQSC ; PADAJUCA HRANA&lt;BR /&gt;BSET 4,IRQSC ; IRQ pin enable&lt;BR /&gt;BSET 1,IRQSC ; IRQ hardware interrupt request whenever IRQF = 1&lt;BR /&gt;; NASTAVENIE HODIN INTERNE HODINY POTREBNE K AD PREVODNIKU NA NASTAVENIE RYCHLISTI PREVODU&lt;BR /&gt;&lt;BR /&gt;Hodiny:&lt;BR /&gt;; nahranie toho NVI... nieco treba to odlozit ICGTRM,NVICGTRM&lt;BR /&gt;LDA $FFBE&lt;BR /&gt;STA $3E&lt;BR /&gt;LDA #$28&lt;BR /&gt;STA ICGC1&lt;BR /&gt;LDA #$51&lt;BR /&gt;STA ICGC2&lt;BR /&gt;BRCLR 3,ICGS1,Hodiny&lt;BR /&gt;&lt;BR /&gt;; nastavenie ad prevodnika&lt;BR /&gt;&lt;BR /&gt;LDA #$60 ;60&lt;BR /&gt;STA ADCCFG ;mo, bez clock divide, short sample, 8 bit , bus clock&lt;BR /&gt;LDA #$00&lt;BR /&gt;STA ADCSC2&lt;BR /&gt;&lt;BR /&gt;;LDA #$01&lt;BR /&gt;;STA APCTL1&lt;BR /&gt;&lt;BR /&gt;mainLoop:&lt;BR /&gt;; Insert your code here&lt;BR /&gt;&lt;BR /&gt;LDA #$20 ; set AC convertor&lt;BR /&gt;STA ADCSC1&lt;BR /&gt;BRCLR 7,ADCSC1,mainLoop ; wait until conversion is complete&lt;BR /&gt;&lt;BR /&gt;LDA $13 ; load Data results low register&lt;BR /&gt;STA ,X&lt;BR /&gt;AND #$E0&lt;BR /&gt;STA $00 ;set data results register like outputs for PTAD&lt;BR /&gt;&lt;BR /&gt;LDA ,X&lt;BR /&gt;AND #$F8&lt;BR /&gt;STA $02 ; set data results register like outputs for PTBD&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;feed_watchdog&lt;BR /&gt;BRA mainLoop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Dec 2010 07:52:59 GMT</pubDate>
    <dc:creator>Mico</dc:creator>
    <dc:date>2010-12-14T07:52:59Z</dc:date>
    <item>
      <title>Hcs08 AD converting problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Hcs08-AD-converting-problem/m-p/168974#M11144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Im using demoboard mc9S08LC60. and i want convert value from potentiometer.&lt;/P&gt;&lt;P&gt;My code is in assembler, but evry registers are set like in demo code write in C .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem is that there is no results from AD converting . &amp;nbsp;- i thing that converting is not start.&lt;/P&gt;&lt;P&gt;here is my code. Thanks.&lt;/P&gt;&lt;P&gt;;*******************************************************************&lt;BR /&gt;;* This stationery serves as the framework for a user application. *&lt;BR /&gt;;* For a more comprehensive program that demonstrates the more *&lt;BR /&gt;;* advanced functionality of this processor, please see the *&lt;BR /&gt;;* demonstration applications, located in the examples *&lt;BR /&gt;;* subdirectory of the "Freescale CodeWarrior for HC08" program *&lt;BR /&gt;;* directory. *&lt;BR /&gt;;*******************************************************************&lt;BR /&gt;&lt;BR /&gt;; Include derivative-specific definitions&lt;BR /&gt;INCLUDE 'derivative.inc'&lt;BR /&gt;&lt;BR /&gt;; export symbols&lt;BR /&gt;XDEF _Startup, main&lt;BR /&gt;XDEF tlacidlo_ISR, main&lt;BR /&gt;XDEF prevod_ISR, main&lt;BR /&gt;; XDEF hodiny,main&lt;BR /&gt;; we export both '_Startup' and 'main' as symbols. Either can&lt;BR /&gt;; be referenced in the linker .prm file or from C/C++ later on&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;XREF __SEG_END_SSTACK ; symbol defined by the linker for the end of the stack&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;; variable/data section&lt;BR /&gt;MY_ZEROPAGE: SECTION SHORT ; Insert here your data definition&lt;BR /&gt;&lt;BR /&gt;; code section&lt;BR /&gt;MyCode: SECTION&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;; zacoatok hlavneho programu&lt;BR /&gt;main:&lt;BR /&gt;_Startup:&lt;BR /&gt;; inicializacia&lt;BR /&gt;LDHX #__SEG_END_SSTACK ; initialize the stack pointer&lt;BR /&gt;TXS&lt;BR /&gt;CLI&lt;BR /&gt;&lt;BR /&gt;LDA #$13&lt;BR /&gt;STA SOPT1 ; enable interrupts&lt;BR /&gt;; port B3-7 and port A as output&lt;BR /&gt;LDA #$F8&lt;BR /&gt;STA PTBDD&lt;BR /&gt;&lt;BR /&gt;LDA #$E0&lt;BR /&gt;STA PTADD&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;; set clock FEI&lt;BR /&gt;&lt;BR /&gt;Hodiny:&lt;BR /&gt;&lt;BR /&gt;LDA $FFBE&lt;BR /&gt;STA $3E&lt;BR /&gt;&lt;BR /&gt;LDA #$28&lt;BR /&gt;STA ICGC1&lt;BR /&gt;&lt;BR /&gt;LDA #$51&lt;BR /&gt;STA ICGC2&lt;BR /&gt;BRCLR 3,ICGS1,Hodiny&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;; Counter overflow every 1ms&lt;BR /&gt;LDA #$1F&lt;BR /&gt;STA TPM1MODH&lt;BR /&gt;LDA #$40&lt;BR /&gt;STA TPM1MODL&lt;BR /&gt;; Stops timer and selects 1 as prescaler divisor&lt;BR /&gt;LDA #$08&lt;BR /&gt;STA TPM1SC&lt;BR /&gt;&lt;BR /&gt;; set ad convertor&lt;BR /&gt;LDA #$20 ; 22 pta2 to je x os&lt;BR /&gt;STA ADCSC1 ; nastavenie adc prevodnika&lt;BR /&gt;LDA #$60 ;60&lt;BR /&gt;STA ADCCFG ;mo, bez clock divide, short sample, 8 bit , bus clock&lt;BR /&gt;LDA #$00&lt;BR /&gt;STA ADCSC2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mainLoop:&lt;BR /&gt;; Insert your code here&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;prevod: BRCLR 7,ADCSC1,prevod&lt;BR /&gt;LDA $13&lt;BR /&gt;&lt;BR /&gt;feed_watchdog&lt;BR /&gt;BRA mainLoop&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 10:17:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Hcs08-AD-converting-problem/m-p/168974#M11144</guid>
      <dc:creator>Mico</dc:creator>
      <dc:date>2010-12-13T10:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hcs08 AD converting problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Hcs08-AD-converting-problem/m-p/168975#M11145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, and welcome to the forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot see the code where you are waiting for the COCO flag to become set, and are then reading the ADCRL register to obtain the 8-bit conversion result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Writing to ADCSC1 will intiate the conversions.&amp;nbsp; This should be done after the other registers have been initialised.&amp;nbsp; Additionally, you do not seem to have initialised the AD pin within the APCTL1 register.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also noticed that your GPIO initialisation does not match your comment.&amp;nbsp; But PTA0 will not be output since this is the AD pin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the initialisation process consider using the MOV instruction, rather than LDA/STA.&amp;nbsp; This will work for the low registers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 12:33:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Hcs08-AD-converting-problem/m-p/168975#M11145</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-12-13T12:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hcs08 AD converting problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Hcs08-AD-converting-problem/m-p/168976#M11146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem was with start converting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For COCO register i waiting on the end of my code in mainLoop, but problem was because i dont repeatly set ADSC1 register. so COCO flag don set... something like this (sorry about my english &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but now is evrything OK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mainLoop:&lt;BR /&gt;; Insert your code here&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;LDA #$20&lt;BR /&gt;STA ADCSC1&lt;BR /&gt;&amp;nbsp; BRCLR 7,ADCSC1,mainLoop &amp;nbsp;; COCO is 7th flag in this register&lt;BR /&gt;LDA $13&lt;BR /&gt;&lt;BR /&gt;feed_watchdog&lt;BR /&gt;BRA mainLoop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks Mico&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 17:29:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Hcs08-AD-converting-problem/m-p/168976#M11146</guid>
      <dc:creator>Mico</dc:creator>
      <dc:date>2010-12-13T17:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hcs08 AD converting problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Hcs08-AD-converting-problem/m-p/168977#M11147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hoped that my problem its solved, but is still here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i debug and run my program, i cant see changes .(led no light)&amp;nbsp; but when i stop and sart just step prgram evryhting is OK. (mean that LED start lighting. )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;*******************************************************************&lt;BR /&gt;;* This stationery serves as the framework for a user application. *&lt;BR /&gt;;* For a more comprehensive program that demonstrates the more *&lt;BR /&gt;;* advanced functionality of this processor, please see the *&lt;BR /&gt;;* demonstration applications, located in the examples *&lt;BR /&gt;;* subdirectory of the "Freescale CodeWarrior for HC08" program *&lt;BR /&gt;;* directory. *&lt;BR /&gt;;*******************************************************************&lt;BR /&gt;&lt;BR /&gt;; Include derivative-specific definitions&lt;BR /&gt;INCLUDE 'derivative.inc'&lt;BR /&gt;&lt;BR /&gt;; export symbols&lt;BR /&gt;XDEF _Startup, main&lt;BR /&gt;XDEF tlacidlo_ISR, main&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;; XDEF hodiny,main&lt;BR /&gt;; we export both '_Startup' and 'main' as symbols. Either can&lt;BR /&gt;; be referenced in the linker .prm file or from C/C++ later on&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;XREF __SEG_END_SSTACK ; symbol defined by the linker for the end of the stack&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;; variable/data section&lt;BR /&gt;MY_ZEROPAGE: SECTION SHORT ; Insert here your data definition&lt;BR /&gt;&lt;BR /&gt;; code section&lt;BR /&gt;MyCode: SECTION&lt;BR /&gt;&lt;BR /&gt;;prerusenie tlacidlom zmena lediek .... na konci naspet povoli prerusenie myslim overit&lt;BR /&gt;tlacidlo_ISR: BRSET 5,PTBD,L2&lt;BR /&gt;&lt;BR /&gt;BCLR 7,PTBD&lt;BR /&gt;BSET 5,PTBD&lt;BR /&gt;BSET 2,IRQSC&lt;BR /&gt;RTI&lt;BR /&gt;L2: BCLR 5,PTBD&lt;BR /&gt;BSET 7,PTBD&lt;BR /&gt;BSET 2,IRQSC&lt;BR /&gt;RTI&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;; zacoatok hlavneho programu&lt;BR /&gt;main:&lt;BR /&gt;_Startup:&lt;BR /&gt;; inicializacia&lt;BR /&gt;LDHX #__SEG_END_SSTACK ; initialize the stack pointer&lt;BR /&gt;TXS&lt;BR /&gt;CLI&lt;BR /&gt;&lt;BR /&gt;LDA #$13&lt;BR /&gt;STA SOPT1 ; enable interrupts&lt;BR /&gt;; nastavenie portu B3-7 ako vystup&lt;BR /&gt;LDA #$F8 ; ak dam iba $Fo tak mi do A zapise hodnotu z pamet miesta F0&lt;BR /&gt;STA PTBDD&lt;BR /&gt;&lt;BR /&gt;LDA #$E0&lt;BR /&gt;STA PTADD&lt;BR /&gt;&lt;BR /&gt;; nastavenie prerusenia tlacidla&lt;BR /&gt;BCLR 5,IRQSC ; PADAJUCA HRANA&lt;BR /&gt;BSET 4,IRQSC ; IRQ pin enable&lt;BR /&gt;BSET 1,IRQSC ; IRQ hardware interrupt request whenever IRQF = 1&lt;BR /&gt;; NASTAVENIE HODIN INTERNE HODINY POTREBNE K AD PREVODNIKU NA NASTAVENIE RYCHLISTI PREVODU&lt;BR /&gt;&lt;BR /&gt;Hodiny:&lt;BR /&gt;; nahranie toho NVI... nieco treba to odlozit ICGTRM,NVICGTRM&lt;BR /&gt;LDA $FFBE&lt;BR /&gt;STA $3E&lt;BR /&gt;LDA #$28&lt;BR /&gt;STA ICGC1&lt;BR /&gt;LDA #$51&lt;BR /&gt;STA ICGC2&lt;BR /&gt;BRCLR 3,ICGS1,Hodiny&lt;BR /&gt;&lt;BR /&gt;; nastavenie ad prevodnika&lt;BR /&gt;&lt;BR /&gt;LDA #$60 ;60&lt;BR /&gt;STA ADCCFG ;mo, bez clock divide, short sample, 8 bit , bus clock&lt;BR /&gt;LDA #$00&lt;BR /&gt;STA ADCSC2&lt;BR /&gt;&lt;BR /&gt;;LDA #$01&lt;BR /&gt;;STA APCTL1&lt;BR /&gt;&lt;BR /&gt;mainLoop:&lt;BR /&gt;; Insert your code here&lt;BR /&gt;&lt;BR /&gt;LDA #$20 ; set AC convertor&lt;BR /&gt;STA ADCSC1&lt;BR /&gt;BRCLR 7,ADCSC1,mainLoop ; wait until conversion is complete&lt;BR /&gt;&lt;BR /&gt;LDA $13 ; load Data results low register&lt;BR /&gt;STA ,X&lt;BR /&gt;AND #$E0&lt;BR /&gt;STA $00 ;set data results register like outputs for PTAD&lt;BR /&gt;&lt;BR /&gt;LDA ,X&lt;BR /&gt;AND #$F8&lt;BR /&gt;STA $02 ; set data results register like outputs for PTBD&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;feed_watchdog&lt;BR /&gt;BRA mainLoop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 07:52:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Hcs08-AD-converting-problem/m-p/168977#M11147</guid>
      <dc:creator>Mico</dc:creator>
      <dc:date>2010-12-14T07:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hcs08 AD converting problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Hcs08-AD-converting-problem/m-p/168978#M11148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the debugger is observing the value in the ADCRL register, it is possible that this action is clearing the COCO flag prior to the test, during single stepping.&amp;nbsp; If you place a break point following the instruction where the flag is tested, rather than single stepping, does the code now work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I note that you have selected continuous conversion mode.&amp;nbsp; Since you are initiating a conversion within each cycle of the loop, single conversion mode is more appropriate.&amp;nbsp; However, looping to write to ADCSC1 multilple&amp;nbsp;times is wrong.&amp;nbsp; This register should be written once to start a conversion, and then wait until the COCO flag becomes set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 14:39:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Hcs08-AD-converting-problem/m-p/168978#M11148</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2010-12-14T14:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hcs08 AD converting problem</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Hcs08-AD-converting-problem/m-p/168979#M11149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THX problem is solved, i just take out &amp;nbsp;write to ADCSC1 from loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and ist true that during single steping COCO is clearing. (when i placed a break point &amp;nbsp;behind test COCO, cond doesnt work&amp;nbsp; )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 00:38:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Hcs08-AD-converting-problem/m-p/168979#M11149</guid>
      <dc:creator>Mico</dc:creator>
      <dc:date>2010-12-15T00:38:36Z</dc:date>
    </item>
  </channel>
</rss>

