LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

MCB 2300 SPI Communication with Time to Digital Converter (ACAM TDC GP2)

Hello everyone.

 

As part of an undergraduate research project, I've designed a simple board with an ARM7(MCB2300) microcontroller and an SPI device (time to digital converter). Unfortunately, I don't have much experience with SPI (at all, let alone in labview embedded) and have communication problems that I haven't been able to resolve on my own. At this point, I'm fairly certain that I know what I need to do, I've just been unable to make it work.

 

The microcontroller is connected to my SPI device using pins:

90: SSN (P0[16])

87: MISO (P0[17])

86: MOSI (P0[18])

89: SCK (P0[15])

 

I set the chip select to 0, and the device requires the clock phase bit to be set to 1, and the clock polarity bit to be set to 0.

 

When running a VI to test the communication, I have been able to verify that the SPI clock line is working, but the other three pins are completely silent. I ran the same VI on an mcb2300 evaluation board and got the exact same result. I expected to see the SSN remain high, and then brought low during read/write, and some sort of chatter on the MOSI. Naturally, this implies to me that I have a software problem.

 

For convenience, I'll post the datasheets to the microcontroller and SPI. At the moment, I'm less concerned with getting an actual response from the TDC, as I am with finding a verifiable way to prove that the microcontroller is communicating properly, either on my own board or the evaluation board. I can't think of any reason why the SPI clock line would work, while the others do not.

 

http://www.nxp.com/acrobat_download/datasheets/LPC2377_78_4.pdf

 

http://scratch.roma2.infn.it/Dario_M/Gamma_Gamma/Tecnologia/data_sheet/DB_GP2_e.pdf

 

Any assistance would be appreciated.

 

Respectfully,

Jamie

0 Kudos
Message 1 of 3
(8,083 Views)

Jamie,

You should use an O-scope on the MISO and MOSI pins to see if data is actually being transferred.

0 Kudos
Message 2 of 3
(7,446 Views)

23186i9B25C005441E152B23188i07E473433A61A275

23190iC0FF4584408D1426

 

why?  can i wave data via tcp /ip?

 can i use socket in arm lm3s8962 

 

0 Kudos
Message 3 of 3
(7,242 Views)