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: SimulationSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Originator Email: -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:
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 File(s):
   
   
Comment:
   

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 click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup1