Microcontrollers User manual

UM10237_2 © NXP B.V. 2008. All rights reserved.
User manual Rev. 02 — 19 December 2008 684 of 792
NXP Semiconductors
UM10237
Chapter 30: LPC24XX Flash memory programming firmware
9.1 Unlock <Unlock code>
9.2 Set Baud Rate <Baud Rate> <stop bit>
[1] ISP entry after reset uses the on chip IRC and PLL to run the device at CCLK = 14.748 MHz
Read Part ID J Table 30–616
Read Boot code version K Table 30–618
Compare M <address1> <address2> <number of bytes> Table 30–619
Table 604. ISP command summary
ISP Command Usage Described in
Table 605. ISP Unlock command
Command U
Input Unlock code: 23130
10
Return Code CMD_SUCCESS |
INVALID_CODE |
PARAM_ERROR
Description This command is used to unlock Flash Write, Erase, and Go commands.
Example "U 23130<CR><LF>" unlocks the Flash Write/Erase & Go commands.
Table 606. ISP Set Baud Rate command
Command B
Input Baud Rate: 9600 | 19200 | 38400 | 57600 | 115200 | 230400
Stop bit: 1 | 2
Return Code CMD_SUCCESS |
INVALID_BAUD_RATE |
INVALID_STOP_BIT |
PARAM_ERROR
Description This command is used to change the baud rate. The new baud rate is effective
after the command handler sends the CMD_SUCCESS return code.
Example "B 57600 1<CR><LF>" sets the serial port to baud rate 57600 bps and 1 stop bit.
Table 607. Correlation between possible ISP baudrates and CCLK frequency (in MHz)
ISP Baudrate .vs.
CCLK Frequency
9600 19200 38400 57600 115200 230400
10.0000 + + +
11.0592 + + +
12.2880 + + +
14.7456
[1]
++++++
15.3600 +
18.4320 + + +
19.6608 + + +
24.5760 + + +
25.0000 + + +