[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Simulavr-devel] SerialRX and feedback example
From: |
Knut Schwichtenberg |
Subject: |
Re: [Simulavr-devel] SerialRX and feedback example |
Date: |
Thu, 09 Apr 2009 22:10:22 +0200 |
User-agent: |
Thunderbird 2.0.0.19 (X11/20081227) |
Joel Sherrill schrieb:
> Knut Schwichtenberg wrote:
>> Joel,
>>
>> back to the roots: If I got you right your problem is that under all
>> circumstances your receiver get always "0". And now you are looking
>> for reasons.
>>
>>
> That's the root of the problem.
Okay, I'm not sure if I get you right:
I use the CVS loaded on 27-Mar:
make dogdb
../simulavr.tcl -d atmega128 -f feedback -s ./feedback.tcl -W 0x21,/dev/stderr
-R 0x22,- -F 4000000 -T exit -S ./simfeedback.tcl -g
No connect to socket possible now... retry Connection refused
No connect to socket possible now... retry Connection refused
User Interface Connection opened by host 127.0.0.1 port 7777
Waiting on port 1212 for gdb client to connect...
Connection opened by host 0.0.0.0, port -28871.
Initialize debug io
-uart init--h-h-e-e-l-l-l-l-o-o- - -w-w-o-o-r-r-l-l-d-d-J--O--E--L--
...
What I do not understand is the duplicate of characters except if one character
is routed to the special pin and one is the real received character.
In the "simfeedback.tcl" window I see
....
FDBK RECV: --->set rxD0 L<---
FDBK SET: rxD0 ChangeValue L
FDBK RECV: --->set serialRx0 0x0<---
FDBK SET: serialRx0 ChangeValue 0x0
SerialRx: 0x0
FDBK RECV: --->set rxD0 H<---
FDBK SET: rxD0 ChangeValue H
FDBK RECV: --->set rxD0 L<---
FDBK SET: rxD0 ChangeValue L
FDBK RECV: --->set serialRx0 0x0<---
FDBK SET: serialRx0 ChangeValue 0x0
SerialRx: 0x0
.....
Do you talk about the "SerialRx: 0x0"?
>
> The SerialRX PinChanged notification routine is showing transitions.
> The state change bit sampling logic in Step is just always seeing 0.
Knut
Re: [Simulavr-devel] SerialRX and feedback example, address@hidden, 2009/04/08