SPI, SSP Specification Differences

Started by tmasyl in LPC200011 years ago

Greetings: I find the LPC2138 User Guide rather vague for the SPI, SSP peripherals. I wonder if there is additional support...

Greetings: I find the LPC2138 User Guide rather vague for the SPI, SSP peripherals. I wonder if there is additional support information for these peripherals that I don't have? The following questions come to mind: 1) It appears the SSP offers higher performance than the SPI in that the SSP clock divider can be set at minimum of 2 compared to 8 for the SPI. In the case of a ...


SPI issues - 3wire vs 4wire

Started by Sam Lee in LPC200011 years ago
SPI

Hi I am using a LPC3180 together with an MAC7111 and i want em to communicate via SPI. the problem is LPC3180 has a "3 wire SPI", lacking the...

Hi I am using a LPC3180 together with an MAC7111 and i want em to communicate via SPI. the problem is LPC3180 has a "3 wire SPI", lacking the Chip/Slave select, while the MAC7111 has the full 4 wires of SPI including the chip/slave select. As i want to setup 2 SPI connections with each being the master of one, i run into the trouble of the LPC3180 not having a chip select to link up wit...


SPI questions/observations

Started by Art Sobel in LPC200014 years ago 5 replies

In the process of attaching some SPI peripherals to the chip I ran into some strange behaviour. There are 4 pins to use, SPICLK,...

In the process of attaching some SPI peripherals to the chip I ran into some strange behaviour. There are 4 pins to use, SPICLK, MISO, MOSI and SSCS, First the SSCS pin must be configured as an SPI PIN or the other parts of the SPI don't work at all, Next the SSCS signal is not gener


SPI clock

Started by r_goncalves2000 in LPC200012 years ago 3 replies

Hi, I'm start using the SPI interface and I have a doubt. I'm using a LPC2294 with a 15MHz crystal. PLL factor is set to 4 and VPDIV is set to...

Hi, I'm start using the SPI interface and I have a doubt. I'm using a LPC2294 with a 15MHz crystal. PLL factor is set to 4 and VPDIV is set to 1. So PCLK is 60MHZ. The user manual says that SPCCR =ABindicates the number of pclk cycles that make up an SPI clock=BB. Also says that this register must be an even value greater or equal to 8. With these setings is the maximum SPI clock rate e...


Differece from SPI and SSPI

Started by "franco.dalpero" in LPC200011 years ago 3 replies
SPI

Hi at All What is the difference from SPI and SSPI interface? I can send at receive the data a max speed in SSPI? What is the max speed in SSPI...

Hi at All What is the difference from SPI and SSPI interface? I can send at receive the data a max speed in SSPI? What is the max speed in SSPI interface? In this my application the LPC2364 is the master and driver one slave SPI I can use the libray function (in Keil) for SPI? The Irq for receive and transmit the data are the same in SPI interface? What are the limitation when use the chan...


SPI slave - speed... too fast ?

Started by Anonymous in LPC200015 years ago

Hello, i have a few questions about SPI slave (at the moment only general questions): 1) I have a SPI master which uses a...

Hello, i have a few questions about SPI slave (at the moment only general questions): 1) I have a SPI master which uses a SPI clk of 20 MHz or even 25 MHz. Is there any possibility to use a LPC2106 to receive bytes, because (as i think) speed is limited to 60 MHz


Slow SPI UART Interrupt?

Started by junointegration in LPC20009 years ago 2 replies

I have an MCB2300(LPC2368)eval board and an SPI Dual Uart (SC16IS752) demo board hooked up with the SPI pins from the MCU. The SPI Dual UART...

I have an MCB2300(LPC2368)eval board and an SPI Dual Uart (SC16IS752) demo board hooked up with the SPI pins from the MCU. The SPI Dual UART irq is connected to one of the MCU's GPIO for interrupt. The Dual UART is just in a loopback running in 115200. Xmit is working fine. However, receive interrupts are oddly slow! It takes 400us-600us from the time the byte is sent to SPI bus to t...


Problem with SPI

Started by Aminder Athwal in LPC200014 years ago 7 replies

Hi, I am using the LCP2106 and am having trouble getting the SPI to work, I will be using it to control a nokia 3310 LCD...

Hi, I am using the LCP2106 and am having trouble getting the SPI to work, I will be using it to control a nokia 3310 LCD screen I have got this screen to work with out using the SPI but wanted to use SPI as I have two other components that will also need to use this.  


Constructors

Started by Rodrigo Cesar da Silva Martins in LPC200014 years ago 5 replies

How can I use class constructors with gnu arm? I'm using a LPC2129 and Keil development system. For example: //header file ...

How can I use class constructors with gnu arm? I'm using a LPC2129 and Keil development system. For example: //header file class SPI { public: SPI(char init); . } //source file SPI::SPI(char init) { . } //application


SSP0 v/s SPI

Started by samiehg in LPC200011 years ago 2 replies
SPI

Hi We are using LPC2378 for our design. We need TWO spi modules in our design. The possible options I have are: a. SPI and SSP1 OR b....

Hi We are using LPC2378 for our design. We need TWO spi modules in our design. The possible options I have are: a. SPI and SSP1 OR b. SSP0 and SSP1 In light of above, could anyone please provide their feedback on the following: 1. Which one of the above options is recommended? 2. There will be 5 ADCs connected to each spi module (so in total 10 ADCs). My particular concern is l...


SPI interface problem

Started by gareth james in LPC200011 years ago 5 replies

Having trouble getting SPI interface to work (output only at moment to 12 bit DAC). Used the example provided with the LPC2119 but set it for...

Having trouble getting SPI interface to work (output only at moment to 12 bit DAC). Used the example provided with the LPC2119 but set it for a repeating sending byte on SPI, about 5KHz rate for testing DAC. I've read round and tried for days now and heres what I get, after no DAC output I think the SPI isnt even transmitting. Signal on the CS line (about 5KHz) when SSEL Master select i...


Re: SPI issues - 3wire vs 4wire

Started by Doug Sutherland in LPC200011 years ago

You can use a GPIO as chip select. In fact it's common with SPI to use many GPIOs on the host if you have many SPI slaves. This chip select for...

You can use a GPIO as chip select. In fact it's common with SPI to use many GPIOs on the host if you have many SPI slaves. This chip select for SPI is not the equivalent of chip select on memory controllers that multiplex mulitple devices. It is a much simpler chip select because unlike memory its not handling banks of chips. It is one at a time. Toggle on a slave and communicate. You could ...


SPI Performance

Started by James Dabbs in LPC200014 years ago 8 replies

Do any of the LPC ARM's have faster SPI ports (like maybe with a FIFO), or are they all basically the same as LPC210X? I...

Do any of the LPC ARM's have faster SPI ports (like maybe with a FIFO), or are they all basically the same as LPC210X? I thought I saw mention here that one of them had a slightly faster SPI implementation, but I can't find any such part now.


SPI of LPC2131

Started by tastingfan tastingfan in LPC200013 years ago

Hi, I??m using the SPI of LPC2131 to drive a memory. I decided to take advantage of the SPI interrupts. The code is described as...

Hi, I??m using the SPI of LPC2131 to drive a memory. I decided to take advantage of the SPI interrupts. The code is described as following, but it does not enter the interrupt routine SPI_ISR (), why? Thank you very much. Xia Shang #define FM25L256_CS (1 << 29) //P0.29 is Chip Select port int main (void) { unsigned c


SPI code

Started by rottenralph76kc in LPC200014 years ago 2 replies

Hello all, Is there any sample SPI setup/running code for the 210x available??? First time to use the SPI interface for a ...

Hello all, Is there any sample SPI setup/running code for the 210x available??? First time to use the SPI interface for a graphic LCD and would like to see example of working code..... Thanks Ralph


LPC2478 SPI interface problem

Started by "galvin.shock" in LPC20007 years ago

Hi, I'm currently using EA LPC2478 Developer's kit to do some display on my new LCD screen, hence i need to send out data using the SPI...

Hi, I'm currently using EA LPC2478 Developer's kit to do some display on my new LCD screen, hence i need to send out data using the SPI interface. Probing from the SPI signal, i found that the first data is managed to send out, BUT after that there is no any data transaction. This is how i think: setup for SPI interface is correctly done since the first data is sent out, but maybe some registe...


LPC2124 Slave Mode /SSEL operation

Started by phlpcmicro in LPC200012 years ago

Hi All, Consider a LPC2124 in Slave mode. What is the effect of pulling the /SSEL line high (called DATA ABORT) during an SPI...

Hi All, Consider a LPC2124 in Slave mode. What is the effect of pulling the /SSEL line high (called DATA ABORT) during an SPI transmission. What is the effect on the SPI Tx and Rx registers. If you wanted to re-start SPI transmissions some time after (make /SSEL low and start the SPI transmission). Would you expect the the SPI registers to be unchanged. IE what is the effect on ...


SPI problem

Started by sivan_toledo in LPC200011 years ago 1 reply

Hi, I am trying to use SPI0 on an LPC2119 and I am having problems. I send data to a chip (an SPI FeRAM) and then read data from it, in the...

Hi, I am trying to use SPI0 on an LPC2119 and I am having problems. I send data to a chip (an SPI FeRAM) and then read data from it, in the same transactions. To read, I send a dummy byte to S0SPDR to initiate the full-duplex transfer. But what happens is that I always get back the dummy byte that I put into S0SPDR. Is there a likely cause for this? I configured all 4 SPI pins to SPI ...


Problem: SSP1 ; Slave SPI Mode Operation

Started by Mukadder CEYHAN in LPC20008 years ago 3 replies
SPI

Hi All, Is anybody succeeded in operating SSP1 module as slave spi for LPC2368 controller. I could not find any code sample and have problems...

Hi All, Is anybody succeeded in operating SSP1 module as slave spi for LPC2368 controller. I could not find any code sample and have problems about receving data from spi master device. Thanks in advance..


LPC2138 SPI Master SSEL Problem

Started by Marc Donner in LPC20008 years ago 1 reply

Hi @all, I have setup the SPI in Master Mode but if I try to transmit data the SPI enters slave mode. If I enable the SSEL Pin and tie it to...

Hi @all, I have setup the SPI in Master Mode but if I try to transmit data the SPI enters slave mode. If I enable the SSEL Pin and tie it to VDD all works perfekt. So my question is: is it possible to disable the SSEL funktioniality, so that the Pin can be floating without enabling the SPI Slave mode? Regards, Marc ------------------------------------