I use GCC and in lpc2114.h all registers are defined as
#define SPI_SPxx (*(REG32 (0xE0020000)))
so I should change to #define SPI_SPxx (*(REG8 (0xE0020000))) ???
----- Original Message -----
From: valdef78
To: lpc2000@yahoogroups.com
Sent: Wednesday, May 25, 2005 10:19 AM
Subject: [lpc2000] Re: accesing SPI registers
--- In lpc2000@yahoogroups.com, "Jaromir" <jaromir.kajdaniak@z...>
wrote:
> Hello ALL,
>
> I should writing and reading SPI registers as 8-bit or as 32-bit
registers?
> LPC is 32bit, but SPI registers have 8 bit.
> Jaromir
Hello, there's a small example on Philips website.
have a look here :
http://www.semiconductors.philips.com/pip/LPC2132FBD64.html
and look at "AN10369_1: UART/SPI/I²C code examples (date 12-Apr-05)"
------------------------------------------------------------------------------
Yahoo! Groups Links
a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/lpc2000/
b.. To unsubscribe from this group, send an email to:
lpc2000-unsubscribe@yahoogroups.com
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
_________________________________________________________________
List sprawdzony skanerem poczty mks_vir ( http://www.mks.com.pl )
[Non-text portions of this message have been removed]Message
Re: [lpc2000] Re: accesing SPI registers
2005-05-25 by Jaromir
Attachments
- No local attachments were found for this message.