LPC2387 ssp module

Started by "sum...@yahoo.com [lpc2000]" in LPC20002 years ago 3 replies

In my project I use SPI to UART converter IC. In lpc2387 I connect SSP! pins to that IC. I check my SSP communication it work properly. But in...

In my project I use SPI to UART converter IC. In lpc2387 I connect SSP! pins to that IC. I check my SSP communication it work properly. But in normal mode I always get 0xFF value from IC. Below is my code PINSEL0 = 0x005A8000; // uart2,ssp chip select worl as GPIO it is always 0 ssp ini PCONP |= (1 < < 10); /* by default, it's enabled already, for safety reason */ SSP1CR0 = 0x0707;


SSP DMA problems

Started by tamirmichael in LPC20007 years ago
SSP

Hello, My SSP controller is configured to use the GPDMA of a LPC2478 to deliver data to external RAM. The SSP's hardware buffer is 8 bytes...

Hello, My SSP controller is configured to use the GPDMA of a LPC2478 to deliver data to external RAM. The SSP's hardware buffer is 8 bytes (fixed), and the DMA's transfer size if 8 frames (8 bit wide), and it is programmed to generate an interrupt once finished. It does and I can see the first 8 bytes of the data that arrived at the SSP in RAM, but not the rest! The SSP receives data in multipl...


SSP MISO Repeating Itself

Started by jeffbranc01 in LPC200012 years ago 1 reply

Hello, Forgive me for being so new to the SPI/SSP peripheral. I'm having a problem with my SSP port (LPC2220 processor, but probably the same...

Hello, Forgive me for being so new to the SPI/SSP peripheral. I'm having a problem with my SSP port (LPC2220 processor, but probably the same for other LPC2000 processors having this feature). My hardware configuration is the following: - LPC2220's SSP configured for slave operation (16 bit data transfers), SCLK and SSEL supplied by external CODEC. - For testing, currently my processor


SPI, SSP Specification Differences

Started by tmasyl in LPC200010 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 ...


SSP interrupts as SPIF behavior

Started by Tom Walsh in LPC200011 years ago 9 replies

Hello, I've some confusion as to how the interrupts on the SSP operate and don't seem to find any documentation regarding this. From the...

Hello, I've some confusion as to how the interrupts on the SSP operate and don't seem to find any documentation regarding this. From the documentation I've found so far, the SSP interrupt system (as documented) appears to be useless in determining when the TX FIFO is empty? I have an interrupt driven SPI state machine which I now need to move over to the SSP circuit. This state mac...


SSP DMA fails to write to memory?

Started by Triffid Hunter in LPC20004 years ago 5 replies
SSP

Hi, I'm attempting to read sectors of an SD card via SSP. All works fine when I manage the SSP fifos myself, however I'd like to do this...

Hi, I'm attempting to read sectors of an SD card via SSP. All works fine when I manage the SSP fifos myself, however I'd like to do this via DMA instead. For DMA, I set one DMA channel to read from memory and write to SSP, while another channel reads from SSP and writes to memory. The trouble is, the read block is mostly unwritten- only every 2nd,3rd or 4th transfer actually writes ...


SSP as SPI Slave (LPC2148) strange behaviour

Started by xyphro4 in LPC200011 years ago 3 replies

Hello! I'm currently trying to use the SSP of an LPC2148 as SPI Slave. I set it up with theese values: [code] PINSEL1 = 0x000002A8; ...

Hello! I'm currently trying to use the SSP of an LPC2148 as SPI Slave. I set it up with theese values: [code] PINSEL1 = 0x000002A8; SSPCR0 = 0x0007; // selects CPHA=0, CPOL=0 and 8 Bit width SSPCR1 = 0x0006; // SSP enabled as Slave [/code] I receive data using polling with this small function: [code] while (1) { if (SSPSR & (1<<2)) // If SSP-RX FIFO is NOT e


Using the second SSP on LPC1313

Started by Martin Cibulski in LPC20005 years ago 1 reply

Hello, please, I need help for using the second SSP controller (SSP1) on the LPC1313 part in master mode. I programmed the initialization...

Hello, please, I need help for using the second SSP controller (SSP1) on the LPC1313 part in master mode. I programmed the initialization like described in the datasheet, try to send test data, but nothing appears on the outputs. I checked with a logic analyser and in software mode everything works fine. But when I use the hardware SSP, nothing happens. Is there anything wrong with ...


SSP/SPI on the LPC2478

Started by ostehaps01 in LPC20008 years ago 2 replies

Hallo I do have a generic question about the SSP/SPI in the LPC2478. The user manual confuses me a bit.!! SSP0/SPI can be used either as SSP...

Hallo I do have a generic question about the SSP/SPI in the LPC2478. The user manual confuses me a bit.!! SSP0/SPI can be used either as SSP and SPI. But the SSP can also run as SPI??? The SPP1 can also run SPI or what?? So why is there a seperate SPI chapter in the manual if the SSP0/1 both ca be used as SPI? Can I assume that I can interface to SPI devices using SPP0 and SSP1?? ...


SSP FIFO

Started by medw...@... in LPC200012 years ago 1 reply

...of course when I say that the manual doesn't mention the size of the SSP FIFo I'm obviously ignoring the very first page describing the...

...of course when I say that the manual doesn't mention the size of the SSP FIFo I'm obviously ignoring the very first page describing the SSP Features where it says there is 8-frame FIFOs for both transmit and receive!!! Doh. Note to self, when searching manuals include FIFOs as well as FIFO in whole word searches.... ;-) Have I made a similar blunder in con


Difference between SPI and SSP in LPC23xx

Started by varuzhandanielyan in LPC200010 years ago 6 replies

What is the difference between SPI and SSP? They share the same pins and seems that SSP can do all the SPI can, while being 4 times faster. Am...

What is the difference between SPI and SSP? They share the same pins and seems that SSP can do all the SPI can, while being 4 times faster. Am I wrong? Varuzhan


SSP (SP1) Slave mode sample code...

Started by Karunanithy in LPC200010 years ago 1 reply

Hai, Is anybody having LPC2148 SSP (SPI1) slave mode example code. I am trying to establish communication between two LPC device. One act...

Hai, Is anybody having LPC2148 SSP (SPI1) slave mode example code. I am trying to establish communication between two LPC device. One act as SSP (SPI1) master and another act as SSP (SPI1) slave device. If anybody having LPC21xx SSP (SPI1) slave mode sample code, please let me know. Thanks & Best Regards, Karun.


spi and ssp

Started by sherifkamelzaki in LPC200011 years ago 1 reply

hi how are u all? i have a simple question i can't exactly understand the differnce between spi and ssp i have both on the lpc2138 and i...

hi how are u all? i have a simple question i can't exactly understand the differnce between spi and ssp i have both on the lpc2138 and i made a driver for the sd card on ssp can i move it to spi or not? i tired but it didn't work thanks ------------------------ Yahoo! Groups Sponsor --------------------~--> Great things are happening at Yahoo! Groups. See the new email design. http


problems with DMA and SSP

Started by Tim Mitchell in LPC20006 years ago 2 replies

Hi folks I am trying to get SSP transmit working with DMA on an LPC1754. I just want to send a block of 512 bytes out of the SSP1. The SSP1...

Hi folks I am trying to get SSP transmit working with DMA on an LPC1754. I just want to send a block of 512 bytes out of the SSP1. The SSP1 works in itself if I write to it manually or using the SSP interrupt, however if I use DMA then nothing comes out of it at all and the DMA interrupt never fires. The source buffer OutputBuf[] is in USB RAM, though I am not sure this is necessary in the LP...


SSP uClinux driver for lpc2478 (lpc22xx)

Started by pall...@yahoo.com in LPC20008 years ago

Hi. I'm looking for a SSP uClinux driver. Can anybody who used/wrote this kind of driver help me with a good link or even with a source code...

Hi. I'm looking for a SSP uClinux driver. Can anybody who used/wrote this kind of driver help me with a good link or even with a source code :) I know that in some starter kits driver directories is already added(included). But unfortunatelly I don't have it. The path for this file should be: drivers/spi/ssp-lpc22xx.c Thanks in advance, answers will be appreciated. --------------------...


lpc2148: wiered SSP behaviour or hardware bug???

Started by diwilru in LPC200012 years ago 1 reply

Hi Fellows, Something strange happens when I try to use SSP in lpc2148. So, I initiate SSP as per spi1_init(2,11) in SPI mode with tx...

Hi Fellows, Something strange happens when I try to use SSP in lpc2148. So, I initiate SSP as per spi1_init(2,11) in SPI mode with tx FIFO half empty interrupts enabled (see the code below). Then I start to transfer bytes over SPI. The first portion of the data until tx FIFO is empty being transfered Ok. Then I expect SPI1 interrupt


enc28j60 driver for lpc2000 with SSP port

Started by Nader in LPC200010 years ago 7 replies

Hello, I try to connect a enc28j60/ss to lpc2148 with SSP as SPI @ 15Mhz, but it fail to read/write with enc28j60. the enc28j60 is a little...

Hello, I try to connect a enc28j60/ss to lpc2148 with SSP as SPI @ 15Mhz, but it fail to read/write with enc28j60. the enc28j60 is a little hot! I search only find code for SPI0 :(. So I'd like to know is anyone here have any experiment to connect enc28j60 to SSP of lpc2000? Thanks. ======================================================================== Groups related to lpc2000 ...


SSP DMA on LPC2387

Started by Johann Zimmermann in LPC20008 years ago 1 reply

Hello all users! Has anyone used the SSP DMA on LPC32XX? I compiled a SSP sample project from IAR Compiler. It sends 256 bytes DMA...

Hello all users! Has anyone used the SSP DMA on LPC32XX? I compiled a SSP sample project from IAR Compiler. It sends 256 bytes DMA channel0. If I change the DMA_SIZE from 256 to 32 - it makes no difference. /* Terminal Count Int enable */ GPDMA_CH0_CTRL = (DMA_SIZE & 0x0FFF) | (0x02 < < 12) | (0x02 < < 15) | (1 < < 26) | 0x80000000; Can please somebody help me! ------------------------


SSP max transfer rate for LPC17xx

Started by Alexan_e in LPC20005 years ago 5 replies

There was a question in Keil forum about the max SPI speed that could be achieved using SSP in LPC1788 and a core clock of 120Mhz and based on...

There was a question in Keil forum about the max SPI speed that could be achieved using SSP in LPC1788 and a core clock of 120Mhz and based on the user manual the max speed for the SSP peripheral is core_clock/2 which gives 60MHz. Assuming that the PCB is designed to work fine with this speed, is this achievable from the MCU side? Is it possible for the output stage of the LPC to switc...


Can SSP run at up to 30 Mbps?

Started by croquettegnu in LPC200011 years ago 1 reply
SSP

Hi all, In theory, max baudrate for the SSC will be CCLK/2/VPBDIV. So it seems possible to clock the SSP @30MHz. Is it the case in real...

Hi all, In theory, max baudrate for the SSC will be CCLK/2/VPBDIV. So it seems possible to clock the SSP @30MHz. Is it the case in real life? Thanks in advance