SPI Idle MOSI pin.

Started by wickedmonster2002 in LPC200012 years ago 1 reply
SPI

After SPI initialization, using the LPC2220, the MOSI pin on the CPU goes high instead of remaining low. Is this a configuration issue or is it...

After SPI initialization, using the LPC2220, the MOSI pin on the CPU goes high instead of remaining low. Is this a configuration issue or is it the way the CPU is designed? The SPI works perfectly. But sometimes, I have a problem during reading data. Some chips expect the MOSI pin to remain low while data is being read from them through SPI... Any ideas? M. ------------------------ Yah...


SPI programming for LPC2129

Started by NITISH KUMAR in LPC200011 years ago 1 reply

hi all, i have written program for LPC2129. data is not coming in SPDR register of SPI but status shows that data is transfered. i have...

hi all, i have written program for LPC2129. data is not coming in SPDR register of SPI but status shows that data is transfered. i have checked on keil and lpc board also. still its not working. can anybody help me as soon as??????? provide me some example code for spi... regards Nitish kumar


Problems with using SPI

Started by johnnorgaard2003 in LPC200014 years ago 6 replies

Hi I am using lpc2106 and SPI. I can't get it to work, it should be simple but.. Here is what I do ...

Hi I am using lpc2106 and SPI. I can't get it to work, it should be simple but.. Here is what I do //---------------------------------------------- PINSEL0 |= 0x5500; // enable SPI pins SPCR = 0x20; // set master mode SPCCR = 128; // SCK =pclk/128


SPI using SD/MMC interface in 23xx

Started by rm_lucknow in LPC20007 years ago 3 replies

Hello, Both the SPI interfaces of LPC23xx are used up in my design. Is it possible to use SD/MMC interface to connect simple SPI Flash...

Hello, Both the SPI interfaces of LPC23xx are used up in my design. Is it possible to use SD/MMC interface to connect simple SPI Flash ? Thanks RM ------------------------------------


LPC2294 SPI, number of bits

Started by Boris Kralik in LPC200010 years ago 2 replies

Hi group. We have a discussion about number of bits of SPI, which I want to transfer/receive. My opinion is, that SPI on LPC2294 is only...

Hi group. We have a discussion about number of bits of SPI, which I want to transfer/receive. My opinion is, that SPI on LPC2294 is only 8bits, SPI Data Register is only 7:0 bits. Is possible transfer/receive 16 bit word ? How I do it ? Thank you for answer. ------------------------------------


SPI bug : one channel seems to corrupt the other one

Started by dukearmlover in LPC200013 years ago

Hi all, I'm using an Olimex LPC2129 board and I'm working on a project that uses the two SPI channels. Did anyone manage to make...

Hi all, I'm using an Olimex LPC2129 board and I'm working on a project that uses the two SPI channels. Did anyone manage to make both SPI channels operate simultaneousy (e.g. in master mode), with an interrupt-driven mechanism ? I tried this, but it seems that the first channel that starts a transmission prevents the second one to op


SPI / SD initialization sequence - my way

Started by Peter Jakacki in LPC200013 years ago 3 replies
SPI

I've had a few queries in regards to SD card initialization in SPI mode. For anyone who is interested I have included a dump of the SPI ...

I've had a few queries in regards to SD card initialization in SPI mode. For anyone who is interested I have included a dump of the SPI activity during an init. There are two examples, the first with a SANDISK 512M Ultra, and the second with a generic 128M SD. The SD & FAT code are written in a Forth that I have written for the LPC2000s. Since this is


OT: MMC+ or MMSplus

Started by Gus in LPC200013 years ago 4 replies
SPI

Experts, I have no problem using MMC, SD, miniSD...etc. using SPI but now I=20 am trying 2GB MMC+ and no luck there I noticed thet MMC+ has...

Experts, I have no problem using MMC, SD, miniSD...etc. using SPI but now I=20 am trying 2GB MMC+ and no luck there I noticed thet MMC+ has extra pins that I am assuming for a parallel=20 bus but it should work over SPI because I can send the first 2=20 commands to initialize it in SPI mode but then everything after fails An y ideas or does anyone know where I can get the specs for MMC...


SPI Misbehavior

Started by Richard in LPC200014 years ago 2 replies

I am putting togther simple SPI routines using an interrupt. What I am see is that, if I put a breakpoint in the SPI ISR, I see...

I am putting togther simple SPI routines using an interrupt. What I am see is that, if I put a breakpoint in the SPI ISR, I see the byte get spit out and the program breaks where it ought to. Pressing "go" repeatadly sends out more bytes. If I remove the breakpoi


General SPI Question

Started by jeffbranc01 in LPC200013 years ago 3 replies

Hello, This is more of a general question regarding using the SPI peripherals with the LPC2000 chips. I'm somewhat new to this form of...

Hello, This is more of a general question regarding using the SPI peripherals with the LPC2000 chips. I'm somewhat new to this form of serial communications, so sorry for boring all you pros out there. I'm developing with the LPC2220 chip, and am actually using the SSP peripheral, which, for all intents and purposes works just like an SPI, but with a few extra options. My question is, i


SPI usage

Started by acetoel in LPC200014 years ago 25 replies
SPI

Hello... Is there any sample code that shows how to read and write a byte on the SPI bus? or any SPI sample code? ...

Hello... Is there any sample code that shows how to read and write a byte on the SPI bus? or any SPI sample code? Thanks Ezequiel


SPI interface to Atmel DataFlash

Started by Gopalakrishnan in LPC200013 years ago 2 replies

Hi I am trying to interface the lpc2124 with a SPI atmel DataFlash.I am operating the SPi at 2MHz an dMODE 3 and i am able to get the...

Hi I am trying to interface the lpc2124 with a SPI atmel DataFlash.I am operating the SPi at 2MHz an dMODE 3 and i am able to get the status register.But i am not able to read or write the Data.Have somebody done the interfacing help me with this. Regards Gopalakrishnan.N


SPI interface usage

Started by Umesh V. HUILGOL in LPC200014 years ago 2 replies

Hello , I am new to lpc2000 user group.Was happy to know about such a platform. I had some problem regarding the SPI...

Hello , I am new to lpc2000 user group.Was happy to know about such a platform. I had some problem regarding the SPI interface. While implementing a simple SPI transfer to a memory thro KEIL debugger, I found a problem in the simulation: After I


Re: lpc2106 - SPI - i need help

Started by steve gallagher in LPC200011 years ago 1 reply

Does this also apply to the 2378? I'm having trouble getting SPI to run. I'm using the Olivex 2378 board and the IAR IDE. After the first...

Does this also apply to the 2378? I'm having trouble getting SPI to run. I'm using the Olivex 2378 board and the IAR IDE. After the first transfer, the SPIF flag stays low so I never write any more data. The SPI is configured as the master. I'm not doing anything with SSEL since I don't see anything in the docs that says I should. (I'm driving the slave SSEL from another GPIO pin.) ...


SPI Code hangs

Started by brightside_design in LPC200013 years ago 13 replies

I have a problem with a simple SPI example program. Part: LPC2129 PCK: 14.7 MHz Mode: Master, CPOL=0, CPHA=0, LSIF=0. I initialise the SPI...

I have a problem with a simple SPI example program. Part: LPC2129 PCK: 14.7 MHz Mode: Master, CPOL=0, CPHA=0, LSIF=0. I initialise the SPI like this:- void SPI_Init(void) { S0SPCCR = 0x26; // Divides PCK to give about 400kHz S0SPCR = 0x20; // Select Master mode } And then use the SPI like this:- void SPI_Transfer( char *buf, int count) { int r = 0, i = 0; for( ; i < count; i&


SPI / SSP driving SSEL signal as Master in LPC2148 applications

Started by Owen Edwards in LPC200010 years ago 8 replies

I'm using the SparkFun Logomatic V2 board to read LIS302 accelerometers over SPI (using the SSP port), basing my code on the KinetaMap code (also...

I'm using the SparkFun Logomatic V2 board to read LIS302 accelerometers over SPI (using the SSP port), basing my code on the KinetaMap code (also from SparkFun). Now that I have it working (and have a reasonable understanding of SPI bus operation), I'm curious why in so many LPC214x applications using SPI in Master mode (including the Logomatic's and KinetaMap's access of the SD/MMC card), the SS...


Fast SPI (SSP0) transfer to get ADC data

Started by Henry in LPC20006 years ago 3 replies

Hello to all, I intend to sample 4 analog input signals with an ADS1274.=20 ADS1274 outputs 4*24 bits on a serial pin in SPI format (...

Hello to all, I intend to sample 4 analog input signals with an ADS1274.=20 ADS1274 outputs 4*24 bits on a serial pin in SPI format ( alternatively in = frame sync format) and also outputs /DRDY to indicate that valid data is av= ailable. The idea is to use SPI (SSP0 interface) of a LPC2468 as a master. /DRDY shall start an interrupt service routine that reads the data via the = SPI inter...


Difference between SPI and SSP in LPC23xx

Started by varuzhandanielyan in LPC200012 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


Re: LPC2131 SPI problem

Started by drb5599 in LPC200013 years ago

Charles, If SPI only does 8-bit, why are there option bits in the Control Register (S0SPCR) to send and recieve 8, 9, 10,11,12,13,14,15,16...

Charles, If SPI only does 8-bit, why are there option bits in the Control Register (S0SPCR) to send and recieve 8, 9, 10,11,12,13,14,15,16 bits of data? The user manual pretty clearly indicates that the SPI is capable of this operation. Did I miss something? I don't see any "*" to indicate the option is only available on some parts of the fami


lpc2138 SPI not working

Started by shwouchk in LPC200011 years ago 8 replies

Hi! Ive been working at it for at least a week and I can't find the reason why I can't get SPI to work - I haven't looked with a scope, but...

Hi! Ive been working at it for at least a week and I can't find the reason why I can't get SPI to work - I haven't looked with a scope, but I'm pretty sure that the the device doesn't even send out a clock... otherwise it seems to work fine, which is why I'm stumped.. This is most of the code which runs the SPI - can anyone spot anything obvious? P.S. I'm using a device which uses a mod...