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?
Does this example work on the real hardware or just the simulator When you select the abnormal model "large" you will, usually, have to modify everything associated with timing because nobody anticipated you would do that. Erik
I was using small memory model when attempting to run on the hardware, so I dont see how "large" becomes an issue. I'd like to see it run in the large model, but have not attempted that since it does not work in the small model
Well, in your other post you state thet you use the large model. Erik PS WHY???
does e.g. "blinky" work ?? Erik
I will need a large model for my application. I want to capture ~10K of data from the ADC and process it so I need a bigger chunk of memory.
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"); } ===================
View all questions in Keil forum