<?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 Re: how to run s08 without bdm? in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166611#M10668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi trav,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the MPU is reset code execution will jump back to the beginning or more precisely it will jump to the location programmed into the reset vector.&lt;/P&gt;&lt;P&gt;You do have the reset vector set, don't you?&lt;/P&gt;&lt;P&gt;This could be the cause of your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Mar 2009 06:03:22 GMT</pubDate>
    <dc:creator>peg</dc:creator>
    <dc:date>2009-03-29T06:03:22Z</dc:date>
    <item>
      <title>how to run s08 without bdm?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166605#M10662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I have a demoQE board, and I want it to run on it's own without having to be hooked up to the computer, how do I do this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2009 06:26:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166605#M10662</guid>
      <dc:creator>trav</dc:creator>
      <dc:date>2009-03-25T06:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to run s08 without bdm?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166606#M10663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;no one?&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 09:14:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166606#M10663</guid>
      <dc:creator>trav</dc:creator>
      <dc:date>2009-03-27T09:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to run s08 without bdm?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166607#M10664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Trav,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given that you should not have to do anything special other than to arrange for a different power supply other than the one provided by the USB cable, you probably should be telling us what your EXACT problem is with this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 16:09:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166607#M10664</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2009-03-27T16:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to run s08 without bdm?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166608#M10665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Well I can run the board off of batteries, and it lights up but doesn't do what it's suppose to.&amp;nbsp; It's suppose to initialize a LCD but never does. The only way I can get it to run is thru the simulator.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2009 23:52:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166608#M10665</guid>
      <dc:creator>trav</dc:creator>
      <dc:date>2009-03-27T23:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to run s08 without bdm?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166609#M10666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Ok here is a question, if I pull reset low, the mcu should restart my code all over from the beginning? or from where it left off?&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Mar 2009 02:18:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166609#M10666</guid>
      <dc:creator>trav</dc:creator>
      <dc:date>2009-03-29T02:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to run s08 without bdm?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166610#M10667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what I have code wise so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;
#include &amp;lt;hidef.h&amp;gt; /* for EnableInterrupts macro */#include "derivative.h" /* include peripheral declarations */#include &amp;lt;stdio.h&amp;gt;/* Define a shortname for variable types */ typedef unsigned char    UINT8;  /*  8 bits */typedef unsigned short int UINT16; /* 16 bits */typedef unsigned long int  UINT32; /* 32 bits */typedef signed char     INT8;   /*  8 bits */typedef signed short int  INT16;  /* 16 bits */typedef signed long int   INT32;  /* 32 bits */typedef volatile UINT8   VUINT8;  /*  8 bits */typedef volatile UINT16   VUINT16; /* 16 bits */typedef volatile UINT32   VUINT32; /* 32 bits *///Register select line#define LCD_RSH (PTDD_PTDD4= 1);#define LCD_RSL (PTDD_PTDD4= 0);//Read/Write#define LCD_RWH (PTDD_PTDD5= 1);#define LCD_RWL (PTDD_PTDD5= 0);//Enable line#define LCD_EH (PTDD_PTDD6 = 1);#define LCD_EL (PTDD_PTDD6 = 0);#define LCD_STROBE_E ((PTDD_PTDD6 = 1),(delay(0xF)),(PTDD_PTDD6=0));UINT16 ones, tenths, hundredths;UINT16 adc_val;UINT32 temp;char volts[10];void initSystems(void), InitADC(void), SetADC(byte, byte);void initLCD(void), LCDCmd(UINT8), LCDChar(UINT8), dsplyString(UINT8 *);void delay(UINT8);void main(void) {    initSystems();  InitADC();  initLCD();  SetADC(0x0A,0x01);                      // ADC10, enable interrupt  EnableInterrupts;                       /* enable interrupts */     LCDCmd(0x0C);          while(1){      temp = (ulong)adc_val * 7662; //7324 for 3V      ones = temp / 10000000;      temp = (temp - (10000000* ones));      tenths = temp/1000000;      temp = (temp - (1000000*tenths));      hundredths = temp /100000;      sprintf(volts, "gm:%d.%d%d",  ones, tenths, hundredths);      dsplyString(volts);      LCDCmd(0x02);      delay(0xFFFF);    } }/************************** System Initializations ***************************/void initSystems() {    SOPT1  = 0x00;                          // Disable COP,RSTO, enable BKGD,RESET  SOPT2  = 0x00;                          //   SPMSC1 = 0x00;                          // Disable LVD  SPMSC2 = 0x00;                          // Disable power-down modes  SPMSC3 = 0x00;                          // Disable LVWIE, low trip points  SCGC1  = 0xFF;                          // Enable bus clock to ADC   SCGC2  = 0xFF;                          // } /*************************** ADC Initialization *******************************/void InitADC(void) {    ADCCFG = 0x17;  ADCSC2 = 0x00;  ADCSC1 = 0x00;    ADCSC1_ADCO = 1;      //hardware trigger interrupt    APCTL2 = 0x04; } /**************************  SetADC to pick ADC Channel  **********************/void SetADC(byte adc_channel, byte aien_value) {  ADCSC1_AIEN = aien_value&amp;amp;0x01;  ADCSC1_ADCH = adc_channel;}/***************************  ADC Interrupt  ****************************/interrupt VectorNumber_Vadc void   ADC_ISR(void) {  if(ADCSC1_COCO ==1)    adc_val = ADCR;}/***************************  LCD Connections  ****************************4-bit modePTD0-PTD3 = DB4-DB7   Data busPTD4      = RS        Register selectPTD5      = R/W       Read / WritePTD6      = E         EnablePORTD 0b00000000         |||||||         |||---- data bus  0x0F         |||---- RS        0x10         ||----- R/W       0x20         |------ Enable    0x40  */        /***************************  Initialization of LCD  ************************/void initLCD(void) {     PTDDD = 0xFF;                       //Set PortC as output    PTDD = 0x00;                        //Set PortC outputs to 0x00    LCD_RWL;                            //Make sure it's in Write mode        PTDD=0x03;  LCD_STROBE_E;   delay(0xFF);        PTDD=0x03;  LCD_STROBE_E;   delay(0xF);            PTDD=0x03;  LCD_STROBE_E;   delay(0xF);        PTDD=0x02;  LCD_STROBE_E;   delay(0xF);            LCDCmd(0x28);    LCDCmd(0x08);    LCDCmd(0x01);    LCDCmd(0x06);    LCDCmd(0x0F);}/****************************  LCD Commands  ****************************//*0x01; clears screen0x38; sets up the display initalization0x0F; turns display on0x06; sets the cursor on and blinking0x02; move cursor to start and don't destroy data0x18; shifts cursor to the left when a char is entered0x1C; shifts cursor to the right when a char is entered0x10; moves 1 char to the left0x14; moves 1 char to the right0x80; add this to the address of the display to set the cursor position wanted*/void LCDCmd(UINT8 ch) {    UINT8 ln, un;    //lower and upper nibble    ln = ch &amp;amp; 0x0F;    un = ch &amp;gt;&amp;gt;4;    delay(0xFF);    PTDD = un;    LCD_STROBE_E;           delay(0xFF);      PTDD = ln;    LCD_STROBE_E;    }/**********************  Places a Char on LCD screen  ***********************/void LCDChar(UINT8 ch) {    UINT8 ln, un;    //lower and upper nibble    ln = ch &amp;amp; 0x0F;    un = ch &amp;gt;&amp;gt;4;        //upper nibble first    PTDD = un;    LCD_RSH;  LCD_STROBE_E            //lower nibble    PTDD = ln;    LCD_RSH;  LCD_STROBE_E;                LCD_RSL;}/************************  Places a String on LCD screen  ********************/void dsplyString(UINT8 *msgptr) {  while(*msgptr){    LCDChar( *msgptr);    msgptr++;  }}/*************************   delay code  ***************************/void delay(UINT8 cnt){ int i;  for(i=0;i&amp;lt;cnt;i++){  }} &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&amp;nbsp;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:14:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166610#M10667</guid>
      <dc:creator>trav</dc:creator>
      <dc:date>2020-10-29T09:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to run s08 without bdm?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166611#M10668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi trav,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the MPU is reset code execution will jump back to the beginning or more precisely it will jump to the location programmed into the reset vector.&lt;/P&gt;&lt;P&gt;You do have the reset vector set, don't you?&lt;/P&gt;&lt;P&gt;This could be the cause of your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Mar 2009 06:03:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166611#M10668</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2009-03-29T06:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to run s08 without bdm?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166612#M10669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is in the MC9S08QE128.h file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;
#define Vreset                          0x0000FFFE&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is at the end of the Project.prm file&lt;/P&gt;&lt;PRE&gt;
VECTOR 0 _Startup /* Reset vector: this is the default entry point for an application. */&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;And this at the end of the Start08.c file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;
__EXTERN_C void _Startup(void) {/* set the reset vector to _Startup in the linker parameter file (*.prm):    'VECTOR 0 _Startup'    purpose:    1)  initialize the stack                2)  initialize run-time, ...                    initialize the RAM, copy down init data, etc (Init)                3)  call main;    called from: _PRESTART-code generated by the Linker*/  INIT_SP_FROM_STARTUP_DESC();#ifndef  __ONLY_INIT_SP  Init();#endif#ifndef __BANKED__  __asm JMP main; /* with a C style main(); we would push the return address on the stack wasting 2 RAM bytes */#else  __asm CALL main;#endif}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not quite sure what I am suppose to be looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Travis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by trav on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-03-29&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;12:47 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:14:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166612#M10669</guid>
      <dc:creator>trav</dc:creator>
      <dc:date>2020-10-29T09:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to run s08 without bdm?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166613#M10670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Figured out my problem, when it's not hooked up to the BDM the clock runs faster, my delay use a for loop (ya I know I'm lazy).&amp;nbsp; I didn't realize under BDM it would use a slower clock speed.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2009 08:49:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/how-to-run-s08-without-bdm/m-p/166613#M10670</guid>
      <dc:creator>trav</dc:creator>
      <dc:date>2009-03-31T08:49:39Z</dc:date>
    </item>
  </channel>
</rss>

