Hi Chris, The only LPC part that does other data sizes other then 8 bits is the LPC2138 which has a SPI and SSP unit that has data sizes from 4 to 16 bits. That was the main reason why I moved over to this part. regards, Charles --- In lpc2000@yahoogroups.com, "sig5534" <sig5534@h...> wrote: > > 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 > pops up based on 8 bit data. What good is any of this SPI register > setup if the word size is not 8 bits? > > Finally I shut the SPI module down and reprog the pins for GPIO. I > wrote my own manual SPI control routines. My ADCs and DACs started > working the first time! Very easy, stupid simple. > > I don't get it. There are all these complex registers and flags > trying to track errors and status in this SPI module, but it only > supports 8 bit data! Geez, they have plenty of extra bits around > where they could have used a few to define a word size. > > I just can't understand what the point is of having a 32bit MCU and > crippling the legs of the SPI module to 8 bits. Why???? > > Maybe I missed something, but I don't see anyway to use this SPI > module unless all your data is 8 bits. But the ADCs and DACs don't > work that way. They want all the bits shifted out contiguous: 16, > 24, 32, whatever. > > Chris.
Message
Re: SPI Perph useless for Word data ????
2005-01-16 by charlesgrenz
Attachments
- No local attachments were found for this message.