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?? ...


SPI problem

Started by Messal, Art in LPC200013 years ago 1 reply

Hi All, I'm having a problem with the SPI bus and am wondering if anyone else has encountered similar problems. The...

Hi All, I'm having a problem with the SPI bus and am wondering if anyone else has encountered similar problems. The problems is that the SPI Slave fails to interrupt when a byte is sent from the SPI Master. My configuration: * 2x LPC2210. * SPI


The LPC21xx/LPC22xx's SPI. Am I missing something ?

Started by gregdeuerling in LPC200013 years ago 1 reply

Hello, I have a Maxim thermocouple converter (MAX6675) hooked up to a LPC2294's SPI. The MAX6675 is SPI read only device,...

Hello, I have a Maxim thermocouple converter (MAX6675) hooked up to a LPC2294's SPI. The MAX6675 is SPI read only device, i.e., enable chip select and it starts shifting out bits on each SPI clock. Is there no way to make the LPC's SPI receive a byte with out


Re: SPI for the 1000th time... :-(

Started by rtstofer in LPC200010 years ago 2 replies

--- In l...@yahoogroups.com, "d.holzwarth" wrote: > > hello everyone > > I was reading through most of the SPI related topics but its...

--- In l...@yahoogroups.com, "d.holzwarth" wrote: > > hello everyone > > I was reading through most of the SPI related topics but its still > very confusing to me... :-/ > > I have two LPC2368/78 with one being the SPI master and one being the > SPI slave. > > the SPI slave LPC always gets a "slave abort" AND a "read overrun". I > guess its related to the SSEL di


SPI for the 1000th time... :-(

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

hello everyone I was reading through most of the SPI related topics but its still very confusing to me... :-/ I have two LPC2368/78 with...

hello everyone I was reading through most of the SPI related topics but its still very confusing to me... :-/ I have two LPC2368/78 with one being the SPI master and one being the SPI slave. the SPI slave LPC always gets a "slave abort" AND a "read overrun". I guess its related to the SSEL discussion and I really don't know what to do with that pin... if I select the SSEL funct...


LPC2129 SPI sniffer help please

Started by rf_equip in LPC20008 years ago 2 replies

I am trying to make a SPI sniffer with the two SPI ports on the LPC2129 to capture a SPI bus master and slave transaction. I am not using...

I am trying to make a SPI sniffer with the two SPI ports on the LPC2129 to capture a SPI bus master and slave transaction. I am not using interrupts yet and just polling. Both SPI ports are set as slaves. I have tied both SSEL pins to ground. I am reading data but I am a couple of bits off from what I see on the O'scope. Do you have any ideas. I have read the errata and it does not apply to m...


SPI protocols - LPC2148

Started by Sutton Mehaffey in LPC200010 years ago 6 replies

This is not really a LPC question, but didn't know where to post it. Many here are using SPI and I was wondering if anyone has had any issues...

This is not really a LPC question, but didn't know where to post it. Many here are using SPI and I was wondering if anyone has had any issues with standard protocol with SPI peripherals? In other words, I am using 3 SPI peripherals on my design, and it appears 2 work the same, and the other has a few quirks that require me to have different SPI_Send and SPI_Rcv code. I'm guessing from this...


Reg: SPI timing

Started by sriram karunagaran in LPC200011 years ago 1 reply

Hello All, I'm trying to connect LPC2148 with another chip with SPI interface. I have gone through the data sheet as well as the manual, but...

Hello All, I'm trying to connect LPC2148 with another chip with SPI interface. I have gone through the data sheet as well as the manual, but didn't find any timing related to hold time, setup time and max freq for SPI interface. Also, I would like to know when LPC is master, how the SPI clock is getting generated and how can I control the frequency of the SPI clock. Regards, Sriram.K ----...


Re: LPC2131 SPI problem

Started by charlesgrenz in LPC200012 years ago

Hi, I am not sire about the 2131, but the 2138 has a SPI and SSP. The SPI only does 8 bit and the SSP allows from 4 (?) to 16 which is ...

Hi, I am not sire about the 2131, but the 2138 has a SPI and SSP. The SPI only does 8 bit and the SSP allows from 4 (?) to 16 which is programmable. Charles --- In lpc2000@lpc2..., "drb5599" wrote: > Thanks for the good info guys. I am looking at the assembly code > for changing the SPI registers. It's jus


LPC2468 SPI problem

Started by Tim Mitchell in LPC20009 years ago
SPI

Having a strange problem with SPI on the LPC2468. There are 2 sets of pins which can be used for the SPI, but we can only get one of the sets to...

Having a strange problem with SPI on the LPC2468. There are 2 sets of pins which can be used for the SPI, but we can only get one of the sets to work. If we configure the SPI to use the pins in PORT 0, (PINSEL0=0xC0000000 and PINSEL1=0x0000003C) then it works fine. If we set PINSEL5 to configure SPI in PORT 2, (PINSEL5=0x00F03000) nothing emerges from the pins (although the SPI seems to ...


Re: SPI issues - 3wire vs 4wire

Started by Tom Walsh in LPC200010 years ago
SPI

Sam Lee wrote: > > Hi > > I am using a LPC3180 together with an MAC7111 and i want em to communicate > via SPI. the problem is LPC3180...

Sam Lee wrote: > > 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 h


Problem with SPI irq

Started by cbitsunil in LPC200012 years ago

Hello friends, i am using LPC2214 as Master and LPC 2104 as slave in my project using KEIL UVISION3.The communication between these two ...

Hello friends, i am using LPC2214 as Master and LPC 2104 as slave in my project using KEIL UVISION3.The communication between these two controller through SPI. Iam using ISR s in both controllers. But my master SPI ISR is working fine ,if the slave SPI is in polling mode.If the slave SPI IRQ is enabled im unable to collect the data in slave ISR and


FreeRTOS + SPI bus + SPI slave devices

Started by junointegration in LPC20008 years ago 1 reply
SPI

Has anybody done any framework for FreeRTOS with SPI support before? I'd like to process interrupts from the slave devices as soon as possible....

Has anybody done any framework for FreeRTOS with SPI support before? I'd like to process interrupts from the slave devices as soon as possible. It seems implementing semaphores and an SPI task doing post processing of slave interrupts is the only solution I can foresee. (The ISR will just wake up the SPI task). Any thoughts? Thanks. ------------------------------------


SPI problems

Started by johnnorgaard2003 in LPC200013 years ago

Hi I use SPI interface with lpc2106. I have setup the SPI and load the dataregister. After that I can see SPSR is 0x80 and...

Hi I use SPI interface with lpc2106. I have setup the SPI and load the dataregister. After that I can see SPSR is 0x80 and SPINT is 0x01. It ok. But when the while loop start SPSR get cleared. SPIF is the SPI Transfer complete flag, should only be cleared when reading the stat


SPI on LPC2106 and 9bits transfer

Started by "Ezequiel L. Aceto" in LPC200011 years ago 4 replies

Hello, I'm connection my 2106 with a device that uses a 9bit interface. How can I use the hardware SPI with this device? I can do a...

Hello, I'm connection my 2106 with a device that uses a 9bit interface. How can I use the hardware SPI with this device? I can do a software Master SPI, but will be slow. Also, I thought about turning SPI off, send one bit, the turn on and send the rest, but this is not correct two. How is the maximun speed I can get toogling a Pin at using 10Mhz Crystal, and all the busses clock to 6...


SPI Interface Layer for SDIO Card

Started by maneeshjain1981 in LPC200010 years ago

Hi I am using the LPC2138 as SPI Host controller & CSR Unifi Chip as SDIO card(in SPI Mode). I need to connect the Unifi Chip(SPI Mode) with...

Hi I am using the LPC2138 as SPI Host controller & CSR Unifi Chip as SDIO card(in SPI Mode). I need to connect the Unifi Chip(SPI Mode) with the LPC. I am able to initiliaze the Unifi Chip in SPI Mode using CMD0. The CMD5 & CMD52 is also working fine, I am facing a problem to implement the CMD53. Can you someone please help me out to implement the CMD53 in SPI mode. If somebody...


SPI NOR flash memory

Started by ajellisuk in LPC20009 years ago

Hi I am using IAR PowerPAc filing system to access 2 SPI NOR flash devices. I set up a project using the SPI flash driver supplied....

Hi I am using IAR PowerPAc filing system to access 2 SPI NOR flash devices. I set up a project using the SPI flash driver supplied. However I have a couple of issues: The first issue is during the initialization process. I have observed the following data bytes are written to the SPI bus 0xAB (wake up from deep power down - which is ok), then 0x9F (read device id). The problem is ...


Stumped by SPI problem

Started by nonuckingfumber in LPC200010 years ago 11 replies

I have been going round in circles for a few hours with a problem on the SPI port on an LPC2106. When I do an SPI transfer there is no clock...

I have been going round in circles for a few hours with a problem on the SPI port on an LPC2106. When I do an SPI transfer there is no clock out, but the interupt for end of transmission occurs on time as if the SPI is really clocking the data, I have checked this by varying the SPCCR and I get correct time variations. My pclk is 30MHz and I am using a value of 30 in the SPCCR for a 1MHz c...


Newlib-lpc 5a example for SPI?

Started by lpcarmed in LPC200011 years ago 6 replies

I made a quick test of SPI support of newlib_lpc5b contributed by Robert/Aeolusdevelopment. I could not get example11.c to use the plain SPI...

I made a quick test of SPI support of newlib_lpc5b contributed by Robert/Aeolusdevelopment. I could not get example11.c to use the plain SPI device without the fram subdevice. This line: fputs(helwrld, spif) reported error, but all open/ioctl calls before that line that worked just fine. I could not see any activity on SPI clock, neither on IO pin designated by DEVICE_SELECT. Does anyo...


LPC2132 SPI problem

Started by johnsonnenberg99 in LPC200013 years ago 7 replies

I just can't get the SPI port on the 2132 to work (master mode). Any help would be MUCH appreciated! I've setup the pin...

I just can't get the SPI port on the 2132 to work (master mode). Any help would be MUCH appreciated! I've setup the pin connect block per the manual, enable the SPI port in the PCONP register, programmed the SPI registers, and then try to send a byte. It appears to send in