I have done four ports on a ATmega16. It has one hardware uart. This was done in Basic (BASCOM). And it works well. Maybe this will help. At the start: '''''''''''''''''''''''''''''' ' Open com ports '''''''''''''''''''''''''''''' 'open portD.4 for output to HOPTO Open "comd.4:9600,8,n,1" For Output As #1 'open portD.5 for input from Hopto Open "comd.5:9600,8,n,1" For Input As #2 'open portD.6 for output To Particle Counter Open "comd.6:9600,8,n,1" For Output As #3 'open portD.7 for input from Particle Counter Open "comd.7:9600,8,n,1" For Input As #4 'open portC.2 for output to Hand Held Open "comc.2:9600,8,n,1" For Output As #5 'open portC. for input from HandHeld Open "comc.3:9600,8,n,1" For Input As #6 I then just print to the port numbers ie. Print "Hello" ' output to hardware uart Print #1, "Hello" ' would output to software port 1 waitkey(#2) ' would wait for input And at the end. ''''''''''''''''''''''' ' close com ports ''''''''''''''''''''''' Close #1 Close #2 Close #3 Close #4 Close #5 Close #6 JoeT -----Original Message----- From: Wagner Lipnharski [mailto:wagner@ustr.net] Sent: Wednesday, February 04, 2004 11:36 AM To: AVR-Chat@yahoogroups.com Subject: Re: [AVR-Chat] How to implement 6 UART Serial Connections using Atmega128 suri_list wrote: > We have to implement 6 serial connections to 6 modules from each > module. we are going to use the atmega128 on each module. > > The atmega128 has 2 uarts so i can implement 2 simultaneous uarts. > It is preferable not to have any external components (we have to keep > footprint small) , so i want to do everything with the atmega128. > > -- But what abt the other 4. Will I have to bit bang the rest of the > 4 using a software routine uart? > > -- Any other interesting solution which will allow me to use timers > or something so that the cpu doesnt have to be busy doing the serial > commn
Message
RE: [AVR-Chat] How to implement 6 UART Serial Connections using Atmega128
2004-02-04 by JoeT
Attachments
- No local attachments were found for this message.