Menu

#13 Driver not working for LPC23XX

open
nobody
None
5
2008-01-15
2008-01-15
Anonymous
No

Thanks for your work!
The driver start work now good, but I think that found
the error for LPC23xx in ./examples/startup.c(string:150) - before change the code it's not worked ;
Please see below:

==================

#ifdef LPC23xx

SCS |= 1; //High speed GPIO is enabled on ports 0 and 1
PINSEL10 = 0;
FIO2DIR |= 0x00FF; // Enable LED output on the KEIL MCB2300 board
FIO2CLR |= 0xFF; // Turn off all LEDs

// Select the CPU clock divider
CCLKCFG = 0x03;

/* Start main oscillator */
SCS |= (1 << 5);

while(!(SCS & (1<<6)));

CLKSRCSEL = 1;

// Setting Multiplier and Divider values
////////PLLCFG = (0 << 16) | (5 << 0); !!! ERROR WAS FOUND !!!!! Dima
PLLCFG = 0x0B; // it's - OK
#else
// Setting Multiplier and Divider values
PLLCFG = 0x24;
#endif
feed();

// Enabling the PLL */
PLLCON = 0x1;
feed();

==================

Discussion


Log in to post a comment.