Sign in

username:

password:



Not a member?

Search motoroladsp



Search tips

Subscribe to motoroladsp



motoroladsp by Keywords

56303 | 563xx | 5680 | 56805 | 5680x | 56F80 | 56F800DEMO | 56F805 | 56f807 | 56F830 | ADC | Bootloader | Codec | CodeWarrior | CW5 | CW6 | Debugger | DSP56303 | DSP56303EVM | DSP563xx | DSP5680 | DSP56800 | DSP56807 | DSP56858 | DSP56858EVM | DSP56F803 | DSP56F805 | DSP56F807 | DSP56F80x | DSP56F826 | DSP56F827 | DSP56F8xx | EVM | FFT | Flash_over_jtag | GPIO | Interrupt | Interrupts | JTAG | LCD | Linker | MCF5307 | Metrowerks | Modulus | MSCAN | PCMaster | PWM | Quad | Rif | RTOS | SDK | SPI

Discussion Groups

Discussion Groups | Freescale DSPs | Reading the SPI DataRxReg

Technical discussions about Freescale (Motorola) DSPs (including the DSP56000, DSP56300, DSP56600, 56800 DSPs).

  

Post a new Thread

Reading the SPI DataRxReg - TA1T - Aug 28 13:57:00 2003




I am inputting signals to the SPI module on my evm although I am not
sure if the signals are reaching the data receive register correctly.

My code initialises the SPI etc..

Slave = open(BSP_DEVICE_NAME_SPI_1, 0, &SpiParams);

and then goes into this loop:

for(;;){

ioctl(Led, LED_ON, LED_GREEN);

read(Slave, (UWord16 *)(&Data),sizeofUWord16));

ioctl(Led, LED_OFF, LED_GREEN);
close(Led);

}

Incidentally the green LED lights and doesn't turn off, so i know the
code stays in the read function and should be reading the SPI
register associated with the open SPI device "Slave" into the
buffer "UWord16 Data"

How can i look at "Data" so that i know this register is changing
with the input signal.

Also, have i got my spi signals connected to the correct pins?

I'm using SPI1 on DSP56F827EVM, I have SCLK connected to pin 19, MOSI
connected to pin 23, /SS connected to pin 29. (I do not have MISO
connected)

Thanks

Calum




(You need to be a member of motoroladsp -- send a blank email to motoroladsp-subscribe@yahoogroups.com )