Is there any difference in RS232 and USB communication for Keil for at89c51.
If i have rs232 port at controller side and usb at PC side than what step i need to follow while programming.
Can any one help me to write simple code for below.
I have Connected in this is RTC I2C(DS1307) with 32.678khz and i want to see this time in my PC.
How could i?
i have at89c51 controller with 11.0592 freq.
hai,
i think u want to interface your microcontroller with ur PC, but your PC doesn't have a COM port (RS232), is that right?
if so, U need to add a bridge between PC and your microcontroller (USB to RS232 bride, board is available or u can make ur own using converter IC..). then U can communicate with PC using UART....
If I use that cable which have RS232 at one side and USB at other side than in which application can I see the output. (i.e.,I mean how we see output in hyper terminal.)
If I use that cable which have RS232 at one side and USB at other side than in which application can I see the output. (i.e.,I mean how we see output in hyper terminal.)
You can use ft232 or pl2303... usb to serial converter.
After you install the driver of the converter, your pc can communicate with the microcontroller with standard baud rates.
I2C protokoll not sensitive for speed. The microcontroller generate the sda/sck signal. You can modify the at89c51 frequency if need for right uart timing.
Ok i got that but now is there any changes that i have to do in program?
i mean i have a program in c for rs232 to send data to PC but now i want to use usb.