18K46K22 UART

General discussion on mikroC.
Post Reply
Author
Message
coskunkazma
Posts: 34
Joined: 30 Aug 2011 07:03

18K46K22 UART

#1 Post by coskunkazma » 26 Oct 2011 03:44

Dear Friends,

is there any idea for 18K46K22 uart configuration.

char uart_rd;
void main()
{
UART1_Init(9600); // Initialize UART module at 9600bps
Delay_ms(100); // Wait for UART module to stabilize
while (1)
{ // Endless loop
if (UART1_Data_Ready())
{ // If data is received,
uart_rd = UART1_Read(); // read the received data,
UART1_Write(uart_rd); // and send data via UART
UART1_Write("TEST");
}
}
}


this code does not receive data from uart. Also tehre is no USART library

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: 18K46K22 UART

#2 Post by janko.kaljevic » 09 Nov 2011 11:33

Hello,

I believe that we have continued this correspondence on support desk.

Best regards.

Post Reply

Return to “mikroC General”