31
NXPTM LPC2XXX and LPC17XX / Re: AIS226DS / MOD-SMB380 I2C evaluation on LPC2378-STK
« on: August 29, 2010, 04:34:50 AM »
The datasheet wants me to look at S0SPCCR for the SPI clock settings. The example code I'm looking at uses SSPCPSR_X to set the clock, but appears to be using SSP not SPI registers. It appears that SSP can be used for SPI and I'm not sure if this type of SSP/SPI can be used with my device or not. Is there a way to get the simulator and device to work with the dedicated SPI hardware?
Under LPC23XX.h I see this.
#define RTC_BLOCK 0xe0024000
#define LEGACY_GPIO_BLOCK 0xe0028000
#define PIN_CONNECT_BLOCK 0xe002c000
I would guess I can add #define S0SPCCR 0xE002000C, but I don't think I'd get it in the simulator. Can I add this to the simulator?
Or even better what about adding 0xE002 0000, then the +000C thing more like the normal practice in other parts of this code.
Under LPC23XX.h I see this.
#define RTC_BLOCK 0xe0024000
#define LEGACY_GPIO_BLOCK 0xe0028000
#define PIN_CONNECT_BLOCK 0xe002c000
I would guess I can add #define S0SPCCR 0xE002000C, but I don't think I'd get it in the simulator. Can I add this to the simulator?
Or even better what about adding 0xE002 0000, then the +000C thing more like the normal practice in other parts of this code.