| ??? 01/17/03 17:42 Read: times |
#36651 - RE: T89C51CC01 activate bootloader |
To invoke the bootloader from code, use the following code
void ForceBoot (void) { unsigned char n; api_set_BLJB(); api_wr_BSB(0xFF); n = FCON; FCON = n | 0x50; FCON = n | 0xA0; // perform reset via watchdog while (1) { ; } } the functions api_... are from the Atmel example code downloadable from their website Rob. |
| Topic | Author | Date |
| T89C51CC01 activate bootloader | 01/01/70 00:00 | |
| RE: T89C51CC01 activate bootloader | 01/01/70 00:00 | |
| RE: T89C51CC01 activate bootloader | 01/01/70 00:00 | |
| RE: T89C51CC01 activate bootloader | 01/01/70 00:00 | |
| RE: T89C51CC01 activate bootloader | 01/01/70 00:00 | |
| RE: T89C51CC01 activate bootloader | 01/01/70 00:00 | |
| RE: T89C51CC01 activate bootloader | 01/01/70 00:00 | |
| RE: T89C51CC01 activate bootloader | 01/01/70 00:00 | |
| RE: T89C51CC01 activate bootloader | 01/01/70 00:00 | |
| RE: T89C51CC01 activate bootloader | 01/01/70 00:00 | |
| RE: T89C51CC01 activate bootloader | 01/01/70 00:00 | |
| RE: T89C51CC01 activate bootloader | 01/01/70 00:00 | |
RE: T89C51CC01 activate bootloader | 01/01/70 00:00 |



