T89c51ac2 & Fm1

Thread Starter

Lertets

Joined Feb 27, 2005
4
Good Afternoon,

I am using the Atmel T89C51AC2, and I am having a bit of trouble getting it to boot to my custom bootloader (FM1). I am using Atmel's FLIP software V2.4.6 and i have checked BLJB (BLJB = 0).

It is also not booting into FM0 (application) with the BLJB checked.

Any help would be greatly appreciated,
 

Papabravo

Joined Feb 24, 2006
21,225
Are you using PSEN-bar grounded at RESET to get you into the boot loader the first time? If so you need a way to release it after the falling edge of RESET.
 

Thread Starter

Lertets

Joined Feb 27, 2005
4
I did find something interesting:

When i set SBV to 0x00 instead of the default 0xfc i get a program running, but i dont think it is mine. The program i wrote to test this was:

while(1)
{
P0_B0 = 0;
_wait_ms(1);
P0_B0 = 1;
_wait_ms(1);
}

basically a pulse to one of the o/p's. The program it's running is pulsing to almost all of the o/p's but at a very high frequency, not the 2ms i programmed it for.

However when i load this same program into FM0 and run it, it runs at the 2ms freq.

Hope this helps a bit.

Thanks
 
Top