Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
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.

List of 13 messages in thread
TopicAuthorDate
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      

Back to Subject List