I am trying to receive debug messages to UART1 in Keil 4
This peace of code successfully works with Generic 8051 device and internal simulator.
But when I open real device (EX-F34x-Q-48) debug has stopped on checking interrupt bit.
For real device I have put another "h" file - c8051F340.h
What I am wrong?
//-----Fosc = 11.592MHz, Baud Rate = 9600-------//
void uart_tx(unsigned char x);
unsigned char uart_rx();
void uart_msg(unsigned char *c);
void delay(unsigned int ms);
unsigned char tx_data;
uart_msg("Initializzing Serial Communication");
tx_data = uart_rx();
SCON = 0x50;
TMOD = 0x20;
TH1 = 0xFD;
TR1 = 1;
void uart_tx(unsigned char x)
SBUF = x;
TI = 0;
unsigned char uart_rx()
unsigned char z;
z = SBUF;
RI = 0;
void uart_msg(unsigned char *c)
while(*c != 0)
void delay(unsigned int ms)
TI0 in header file has another value...
View all questions in Keil forum