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.
Re: 5 microcontrollers communcation using UART.(ATmega32)
I appreciate your help and work on what you said.
Actually I tried searching for stuff like UART interrupt but all is theory nothing related to codes and process
so that's y I need to ask you about the same. But my apologize I'll try...
Re: 5 microcontrollers communcation using UART.(ATmega32)
i'm lil bit confused here now. you are saying im reading PINA value two times ?? how??
there is a condition
if(any button pressed) // without any button press it won't let enter any one so how can it read value two times.
{
//store...
Well only the receiving part is in ISR.
The codes i'm using for receiving and ISR is ->
ISR (TIMER1_COMPA_vect) // Timer1 ISR
{
if(PINA!=0x1f) //this is a condition where if any button pressed(out of 5 buttons i am using) will be detected
{
val=PINA...
Re: 5 microcontrollers communcation using UART.(ATmega32)
Pardon for wrong code for receiving.
if((UCSRA&(1<<RXC)))
{
received_data=UDR;
decide_func(received_data);
}
And its working properly.
- - - Updated - - -
Well only the receiving part is in ISR.
The codes i'm...
Re: 5 microcontrollers communcation using UART.(ATmega32)
Actually I am doing something different like whenever button pressed ( assume it interrupt) timer's check if there is any data received or not, if yes then see what received and take action accordingly. If not received then recheck it...
Re: 5 microcontrollers communcation using UART.(ATmega32)
What does that pooling means.....I am trying to use UART to transmit and receive data without delay.
I'll provide every information i have, But i need some time to work on that to make it understandable. i'll post that details tomorrow morning.
But i'll tell you my main concern is....i want to call timer interrupt every some ms so in that mean time if any button pressed it will be detected and...
Re: 5 microcontrollers communcation using UART.(ATmega32)
1. Bus topology- 5th micro rx and tx connected to 4 micros rx,tx.
2. Using proteus free version with AVR studio.
3. 1MHz internal oscillator , 2400 BAUD,
4. Bus arbitration is the thing i want to know (How to do that).
5. I don't...
5 microcontrollers communcation using UART.(ATmega32)
Hello friends,
I am trying to communicate 5 micros using UART with 1MHz freq and 2400 baud.
all 5 micros are ATmega32, the problem is there is an never end loop on going in main and i don't want to interrupt it while receiving and...
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.