Hi Shed, 

I am currently doing register programming on the eagle bone blcak. I want 
to run my BBB as master mode and SINGLE CHANNEL. I have loop backed the 
pins 18 and 21. 
I am sending non-zero data TX0 register and always receiving 00000 on the 
RX0 register.

Steps that I am following are as follows:

1) Enabling CM_PER_SPI0 clock
2) Resetting the SPI module from the SYSCONFIG register
3) Checking if reset done from the SYSSTATUS register 
4) Writing to SYSCONFIG Register
5) Write to MODULCTRL register
6) Write to SYST[SSB] // to set the bits the IRQSTATUS 
7) Enabling the RX0 FULL and TX0_EMPTY from the IRQENABL register

8) Write to CH(0)_CONF register
9) Enabling the channel 0 by CH(0)_CTRL register
10) Now for read/write of 8 bit word 

LOOP:(till all the words are transferred)
        a) wait till TX0_Empty event occurs
        b) put data in the TX0 register
        c) wait for the RX_FULL event to occur 
        d) Read from the RX0 register
        e) Reset the status bit of the IRQSTATUS for RX_FULL and TX_EMPTY 
from the SYST[SSB] = 1


Any help would be great !!!





On Sunday, 25 August 2013 23:09:32 UTC+2, shedmeister wrote:
>
> I'm having an intermittent problem running the BBB's SPI1 in slave mode. 
>  I have designed all my TX messages to end in 0, and have verified every 
> way I know how that the last byte written to MCSPI_TX0 is 0.  But after a 
> few minutes of running, there is a non-zero value stuck on the output.  It 
> is usually 0x80, (I am in 8-bit mode), and I can clearly see the 0x80 
> coming out of the D1 line on a scope.  The communication is very reliable 
> initially, several messages get through OK before the error.  I have to 
> soft reset the BBB'S SPI to clear the error condition.
>
> Any ideas?
>  Thanks,
>   Jim
>
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to