This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

msc1200_adc on hardware

The example program msc1200_adc works in the simulator, but does not appear to run on the msc1200evm hardware.
If the Ouput -> Run User Program box is checked and the name of the download is corrected to match the name of the executable, the program downloads and starts to run, but the characters in the terminal window are gibberish.
The code appears to use 2400 & 8bits, but setting the terminal to these values does not fix it.
Does this example work on the real hardware or just the simulator?

Parents Reply Children
  • I've tried to run blinky but I dont see anything. This might be due to differences between the TI board and the MCBx51(?).

    The hardware appears to be working. I modified my original program to blink the lights successfully:
    =============
    #include <REG1200.H>
    #include <stdio.h>

    extern void autobaud(void);

    sbit RedLed = P3^4;
    sbit YelLed = P3^5;

    void wait (void) { /* wait function */
    ; /* only to delay for LED flashes */
    }

    void main(void) {
    unsigned int i; /* Delay var */
    unsigned char j; /* LED var */

    for (j=0x01; j< 30; j++)
    {
    RedLed = ! RedLed;
    for (i = 0; i < 10000; i++)
    { /* Delay for 10000 Counts */
    wait(); /* call wait function */
    }

    }

    CKCON = 0x10; // per MSC1200 data sheet
    TCON = 0; // per MSC1200 data sheet
    autobaud();
    printf("Hello\n");
    }
    ===================