Output - Philips AN10369 Application Note

Uart/spi/i2c code examples
Table of Contents

Advertisement

Philips Semiconductors
/***************
void Initialize()
/* Set to highest speed for SPI at 10 MHz- > 1.25 MHz */
/*********************************************************/

3.3 Output

Waveforms from Oscilloscope are shown in Fig 3.
Application note
{
Initialize();
/* Do forever */
while(1)
{
/* Write data out */
SPDR=DATA;
/* Wait for transfer to be completed */
while(!(SPSR & SPIF)){}
}
}
System Initialization ***************/
{
/* Configure Pin Connect Block */
PINSEL0=0x5500;
/* Set pclk to same as cclk */
VPBDIV=0x1;
SPCCR=0x8;
/* Device selected as master */
SPCR=0x20;
}
Rev. 01 — 06 April 2005
Philips ARM LPC microcontroller family
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
AN10369
7 of 17

Advertisement

Table of Contents
loading

Table of Contents