saesaria
Member level 1

Hi!
I designed rs232 to TTL using max232, I got the schematic from the internet. Then I tried it but it doesn't work at all. The schematic I made is shown as below.

I tried to connect AVR with PC and check the communication in hyperterminal, but no responding. Is there anything I missed?
The following is the code I am using
thanks
I designed rs232 to TTL using max232, I got the schematic from the internet. Then I tried it but it doesn't work at all. The schematic I made is shown as below.

I tried to connect AVR with PC and check the communication in hyperterminal, but no responding. Is there anything I missed?
The following is the code I am using
Code:
char uart_rd;
void main() {
UART1_Init(9600); // Initialize UART module at 9600 bps
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
}
}
}
thanks