LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting up SSP interface on LPC23xx using ARM embedded

Hi All,

 

I've been trying of late to set up the SSP1 interface on the LPC23xx ARM micro-controller, to read/control an accelerometer. We are running an external flash chip off the SPI/SSP0 port without any hassles. To do this we are using the ARM Read/Write sub-VI. I am using the same sub-VI to control the SSP1 port but am having no success (SSP1 is set up as a SPI frame format).

 

Before I start posting code can anybody give me a heads up as to whether my approach is even appropriate ?

 

I can change the code in the ARM_SPI.c file without any hassles but I think there are some connection problems wit the xml file such that some of the inputs aren't even being used (such as clock polarity, chip select, etc).

 

This is an uncertain area for me and I fear I am just going around in circles. Any ideas ?

 

David.

 

0 Kudos
Message 1 of 4
(7,380 Views)

I should add that I am setting up all the registers for SSP1 within the ARM_SPI.c file.

 

 

0 Kudos
Message 2 of 4
(7,378 Views)

David,

 

         Unfortunately, LabVIEW for ARM doesn't have direct support for the SSP lines yet. You will have to create the code for utilizing SSP1 Interface in C and either just add it to your project or use the Inline C Node in LabVIEW to bring in that functionality. Sorry I wasn't better able to support on this issue now but R&D is looking into the issue (they just don't have a timeline for support on this yet). Hopefully one of the other posters will be able to help with the C code creation part.

0 Kudos
Message 3 of 4
(7,360 Views)

Thanks Grant. I was hoping that the two could be integrated without too much hassle as they are 'slightly' similar.

 

I am putting it all into an in-line C node and will see how that goes.

0 Kudos
Message 4 of 4
(7,345 Views)