Below is part of my code to try and send data out the SPI port. The correct number of clocks occur but the data line never changes. I have included a scope screen shot and a screen shot of the GPIO control regs and SPI regs at a break point after 400 NOPs to allow the data to clock out.
Anyone have any ideas? I've been beating my head against the wall for a couple of days now and I know this used to work. Also I have tried the same code in two different boards with the same results. So I am pretty sure it is not hardware related.
;--- RESET SPI PORT AND FIFOS
MOVZ DP, #DP_SPI_B ; SET DATA PAGE
AND @SPI_B_CCR, #~SPI_SW_RESET
AND @SPI_B_FFTX, #~(SPIRST + TXFIFO_ACTIVE)
AND @SPI_B_FFRX, #~RXFIFO_ACTIVE
NOP
NOP
NOP
NOP
OR @SPI_B_FFTX, #(SPIRST +
TXFIFO_ACTIVE + TXFFINT_CLR)
OR @SPI_B_FFRX, #(RXFIFO_ACTIVE +
RXFFINT_CLR + RXFFOVF_CLR)
OR @SPI_B_CCR, #SPI_SW_RESET
;--- RELEASE RESET ON LATCHES
MOVZ DP, #DP_GPIO
MOV @GPASETH, #GPIO_27_DC_OUT_RST
;--- QUEUE UP FOUR WORDS (0000h, FFFFh, 0000h, 0000h)
MOVZ DP, #DP_SPI_B
MOV @SPI_B_TXBUF, #0h
NOP
NOP
NOP
NOP
MOV @SPI_B_TXBUF, #0FFFFh
NOP
NOP
NOP
NOP
MOV @SPI_B_TXBUF, #0h
NOP
NOP
NOP
NOP
MOV @SPI_B_TXBUF, #0h

