simulavr-commit
[Top][All Lists]
Advanced

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

[Simulavr-commit] simulavrxx ChangeLog src/hwspi.cpp src/hwspi.h ...


From: Joel Sherrill
Subject: [Simulavr-commit] simulavrxx ChangeLog src/hwspi.cpp src/hwspi.h ...
Date: Thu, 26 Mar 2009 18:04:37 +0000

CVSROOT:        /sources/simulavr
Module name:    simulavrxx
Changes by:     Joel Sherrill <joelsherrill>    09/03/26 18:04:37

Modified files:
        .              : ChangeLog 
        src            : hwspi.cpp hwspi.h pin.cpp 

Log message:
        2009-03-26      Michael N. Moran <address@hidden>
        
                Patch 4595
                * src/hwspi.cpp, src/hwspi.h, src/pin.cpp: The SPI simulation 
did not
                double buffer the RX data register.  This problem was solved by
                creating a shift register, and only copying the shift register
                to the SPDR RX register after it is filled with 8 bits.  The bit
                count for receiving the SPI data was also incorrect (7 instead 
of 8).
                Also, the logic for detecting the clock sample point was 
cleaned-up
                and verified.
                  The bug in the Pin class was found when an output glitch was
                noticed while monitoring the state of a pin. The pin was 
configured
                as an input and the associated PORT register was written with a
                HIGH in preparation for changing the port to an open-drain 
output.
                The act of writting the PORT register caused the output to go 
LOW
                since the "analogValue" of the pin was less than INT_MAX/2. By
                simply adding one to the INT_MAX/2 default of the port, this bad
                behavior stopped. 

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/simulavrxx/ChangeLog?cvsroot=simulavr&r1=1.73&r2=1.74
http://cvs.savannah.gnu.org/viewcvs/simulavrxx/src/hwspi.cpp?cvsroot=simulavr&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/simulavrxx/src/hwspi.h?cvsroot=simulavr&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/simulavrxx/src/pin.cpp?cvsroot=simulavr&r1=1.11&r2=1.12




reply via email to

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