Dear all
iam having problem with SWITCH case
switch(aaa) { case '1': LIGHT=1; printf("Light On\n"); break; case '2': LIGHT=0; printf("Light Off\n"); break; case '3': printf("Unknown Command\n"); break; default: printf("New Command\n"); break; }
this code is running in the uvision simulator well fine.
but after compiling its not working with the chip.
same code after removing "default" tag is working with simulator as well as chip fine.
switch(aaa) { case '1': LIGHT=1; printf("Light On\n"); break; case '2': LIGHT=0; printf("Light Off\n"); break; case '3': printf("Unknown Command\n"); break; }
is there any "Target setting" i need to change?
iam using
On chip ROM - Enabled X-Tall - 11.0592 Memory Model - Small Code Rom Size - Large Operating System - None
and in "C51" Option Level - 8 common tail merging Emphasis - Favor Execution speed Compiler control string - BROWSE DEBUG OBJECTEXTEND
thanks in advance.
Your ISR should do the absolute minimum required to service the interrupt and capture any related data - and nothing else;
You should leave it to your "main" code to deal with transmitting data to the computer.
"any feed back on AVR/SPI Flash Programmer?"
That has nothing to do with any Keil tools, nor even any architecture supported by Keil tools - you need to ask that is a different forum, eg http://www.avrfreaks.net
Thanks For all who shared me the information
now my device is working fine. the problem i found is in wiring area.