Continue to Site

Welcome to EDAboard.com

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.

send data to the serial port using proteus based ATmega16

Status
Not open for further replies.
No, that is the COF file of code3.
I'm sure that "Serial test 3" contain the code from code 3...

- - - Updated - - -

THat is the COF of code 3,
 

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.
 

Here is a good link on avr usart. http://deans-avr-tutorials.googlecode.com/svn/trunk/USART/Output/USART.pdf download it.

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.
 

Attachments

  • pic_rs232.jpg
    pic_rs232.jpg
    174 KB · Views: 70
  • rs232_adc.jpg
    rs232_adc.jpg
    303 KB · Views: 64
  • rs232.rar
    22.8 KB · Views: 38
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top