UART AVR

Started by taufiq_tqr in AVRclub10 years ago 4 replies

Hi all... I want to build communication between AVR ATMEGA8535 and my Personal Computer, but how to setting communication in that AVR...

Hi all... I want to build communication between AVR ATMEGA8535 and my Personal Computer, but how to setting communication in that AVR uC??? Can u help to make UART Communication with C language??? Pls help me, I hope somebody in this group can help me to solve my problem... Thanks all, Im waiting the answer... ------------------------------------


HELP ON INTERRUPT DRIVER SRIAL FOR MEGA162

Started by abdullahmansoor_hotmail in AVRclub14 years ago 2 replies

HI I want to use interrupt driven serial programing. I have made program=20 for polled based uart. But I am facing lot of difficulties...

HI I want to use interrupt driven serial programing. I have made program=20 for polled based uart. But I am facing lot of difficulties in=20 understanding the concept of interrupt buffered uart program. Do any one provide with sample code so that help me in getting started. Regards Abdullah ------------------------ Yahoo! Groups Sponsor --------------------~--> =20 Home is just a c


Need help with Serial Port

Started by Rakesh Kumar in AVRclub13 years ago

Hey, I was wanting to do the serial communication with my atmega32. I am using the 1 MHz internal oscillator. The baud rate calculation gives...

Hey, I was wanting to do the serial communication with my atmega32. I am using the 1 MHz internal oscillator. The baud rate calculation gives up 2400 bps. Here's the code I am using for simply echoing back the character typed in the Hyper Terminal. /*this program is to test the microcontroller uart working or not by sending 0x99 to the uart and reading it using Rx and sending it to port...


data receive problem in uart

Started by knightbanana in AVRclub16 years ago 1 reply

hi guys! im danka and i have a small problem with uarts. i'm developing a program that would receive characters from uart. the characters...

hi guys! im danka and i have a small problem with uarts. i'm developing a program that would receive characters from uart. the characters are placed in an array of unsigned characters with a certain size. what i would want to do is to receive characters until the size of the character array reaches its limit or until no more characters are received. the


UART in ATMEGA 8535

Started by taufiq_tqr in AVRclub10 years ago 1 reply

Dear all friend, Anybody help me to explain to me and give me a example how to communicate serial port between ATMEGA8535 and Personal Computer...

Dear all friend, Anybody help me to explain to me and give me a example how to communicate serial port between ATMEGA8535 and Personal Computer (PC). Pls the code use C language. Thanks all, I'm wait the answer ------------------------------------


C CODE

Started by pruchj1 in AVRclub15 years ago 2 replies

Hi! Don?t you have someone C code, which implement simple protocol on UART? I?ve Atmega128. I want to be sure, that recieve data are ok,...

Hi! Don?t you have someone C code, which implement simple protocol on UART? I?ve Atmega128. I want to be sure, that recieve data are ok, without mistakes. For example checksum after recieving message... Thank you! Honza.


ATMEGA with 2 UARTS

Started by Cleber Dantas in AVRclub11 years ago 6 replies

Hello! Greetings from Brazil! Can you recommend an ATMEGA with 2 UARTS? The reason that we will use UART is simple, its more reliable than...

Hello! Greetings from Brazil! Can you recommend an ATMEGA with 2 UARTS? The reason that we will use UART is simple, its more reliable than software serial. I don't know if everybody agree with that. Thanks! Cleber ------------------------------------


Re: Re: RS232 Baud Rate questions

Started by David Jones in AVRclub16 years ago 1 reply

>>> normaxcite@norm... 18/08/2004 8:54:00 pm >>> >"If you need continuous processing but not very fast then you can go for >a slow...

>>> normaxcite@norm... 18/08/2004 8:54:00 pm >>> >"If you need continuous processing but not very fast then you can go for >a slow 32.768KHz crystal. You'll still be able to use the UART at say >300baud." >Dave, >If I stick with my internal RC for clocking and RS232 using 32.768kHz xtal, can I still ge


double UART code

Started by iijfet in AVRclub11 years ago 2 replies

hi,i want to read "8bit data,odd parrity,1stop bit" from a medical module & send it for a bluetooth module(capable of serial communication & has...

hi,i want to read "8bit data,odd parrity,1stop bit" from a medical module & send it for a bluetooth module(capable of serial communication & has RX,TX pins).bauderate is 4800bps. avr chip:atmega64 software:codevision are you have a sample code for me? ------------------------------------


Timer Interrupt creates problem

Started by "Prashant D. Kharade" in AVRclub11 years ago 9 replies

Hello,=0D =0D =0D =0D I am a new to Embedded world. I have chosen AVR series to work=0D =0D I am doing a Datalogger project.=0D =0D ...

Hello,=0D =0D =0D =0D I am a new to Embedded world. I have chosen AVR series to work=0D =0D I am doing a Datalogger project.=0D =0D =0D =0D Facing a problem during the execution. =0D =0D I am sequentially switching the relays, measuring the ADC count & sending t= o UART for checking purpose.=0D =0D I have tried my best & step by step as suggested, but still there is proble= m.=0D...


Re: Off Topic - PIC Programming HELP!!! PIC16C63A CHIPwithICSP & Programmer from JAYCAR

Started by David Jones in AVRclub16 years ago

>>> w9sz@w9sz... 03/06/2004 2:19:21 pm >>> >Very true, I now tend to favor the flash versions of the Microchip parts. >The 16F88 has a...

>>> w9sz@w9sz... 03/06/2004 2:19:21 pm >>> >Very true, I now tend to favor the flash versions of the Microchip parts. >The 16F88 has a lot of features built in. >I've been finding the ATmega8 to be quite a versatile chip too, if you >need A/D converters on a microcontroller. The programming of the UART and


attiny2313 button handler [need help]

Started by "Marojahan M.T. Sigiro" in AVRclub11 years ago 5 replies

hi all,, i have a small project using attiny2313, i'm trying to handle two buttons using pin change interrupt. the problem i got that,...

hi all,, i have a small project using attiny2313, i'm trying to handle two buttons using pin change interrupt. the problem i got that, sometime it gives a good output by send some byte using uart communication, but sometime its not working. i've read about debounce handling (i'm not sure if its correct) but i dont know it mutch yet. This is my first time make a program to handle external i...


ending interrupt

Started by uzay1983 in AVRclub15 years ago

Hi everybody; I've written a code for uart but the problem is that when SIGNAL(SIG_UART_RECV) interrupt begins, it will never end ,and ...

Hi everybody; I've written a code for uart but the problem is that when SIGNAL(SIG_UART_RECV) interrupt begins, it will never end ,and microcontroller is remaining in SIGNAL(SIG_UART_RECV). The basic purpose is sending data and receving data. the key is sent which is obtained from return_key function. And any data gets but when data is received , I w


Using XON/XOFF

Started by Sven Haedel in AVRclub17 years ago 2 replies

Hello, I programmed an application using the UART (interrupt driven) on a Mega8 with the STK500. Everything works fine, except I do not...

Hello, I programmed an application using the UART (interrupt driven) on a Mega8 with the STK500. Everything works fine, except I do not receive every byte I send to the AVR. It reads and executes the commands I send to it, but while executing, it misses some bytes. I tried to implement Xon/Xoff Handshaking but after I send Xoff to the Computer, Xon is neve


send data atmega 128l to pc

Started by mojahid seddig in AVRclub14 years ago 2 replies

i want to send data from =B5c 128l to pc using uart =09=09 --------------------------------- Yahoo! Cars NEW - sell your car and browse...

i want to send data from =B5c 128l to pc using uart =09=09 --------------------------------- Yahoo! Cars NEW - sell your car and browse thousands of new and used cars= online search now=20=20 --------------------------------- =20=20 ------------------------ Yahoo! Groups Sponsor --------------------~--> =20 Everything you need is one=A0click away.=A0 Make Yahoo! your home page=A0


Re: RS232 Baud Rate questions

Started by David Jones in AVRclub16 years ago 22 replies

>>> YahooGroups@Yaho... 20/08/2004 2:26:21 am >>> >* Go ahead and run from the internal RC oscillator. >* Connect a 32.768 kHz watch...

>>> YahooGroups@Yaho... 20/08/2004 2:26:21 am >>> >* Go ahead and run from the internal RC oscillator. >* Connect a 32.768 kHz watch crystal to TOSC1 and TOSC2. >* Set the U2X bit, so you need a UART clock of 19.2 * 8 = 153.6 kHz. >* Using a timer running from the timer oscillator and another timer >running from the main clock, c


shortbof time atmega8

Started by JOEL DEEPAK in AVRclub10 years ago 1 reply

i hav a doubt regarding atmega8 microcontroller.... pls help, im running shortbof time.... a) is it possible to atmega8 to send text message to...

i hav a doubt regarding atmega8 microcontroller.... pls help, im running shortbof time.... a) is it possible to atmega8 to send text message to GSM modem so that modem wil sen that text as SMS to my mobile? b)how to get started with tat program? c)i hav a program for UART ..wil this be helpful for writing this code?


software uart and ischarwaiting

Started by ktucker8825 in AVRclub17 years ago 2 replies

I wanted to make 2 software uarts and ran into a strange situation. If I open a port and then close it in one sub routine, open a second ...

I wanted to make 2 software uarts and ran into a strange situation. If I open a port and then close it in one sub routine, open a second port and close it in another subroutine, the program does not work. If I open both ports in the same subroutine, use them and then close both ports the program works. I can program around this. I just thought it was strange.