|
Hi:
I'm using the LPC1768 and Keil uVision 3.70 and I would like to see the internal
clock used by the MCU in the CLKOUT pin.
However, neither of the two pins that could show this output seem to work (P1.25
or P1.27).
The following code is used:
LPC_PINCON->PINSEL3 &= ~0x000C0000; /* P1.25, CLKOUT, function 10 */
LPC_PINCON->PINSEL3 |= 0x00080000;
LPC_SC->CLKOUTCFG |= ((1 << 8) | (1 << 7) | (1 << 6) | (1 << 5) | (1 << 4) | (1
<< 0)) ;
Tested with PLL enabled or disabled, results are the same.
The pin P1.25 seems to change (from low to high one time) when the PINSEL3
register is written, but no clock is seen after that.
Have anybody got the clock output working in this part?
Is there any other setting missing?
Regards,
Alex.
|