Hello!
I have problem with configuration of UART_1 on at89c51re2 micro controller I supposed that is because I am using a at89c51xd2.h header file which does not include definition for UART_1. When I try to define Sbit (ES1 , 0xB1, 3); in IEN1 (0xB1) register i receive error message error C142: 'SFR': invalid base address.
Any help?
Thanks in advance
In main.c I defined SCON_1 = 0x50; // SCON1: mode 1, 8-bit UART, enable rcvr T2MOD |= 0x20; // T2MOD: timer 1, mode 2, 8-bit reload TH2 = 221; TL2 = 0; // TH2: reload value for 1200 baud @ 16MHz TR2 = 1; ES1=1; // TR2: timer 1 run TI_1 = 1; // TI1: set TI to send first char of UART RI_1=1; T2CON|=0x30;