avrdude-dev
[Top][All Lists]
Advanced

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

[avrdude-dev] [patch #7559] 'arduino' programmer type DTR transition fix


From: Robert Spitzenpfeil
Subject: [avrdude-dev] [patch #7559] 'arduino' programmer type DTR transition fix
Date: Mon, 18 Jul 2011 15:43:28 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0

Follow-up Comment #17, patch #7559 (project avrdude):

I have abandoned windows almost completely.

The only way I can run it is inside VirtualBox, and I don't think it is wise
to use that as reference.

Identical behaviour across platforms is a very good thing!

According to wikipedia, the RS-232 _control signals_ are not inverted.

[...]

When one of these signals is active [DTR...], the voltage on the line will be
between +3 to +15 volts. The inactive state for these signals is the opposite
voltage condition, between −3 and −15 volts. Examples of control lines
include request to send (RTS), clear to send (CTS), data terminal ready (DTR),
and data set ready (DSR).

[...]

So I would think that translating that to 0...5V would be just scaling and
shifting the voltage interval without inversion.

I would assume that ser_set_dtr_rts(1) would therefore set the line HIGH
(active), and ser_set_dtr_rts(0) to LOW.

Why the low-level register writes are inverted on linux I don't know. I'm
trying to find out why that is the case. Finding the right kernel mailing list
is a tedium.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7559>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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