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

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

Add a New Comment Rich Markup
   

Wed 04 Dec 2019 03:37:25 PM UTC, comment #1: 

Closed, see bug #47065.

Thomas K. <tomk>
Group administrator
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:
http://sgerwk.altervista.org/simulavrscript/simulavr-1.0.0.patch

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tomk (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-04 tomk StatusNone Duplicate
        Assigned toNone tomk
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code