Posted: Sat Mar 07, 2009 4:10 pm Post subject: SPIOUT problem with SS signal
Hello !
I have found a problem
I use mega32 connect to SPI device and when I tx some data all is ok, but when I send many data toghether the pin 5 (SS) stay low and the programm stop
Thii is SPI configuration:
Config Spi = Hard , Interrupt = Off , Data Order = Msb , Master = Yes , Polarity = Low , Phase = 0 , Clockrate = 16
Spiinit
Enable Spi
This is the Subroutine that I call:
Sub Wspi(byval Aaddr As Byte , Byval Vaalue As Byte)
W(1) = Aaddr
W(2) = Vaalue
W(1) = W(1) Or &B10000000
Spiout W(1) , 2
End Sub
Thank for your answer, I have try to set the SS pin manually when use SPI (Noss=1) but same problem, now I try to upgrade my bascom version to last release.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum