SPI problem on LPC2103

Started by Tom in LPC200011 years ago

I'm using SPI to send 10 bits of data to a digital potentiometer. The SPI is set up as the master. I'm pretty sure everything is set up...

I'm using SPI to send 10 bits of data to a digital potentiometer. The SPI is set up as the master. I'm pretty sure everything is set up properly. I've checked the clock output with an oscilloscope and noticed that I get the proper number of pulses. When I check the MOSI pin, there are pulses there but its not the data I'm applying to the SPDR. It's always high pulses. Another strange t...


Ethernet controller for LPC2106

Started by Mark Butcher in LPC200014 years ago 17 replies

Hi All I would like to make a LAN connection to an LPC2106 design. It seems best to use the SPI interface but I don't know...

Hi All I would like to make a LAN connection to an LPC2106 design. It seems best to use the SPI interface but I don't know much about SPI Ethernet controller support. After checking around I found the Microchip MCP22S80, a 10M device with SPI connection.


Problem with SPI on LPC2103

Started by TomW...@Freightliner.com in LPC200011 years ago

I'm using SPI to send 10 bits of data to a digital potentiometer. THe SPI is set up as the master. I'm pretty sure everything is set up properly....

I'm using SPI to send 10 bits of data to a digital potentiometer. THe SPI is set up as the master. I'm pretty sure everything is set up properly. I've checked the clock output with an oscilloscope and noticed that I get the proper number of pulses. When I check the MOSI pin, there are pulses there but its not the data I'm applying to the SPDR. It's always high pulses. Another strange thing is ...


LPC1769 - SPI - DMA

Started by leog...@hotmail.com in LPC20004 years ago
SPI

Hi, I'm Leonardo, from Argentina. I'm developing an OSD (on screen display) usin LM1881 for video sync and LPC1769 and SPP as SPI for data...

Hi, I'm Leonardo, from Argentina. I'm developing an OSD (on screen display) usin LM1881 for video sync and LPC1769 and SPP as SPI for data impose. I want to add DMA capabilities, but I can't make it work. Can you explain me how DMAREQSEL and "destination request peripheral" related each one from another? I need to use SPI with DMA and timer1. I want to send 256bytes, 10useg after Match Regi...


SPI time

Started by leomecma in LPC200011 years ago
SPI

When I use the SPI in LPC2378, for example at 18MHz, I always get a time around 1.7us between each eight consecutive (bit) clocks. I send it...

When I use the SPI in LPC2378, for example at 18MHz, I always get a time around 1.7us between each eight consecutive (bit) clocks. I send it in sequence, without put nothing between two consecutive SPI writes. Is correct this time??? Are there some manner to reduce it? For any reason it is the time to hardware flags go to finish state, but the time is too long for long read and write seq...


spi in lpc2106

Started by Jeetendra Singh in LPC200013 years ago 5 replies

Hi friends i am working in Lpc2106 and facing problem in spi mdule. Actualy i am using spi module in master mode. i checked my code...

Hi friends i am working in Lpc2106 and facing problem in spi mdule. Actualy i am using spi module in master mode. i checked my code in jtag debugger(wiggler in CrossStudio)and found that when writing data to the SPDR register then SPif bit in SPSR also sets showing that data is transmitted. But the problem is that nither data nor cl


SSEL use on SPI0 & SPI1 (lpc2114/24 & lpc2119/29 series chips)

Started by Leighton Rowe in LPC200012 years ago 2 replies

I have been working with mcb2100 eval boards (one is a 2124; the other is a 2129) for quite some time, but I just started evaluating the SPI...

I have been working with mcb2100 eval boards (one is a 2124; the other is a 2129) for quite some time, but I just started evaluating the SPI interface. Apparently, my SPI master test code didn't seem to work on both ports, as virtually no clock signals were coming out of either SCK or MOSI pins. Luckily my luck changed today, after noticing the below clause in the SPI Pin Description...


Emulating SPI interface on GPIO

Started by majess in LPC200012 years ago 1 reply

Hello all, I've got an odd and unusual problem. Unfortunately I'm not able to use SPI0 and SSP serial SPI interfaces on my LPC2131's...

Hello all, I've got an odd and unusual problem. Unfortunately I'm not able to use SPI0 and SSP serial SPI interfaces on my LPC2131's evaluation board. Instead of this I've got some unused GPIO pins. I'm curious if I can use that free GPIO pins to emulate software SPI interface, like it is possible with I2C?? Also I'd like to ask group members if any of them had a similar problem a...


SPI Perph useless for Word data ????

Started by sig5534 in LPC200013 years ago 12 replies

I've been fighting trying to get this damn SPI module to work with some ADC's and DAC's. These use 16, 24, and 32 bit word...

I've been fighting trying to get this damn SPI module to work with some ADC's and DAC's. These use 16, 24, and 32 bit word sizes. As far as I can tell the SPI module only works with Byte data! I was not able to make it work at all with these ADCs/DACs. The SPIF flag


SPI NOT RESPONDING

Started by rockraj_2003 in LPC200013 years ago 5 replies

HELLO FRIENDS, No body giving me suggestion on how to program SPI. My real task is to configure "DP1203" by using LPC2104. ...

HELLO FRIENDS, No body giving me suggestion on how to program SPI. My real task is to configure "DP1203" by using LPC2104. The only way to configure DP1203 is throu "SPI". I got an example file from Keil. Its working and producing SCK(Serial C


LPC2131 SPI output drive and ULINK JTAG issues

Started by drb5599 in LPC200013 years ago 2 replies

Hello All, After several months of developing with the MCB2130 eval board I finally got my first prototype hardware. I am pretty excited,...

Hello All, After several months of developing with the MCB2130 eval board I finally got my first prototype hardware. I am pretty excited, but I have a couple issues. My first big issue is the SPI output signals. I am communicating with two other devices over an SPI bus where the LPC is the master. The signals coming out of the LPC are correct, e


SPI comms to UC1601s

Started by ajellisuk in LPC200010 years ago 2 replies

Hi, I have a project where I'm interfacing an LPC2148 to a UC1601s LCD controller. I have set up the SPI interface to operate in 9 bit...

Hi, I have a project where I'm interfacing an LPC2148 to a UC1601s LCD controller. I have set up the SPI interface to operate in 9 bit mode. When I issue a "clearLCD" command ie I write 0 to all the display memory locations I get randome pixels activated across the display. I have obsereved the SPI interface with a logic analyser and I have seen that random 1s appear in the bit strea...


Re: LPC2106 SPI Master Receive 16-bits of data From Slave

Started by Alexan_e in LPC20007 years ago 5 replies

The 16bit spi is only possible with LPC2106/01, If you set SPCR for 16 bit spi by setting bit2=1 and bits11:8=0000 then you will get a 16...

The 16bit spi is only possible with LPC2106/01, If you set SPCR for 16 bit spi by setting bit2=1 and bits11:8=0000 then you will get a 16 bit result in the SPDR register. If you have LPC2106 then the transfer width is fixed to 8bit. Alex ----- Original Message ----- From: Ananda Regmi To: l...@yahoogroups.com Sent: Wednesday, June 15, 2011 1:14 AM Subject: [lpc2000] LPC...


Problems with SPIO(LPC2148)!!!

Started by venkat_oct10 in LPC200010 years ago

Hello, In my code i have interfaced atmel serial data flash, i have given my spi code here and the operation i have done is that, i am...

Hello, In my code i have interfaced atmel serial data flash, i have given my spi code here and the operation i have done is that, i am reading the SPI data register. Note here i am not communicating with my slave. I came to know that my SPI write has some problems hence i am not communicating with my device.Even if i communicate i am getting the write and read values as 00 and sometimes...


SPI Audio DSP-Am I on a DEAD END?

Started by gareth james in LPC200010 years ago 3 replies

Hi I've got an LPC2119 to work with 12bit DAC interfaced to SPI etc.My computational needs in DSP look to be fairly basic ( I do mean basic!),...

Hi I've got an LPC2119 to work with 12bit DAC interfaced to SPI etc.My computational needs in DSP look to be fairly basic ( I do mean basic!), but needs to be audio quality (24bit), I think I can do what I want in simple integer maths no problem, ......but I'm noticing a distinct lack of SPI ADC/DAC chips for audio use! Any opinions on what I should do next? ---1) Persist and try to m...


SPI Problem,

Started by yodathgreat in LPC200013 years ago 1 reply

Hi All, Who can send me some exemples for make the Init on SPI of the LPC2214. SPI Master Mode.. (for SD Card). Best regards ...

Hi All, Who can send me some exemples for make the Init on SPI of the LPC2214. SPI Master Mode.. (for SD Card). Best regards Yodathegreat I use a example of http://www.ulrichradig.de/index.html And I don't have Clock or Data on MOSI... IO0DIR &=~(1&


Sending more than 8bits using SPI of 2138

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

Hello, I'm migrating an app from 2106 to 2138. This app sends 9 bit using software SPI, and now I'd like to do it in hardware. I have...

Hello, I'm migrating an app from 2106 to 2138. This app sends 9 bit using software SPI, and now I'd like to do it in hardware. I have setted my SPI interface this way: PINSEL0 |= 0x00001500; // SCK0 MISO0 and MOSI0 enabled, SSEL0 ad GPIO S0SPCR =0x0924; // Master - 9bits - Mode 0 - S0SPCCR =60; //Speed But in my header file the SPI0 interface is defined as follows #define S0SP...


SSP_SPI1 Read

Started by sudip nag in LPC200013 years ago 2 replies

Hi Everyone, I am using LPC2138's SSP Controller (SPI1) in SPI mode. I am successful in sending data to SPI slave device. But...

Hi Everyone, I am using LPC2138's SSP Controller (SPI1) in SPI mode. I am successful in sending data to SPI slave device. But confused how to read data from slave. If not mistaken, during read operation SPI master will provide the SCK signal to the slave. How to do this task with SSP. Thanks. Sudip Nag -----------


LPC2148 interfacing with SD Flash / SPI

Started by Sutton Mehaffey in LPC200012 years ago 2 replies

Anyone know where I can get the 'non-simplified' version of the SD Card Specification? Apparently, the SPI mode and commands are omitted from...

Anyone know where I can get the 'non-simplified' version of the SD Card Specification? Apparently, the SPI mode and commands are omitted from the 'simplified' version for some reason. And, all I can find is the 'simplified' version. Is the SPI command set for SD cards proprietary? Sutton ------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Groups gets a mak


SPI, SSP on LPC2148 MCB2140 Keil Bug?

Started by highgatematem28 in LPC200013 years ago 1 reply

Hi All, Has anyone set up the SPI or SSP on the LPC2148? I cant get SPI0 to work at all, i.e. no SCK when I scope the dev board (I...

Hi All, Has anyone set up the SPI or SSP on the LPC2148? I cant get SPI0 to work at all, i.e. no SCK when I scope the dev board (I have pull ups on SCK, MOSI0, MOI0 & SSEL0) and it is turned on in the power reg. void SPI_Init (void) { PINSEL0 = 0x00005500; // SPI Pins IODIR0 = 0x00000400; // Chipselect S0SPCCR =