bugSimulavr: an AVR simulator - Bugs: bug #47066, the USART startbit is taken to...


bug #47066: the USART startbit is taken to start one sample too late, in hwuart.cpp

Submitted by:  None
Submitted on:  Fri 05 Feb 2016 09:45:10 AM UTC  
Category:  Simulation Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Component Version:  simulavr

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 05 Feb 2016 09:45:10 AM UTC, original submission:  

as shown in the datasheet, the first sample of the startbit is the sample when pinRx==0 is detected; as a result, if the receiving state machine is in state RX_WAIT_FOR_LOWEDGE and pinRx==0, then the next state must be RX_READ_STARTBIT with cntRxSamples=2, not cntRxSamples=1

the same applies to the transition from RX_READ_STOPBIT into RX_READ_STARTBIT

a patch that includes a fix for this bug:



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




No changes have been made to this item

Back to the top

Powered by Savane 3.5