simulavr-devel
[Top][All Lists]
Advanced

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

Re: [Simulavr-devel] SerialRX and feedback example


From: address@hidden
Subject: Re: [Simulavr-devel] SerialRX and feedback example
Date: Wed, 08 Apr 2009 10:30:41 -0700


On Wed Apr  8 10:23 , Joel Sherrill  sent:

>address@hidden wrote:
>> On Tue Apr  7 18:35 , Joel Sherrill  sent:
>>
>>   
>>> address@hidden wrote:

>>>> From the description, the pins are not connected.
>>>> Is the connection done with a Netlist?
>>>> If so, perhaps its methods deserve debugging statements.
>>>>
>>>>   
>>>>       
>>>    Net ser_rxD0
>>>    SerialRx mysrx $ui "serialRx0" ".x"
>>>    SerialRxBasic_SetBaudRate mysrx 9600
>>>    ser_rxD0 Add [SerialRxBasic_GetPin mysrx "rx"]
>>>    ser_rxD0 Add [AvrDevice_GetPin $dev1 "E1"]
>>>     
>>
>> I can't read tcl well enough to tell.
>>   
>This is a rough translation to C++.  The binding is very close
>once you get a handle on reading it.
>
>ser_rxD0 = new Net()
>mysrx = new SerialRx( ui, "serialRx0, ".x )
>mysrx->SetBaudRate(9600)
>ser_rxD0->Add( mysrx->GetPin( "rx" ) )
>ser_rxD0->Add( dev1->GetPin( "E1" ) )

What happens if Add or GetPin fails, e.g.
"rx" or "E1" is spelled wrong?

>Where dev1 is an atmega128 instance.
>> Any suggestions on how I learn to do that?
>> Did K&R write a tcl book?
>>
>>   
>I have an old Tcl book which is quite good but the online
>docs are excellent.

I'll try using them again.

--
Michael Hennebry
address@hidden
"War is only a hobby."

---- Msg sent via CableONE.net MyMail - http://www.cableone.net



reply via email to

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