paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] SPI with 16bit on LPC2148(YAPA)


From: Heinrich Warmers
Subject: Re: [Paparazzi-devel] SPI with 16bit on LPC2148(YAPA)
Date: Wed, 20 Feb 2013 18:31:32 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.4) Gecko/20030619 Netscape/7.1 (ax)

Hello yore are right,
we use  16 and 8 bit transferee to read out the 1168 adc,
but i have not the code in paparazzi.
Your have to reconfigure the spi command registers.
Read the NPX documentation of the LPC2148.
I depends also witch spi  hardware your use . The LPC has 2 and there are different.
Heinrich

Mauro Garcia Acero schrieb:

Dear all,

 

The spi.h from mcu_periph is referred to transactions of 8bits words. For example:

extern uint8_t* spi_buffer_input;

 

The same for spi_arch.h from ../lpc21/mcu_periph/, but I have read that the LPC2148 can deal with 8 to 16 bits per transfer.

 

As long as I see in other modules, read registers from SPI devices are made as follows:

 

  spi_buffer_input = (uint8_t*) ....;

  spi_buffer_output = (uint8_t*) ....;

  SpiSetCPHA();

  SpiStart();

 

I don't thing that spliting every command into 2 bytes and sending them independently would work.

 

Any ideas?

 

Best regards,
Mauro.


_______________________________________________ Paparazzi-devel mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/paparazzi-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]