Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
OK. Have you used Atmel Studio 6? It is free. You can use the same code, but you have to include the proper headers. Can you compile this code on Atmel Studio 6 and send me the hex file. Compile for 8 MHz.
I compiledd the code in the above link in atmel studio 6 and I got that same C type character, but not 'C'. so the problem is not with the compiler. I think the problem lies in proteus.
I will try a code using mikroC Pro for AVR. Hope it works fine.
----------Updated---------------
I tried with mikroC also, but got the same C type character. The problem is with proteus.
OK. I tries a simple UART example of sending text and characters to Virtual Terminal using PIC16F877A and it worked in Proteus.
Here is the Screenshot. Have to figure out why AVR uart simulation in proteus is not working.
What is your F_CPU after Prescaling. Are you Prescaling Fosc?
------------Update----------------
It is working. See the attached image and download the rs232.rar file.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.