Putting a LPC2103 SSP into Slave mode

Started by charlesgrenz in LPC200010 years ago

HI all. Has anyone gotten an LPC2103 SSP into slave mode? If so where there any problems doing this? I am currently trying to...

HI all. Has anyone gotten an LPC2103 SSP into slave mode? If so where there any problems doing this? I am currently trying to communicate between an LPC2148 (master) and a LPC2103 (slave) with no luck. I have both in SPI mode, 8 data bits, 400KHz clock. As soon as the LPC2103 Slave bit is enabled (before enabling the SSP) the BSY flag gets set immediately. Also the MISO and MOSI of ...


max polled thruput of ssp master rx on 2378

Started by John S in LPC20008 years ago 2 replies

I am having trouble getting maximum amount of data thru SSP by polling with interrupts disabled. pclk, and peripheral clocks 72MHz SSP set to...

I am having trouble getting maximum amount of data thru SSP by polling with interrupts disabled. pclk, and peripheral clocks 72MHz SSP set to 18 Mhz (CPSDVSR=2;SSP0CR0.SCR=2-1) and 8 bits/frame. I cannot get more than average of 1 byte/uS. I expect roughly 2 bytes/uS. for each transfer: 1. write SSP0DR (to xmit) 2. read SSP0SR (for RNE) 3. read SSP0DR (to get data) Altering loop logi...


SSP (SPI mode) Baudrate limitation @ only 10Mbit/s - Bug ??????

Started by croquettegnu in LPC200011 years ago 11 replies

Hi, I can't succeed in using my SSP in SPI mode at speed more than 10MBit/s I use the loopback mode but I assume this is the same in standard...

Hi, I can't succeed in using my SSP in SPI mode at speed more than 10MBit/s I use the loopback mode but I assume this is the same in standard mode... If I program a CPSDVSR value in the SSPCPSR register lower than 8, it does not work and sometimes I observe a reset !!! Does anybody succeed in running the SSP in master mode at speed higher than 10 MBit/s? Thanks a lot


peripheral INT on LPC2148 EN/DIS on the fly

Started by Jan Szymanski in LPC200011 years ago

I use SSP on LPC2148 to drive the audio codec. It works fine with TX FIFO at least half empty interrupt. Means initializes OK and runs well if...

I use SSP on LPC2148 to drive the audio codec. It works fine with TX FIFO at least half empty interrupt. Means initializes OK and runs well if untouched. However, when I tried to disable and later enable that interrupt from the software, I doesn't work reliably. I use VICIntEnable = 0x800; // enable SSP interrupt and VICIntEnClr = 0x800; // disable SSP interrupt I have tried diffe...


Software for SSP (or SPI) dealing with interrupts ?

Started by croquettegnu in LPC200011 years ago 5 replies

Hi all, Thanks for the SSC code example but unfortunately, I have not found any code that implements the SSP with the interrupt. Does...

Hi all, Thanks for the SSC code example but unfortunately, I have not found any code that implements the SSP with the interrupt. Does someone have an available implementation? Thanks a lot! Frederic


SSP on IAR LPC2148 KS

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

I have a IAR LPC2148 board and am having trouble getting any output on the SSP port. I can wiggle the SPI0 port just fine. No dice on the SSP...

I have a IAR LPC2148 board and am having trouble getting any output on the SSP port. I can wiggle the SPI0 port just fine. No dice on the SSP port. Once data is written into the data register SSPSR changes as expected, but nothing transmits. The intent is 8-bit master SPI. Oddly in user manual the CPOL bit for SPI0 and SPI1 means two different things. And I've tr


Problems with SSP

Started by ajellisuk in LPC200010 years ago 6 replies

Hi I'm trying to access an external flash memory chip (A25L16P) using the SSP interface configured as an SPI interface. I have established...

Hi I'm trying to access an external flash memory chip (A25L16P) using the SSP interface configured as an SPI interface. I have established communications with the chip but the SSP interface is not receiving the bytes in the correct order. I have observed the interface with a logic analyser and the bytes are being sent from the FLASH ROM in the correct order. I'm expexting to receive: ...


LPC214X SSP bitrate in slave mode

Started by eryb77 in LPC200012 years ago 1 reply

What maximum bitrate of SSP in SPI slave mode? I can to evaluate this only obliquely on CPSDVSR value. In UM is written "In case of an SSP ...

What maximum bitrate of SSP in SPI slave mode? I can to evaluate this only obliquely on CPSDVSR value. In UM is written "In case of an SSP operating in the master mode, the CPSDVSRmin?=?2, while in case of the slave mode CPSDVSRmin?=?12." This is correctly and not typo? May vice versa? Regards, Eugene


LPC236x SSP via DMA

Started by markcrow in LPC200011 years ago 1 reply
SSP

Has anyone successfully driven SSP on this micro using DMA? I'm working on it and for all my efforts can't stop the DMA from outputting 8...

Has anyone successfully driven SSP on this micro using DMA? I'm working on it and for all my efforts can't stop the DMA from outputting 8 times the number of bytes I've programmed it to transfer.


LPC2103 SSP slave - max clock?

Started by "Andrew Kohlsmith (mailing lists account)" in LPC20007 years ago 2 replies

Good afternoon, everyone, I have an LPC2103 set up to receive data as an SSP slave. I am running at a CCLK/PCLK of 60MHz (16MHz with PLL...

Good afternoon, everyone, I have an LPC2103 set up to receive data as an SSP slave. I am running at a CCLK/PCLK of 60MHz (16MHz with PLL bringing me up to 60MHz). I've verified that the PLL is connected and at the correct settings. I've also verified that PCLK is at 1:1 to CCLK and that the MAM is set up correctly. I am having no trouble with SSP clocks up to about 2MHz, but I'm really...


SSP Driver

Started by ashe...@arrowil.com in LPC200011 years ago 1 reply
SSP

Hello All , I need urgent help so i need the following: A software driver for the SSP {SPI1} channel who use interrupt and can act as...

Hello All , I need urgent help so i need the following: A software driver for the SSP {SPI1} channel who use interrupt and can act as MASTER. A software driver for the SSP {SPI1} channel who use interrupt and can act as SLAVE. The driver cannot use nested interrupt or while loop inside the interrupt service routine {this method will not be approved by the security alarm standar...


SSP -SPI

Started by rosende_alejandro in LPC200010 years ago 1 reply

Hi, I?m alex and I?m trying to use SSP(Like SPI)in LPC2148. I think that I have some troubles with the interrupt (Finish send packets) Do...

Hi, I?m alex and I?m trying to use SSP(Like SPI)in LPC2148. I think that I have some troubles with the interrupt (Finish send packets) Do you have a small example project you could zip up and send me to have a look at? Thanks Alejandro


Help on lpc2368 on MCB2300 for SSP interface

Started by Sam Lee in LPC200011 years ago 1 reply

hi, Does anybody have code that manages to work the SSP interface using the SPI ports? i have been trying to implement them for it to send...

hi, Does anybody have code that manages to work the SSP interface using the SPI ports? i have been trying to implement them for it to send out on one port and receive on the other. i havent been able to get it to work. Has anybody done it before or at least something similar?? Thanks Sam


SSP as SSI slave

Started by lxlxlx_83 in LPC200013 years ago

Hi, I will use the SSP interface of LPC2138 in slave the mode (SSI). I tried many settings, this has only not yet conducted to an...

Hi, I will use the SSP interface of LPC2138 in slave the mode (SSI). I tried many settings, this has only not yet conducted to an workable result. In the user manual I cannot fount much concerning the use in this vogue. There is someone who has experience? If someone example source that would be very fine. Thanks, Lukas


SSP on LPC2368

Started by "d.holzwarth" in LPC200010 years ago 2 replies

hello everyone now that I (hopefully) understand the SPI I need some help with the SSP interface in SPI mode. I have a LPC2368 which is...

hello everyone now that I (hopefully) understand the SPI I need some help with the SSP interface in SPI mode. I have a LPC2368 which is connected to an audio-codec (TI's AIC23) over the SSP interface. I need that interface only to configure the AIC23 (control data, the actual audio data goes over I2S) so all I wanna do is send some frames (16bit frames) to the codec and thats it (d...


Data size select bits reset value in SSP control register

Started by Alexan_e in LPC20006 years ago

Hi I'm trying to add SPI/SSP seetings in ARMwizard and I was going through the user manuals for SSP setting so I noticed that the reset value...

Hi I'm trying to add SPI/SSP seetings in ARMwizard and I was going through the user manuals for SSP setting so I noticed that the reset value for the Data Size Select (DSS) bits in SSPn control register is 0000 but the manual clearly says that "Values 0000-0010 are not supported and should not be used". I have never seen before a register reset to an unsupported value and this is the same in e...


EndLess DMA

Started by almagor100 in LPC20008 years ago
SSP

I'm using LPC2478. I want to use DMA with SSP. I have an external master device that send continusly ssp data. I want to fill up a large memory...

I'm using LPC2478. I want to use DMA with SSP. I have an external master device that send continusly ssp data. I want to fill up a large memory with this ssp data. I want to use the scatter gather (linked list) to fill the ram but I want to make it circular, that the old data is erased by the new data. I can use linked list to fill large amount of data but I want that the last linked list w...


best SSP clock for MMC

Started by Gus in LPC200011 years ago 3 replies

Am I right when I say SSP can be set to divide by 2 or 4 but not 3? I am trying to find the best clock for MMC (20Mhz) but with 60Mhz clock...

Am I right when I say SSP can be set to divide by 2 or 4 but not 3? I am trying to find the best clock for MMC (20Mhz) but with 60Mhz clock you can get 30Mhz or 15Mhz. Am I right? These are the little things where I like PICmicro more than ARM7!!! Gus


Using SSP with 24bit transfers

Started by wittrockjeff in LPC200013 years ago 7 replies

Hello All, I have not used any of the LPCxxx devices before. I am considering using an LPC2138 in an application which must...

Hello All, I have not used any of the LPCxxx devices before. I am considering using an LPC2138 in an application which must read data from an ADS1271 24bit A/D using an SPI interface. In looking at the SSP specification for the LPC2138, it can handle a m


anyone run SSP slave at 30MHz?

Started by paloalgodon in LPC20009 years ago 1 reply

I'm interested in pushing the SPI. Mainly, I'm interested if the max SCLK-PCLK ratio of 2 still applies when the SSP is a slave. Seems you...

I'm interested in pushing the SPI. Mainly, I'm interested if the max SCLK-PCLK ratio of 2 still applies when the SSP is a slave. Seems you usually have to drop the rate way down as a slave, but I can't find it mentioned anywhere in the datasheet or user manual... Best, Steve ------------------------------------