T89c51ac2 & Fm1

Discussion in 'Embedded Systems and Microcontrollers' started by Lertets, Nov 1, 2006.

  1. Lertets

    Thread Starter New Member

    Feb 27, 2005
    4
    0
    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,
     
  2. Papabravo

    Expert

    Feb 24, 2006
    9,908
    1,723
    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.
     
  3. Lertets

    Thread Starter New Member

    Feb 27, 2005
    4
    0
    Yes i am, it is released after reset

    Thanks
     
  4. Lertets

    Thread Starter New Member

    Feb 27, 2005
    4
    0
    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
     
  5. Lertets

    Thread Starter New Member

    Feb 27, 2005
    4
    0
Loading...