avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] Flow control with Butterfly


From: Trevor White
Subject: Re: [avr-chat] Flow control with Butterfly
Date: Fri, 18 Mar 2005 11:41:45 +0000

Hi, maybe you could put a big pause between each char sent to see if it is overhead....

Pertti Kellomäki wrote:

I am writing a data logging application using the Butterfly
as the target hardware. I can talk to the  Butterfly using a
terminal, but if I try to talk to it with a Python program,
some characters get lost.

I have used the application shipped with the Butterfly as
a starting point, so when receiving from the uart my program
also continually polls the pins connected to the joystic. The
LCD driver is also working at the same time.

Now my question is: should I need flow control at all, and
if so, what should it be? My hunch is that at 9600 baud the
Butterfly should not have any problems keeping up, but
I don't have any idea of e.g. the overhead of the LCD driver.

The easiest way out for me is to implement a simple minded
protocol, where the Butterfly echoes everything back, and
the PC side reads each character before sending the next
one. This is not very elegant, though, so I am thinking of
interrupt-driven receiving from the uart.

I could implement hardware flow control, but I an unsure
whether all PC serial ports respect rts/cts signals. It also
seems that I would neet to generate them by software on
the Butterfly.

Any thoughts?




--

No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 15/03/2005



This e-Mail (and any attachments) should only be read by the intended 
addressee(s) and not be relied upon without subsequent written confirmation of 
its contents. International Motion Control Ltd. (IMC) accepts no liability for 
the consequences of any person acting on such information prior to the receipt 
of such confirmation. If you are not the intended recipient, you are not 
authorised to, and must not use, disclose, copy, distribute, or retain this 
message, its attachments or any part thereof. Any views or opinions expressed 
are those of the author and do not necessarily reflect the opinions of IMC.

International Motion Control Ltd. www.midland-acs.com www.enidine.co.uk
www.alconsolenoids.com  www.landonkingsway.com
Patrick Gregory Road, Wolverhampton, WV11 3DZ, UK
Tel: +44 (0)1902 305678   Fax: +44 (0)1902 305676








reply via email to

[Prev in Thread] Current Thread [Next in Thread]