[Top][All Lists]

[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 
                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 
                as an input and the associated PORT register was written with a
                HIGH in preparation for changing the port to an open-drain 
                The act of writting the PORT register caused the output to go 
                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. 


reply via email to

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