Eng_Bandar
Junior Member level 3
Hello for all,
I want send data (letters or numbers) by USART Terminal tool in MikroC Pro
This is my code ( example from help file in MikroC Pro )
and this is circuit
**broken link removed**
I have two problems
1- If I send 'a' I should recieve 'a' but I recieve other letter (I sent 'a' I recieved 'y' :| ) Why ?
this is picture illustrate that
**broken link removed**
2- In Proutes I don't see any thing in Virtual Terminal just black screen Why ?
**broken link removed**
help please
I want send data (letters or numbers) by USART Terminal tool in MikroC Pro
This is my code ( example from help file in MikroC Pro )
Code:
char uart_rd;
void main() {
ANSEL = 0; // Configure AN pins as digital
ANSELH = 0;
UART1_Init(9600); // Initialize UART module at 9600 bps
Delay_ms(100); // Wait for UART module to stabilize
UART1_Write_Text("Start");
UART1_Write(10);
UART1_Write(13);
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
}
}
}
and this is circuit
**broken link removed**
I have two problems
1- If I send 'a' I should recieve 'a' but I recieve other letter (I sent 'a' I recieved 'y' :| ) Why ?
this is picture illustrate that
**broken link removed**
2- In Proutes I don't see any thing in Virtual Terminal just black screen Why ?
**broken link removed**
help please