simulavr-devel
[Top][All Lists]
Advanced

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

[Simulavr-devel] serial pin connection confusion


From: Joel Sherrill
Subject: [Simulavr-devel] serial pin connection confusion
Date: Mon, 6 Apr 2009 11:03:42 -0500
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

Hi,

I still think I am confused about something
in building a net.

On the atmega128, I think port e, pin 1 (E1) is TxD.

I would think I want to do something like this:

E1 -> SerialRx -> SerialRX::CharReceived -> outside world

Data does show up via the SerialRX object but it is
all 0's.

   Net ser_rxD0
   SerialRx mysrx $ui "serialRx0" ".x"
   SerialRxBasic_SetBaudRate mysrx 9600
   ser_rxD0 Add [AvrDevice_GetPin $dev1 "E1"]
   ser_rxD0 Add [SerialRxBasic_GetPin mysrx "rx"]

But even in "SerialRx::CharReceived" that value is
0x00.  And the line where it is called from has
"dataByte" as 0x00.

What stupid misunderstanding am I suffering from?

Thanks.

--
Joel Sherrill, Ph.D.             Director of Research & Development
address@hidden        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
  Support Available             (256) 722-9985






reply via email to

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