Question: AVR-gcc Write avr-gcc code for the Atmega328 that should send and receive some numbers via the serial port (RX-TX). The simulation includes two Atmega328 and

 AVR-gcc Write avr-gcc code for the Atmega328 that should send and

AVR-gcc Write avr-gcc code for the Atmega328 that should send and receive some numbers via the serial port (RX-TX). The simulation includes two Atmega328 and two seven segment display connected to their PorB. (4800 BPS, 8Bit, N, 15) Please watch the simulation file carefully. The difference in the source code is just the order of // source 1 // source 2 receive and tranmit functions, so as the first begins to transmit, the second have to receive the data. while(1) while(1) You may define the array as a global variable: { { extern char number [30]="02122856963"; Transmitt(); Receivee(); Receivee(); Transmitt(); The array is send one by one and the value send is } } displayed at the local port and also on the port at the } } receiver side. Once the array is completely send, now it's the receiver and begins to receive data send from the second microcontroller (02122856386). All that happens in an infinite while loop in the main() function. Run the simulation on proteus. Files to send: atmel studio project (avr-gcc file, hex file), proteus file RXD VT52, VT100, ANSI TXD RTS 1 CTS Virtual Terminal U1 300 012 PDO/RXD/FCINT16 310 PB0/CP1/CLKO/PCINTO PD1/TXD/FCINT17 13 32 PB1/OC1A/PCINT1 14 PD2/INTO/PCINT18 PB2/SS/OC1B/PCINT2 15 PD3/INT1/OC2B/PCINT19 2 PB3/MOSI/OC2A/PCINT3 16 PD4/TO/XCKPCINT20 PB4/MISO/PCINT4 PD6/T1/OCOB/PCINT21 17 100 PB5/SCK/PCINTS PDB/AINOIOCOA/PCINT22 PBB/TOSC1/XTAL 1/PCINTO 7 18 PDZIAIN 1 PCINT23 PB7/TOSC2/XTAL2/PCINT? 23 PCO/ADCO/PCINTS AVCC 24 PC1/ADCUPCINTO 25 PC2IADC2/PCINT10 ADC6 28 PC3/ADC3/FCINT11 ADC7 27 PC4IADC4/SDA/PCINT12 28 PC5/ADC5/SCL/PCINT13 29 PCB/RESET PCINT14 TMEGA3287 TEXT AREF 02122856963 0212 RXD VT152. VT100, ANSI , TXD RTS . CTS Virtual Terminal J2 30- - 12 PDO/RXD/FCINT16 PBO/CP1/CLKOIPCINTO 013 310 PD1/TXD/FCINT17 PB1/0C1A/PCINT1 320 14 PD2/INTO/PCINT18 PB2/SS/OC1B/PCINT2 15 2 PD3/INT1/0C2B/PCINT19 PB3IMOSIOC2A/PCINT3678 PD4/TO/XCKPCINT20 PB4/MISO/PCINT4 17 PB5/SCK/PCINTS PD6/T1/OCOB/PCINT21 10- -7 III.PDB/AINOIOCOA/FCINT22 PBB/TOSC1/XTAL 1/PCINTO 8 PD7IAIN1/PCINT23 PB7/TOSC2/XTAL2/PCINT7 AREF PCO/ADCO/PCINTS 23 24 AVCC PC1/ADC1/PCINTO 2 PC2/ADC2/PCINT10 28 ADCG PC3/ADC3/PCINT11 -27 ADC7 PC4/ADC4ISDA/PCINT12 28 FC5/ADC5/SCLIPCINT13 29 PCB/RESET/PCINT14 TMEGA3287 TEXT, 02321550971

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!