This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Facing problem with Atmel At89c5131.

I am using Atmel AT89C5131 64pins. From the Atmel website, I found these programs - Keil uVision and Flip 2.2.4.

I would like to confirm whether it is true that I can use the Keil uVision 2 to generate the HEX file and then use the FLIP 2.2.4 to program the HEX file into the microcontroller or I can use the Keil uVision 2 to program into the microcontroller?

I intend to use USB connection to program into the microcontroller. Is it true that I can program the HEX into the microcontroller directly through USB or I need special programmer?

In the Keil uVision 2 program under AT89C5131 data base, I found this statement:-

FLASH="batchisp" (-device $D -hardware RS232 -port COM1 -baudrate 19200 -operation MEMORY FLASH LOADBUFFER %H PROGRAM)

I don't know what this statement means. Does it mean that I need to use BatchISP to program or I can use FLIP2.2.4. As far as I am concern, BatchISP uses serial com while I intend to use USB connection.

Thank you very much for your response. I know this is a very long question. I appreciate all comments and thank you in advance for your help.

Thanks.

Parents
  • Thank you so much for your reply. Now I have a better understanding about the keil uvision2 software.

    I have written a simple program to try out the at89c5131 microcontroller. But it didnt work well.
    The codes are as below:-

    #include "at89c5131.h"
    #include "ext_5131.h"

    void main (void)
    {
    PLLDIV = 0x30;
    PLLCON = 0x2;
    USBCON = 0x80;
    FCON = 0x50;
    FCON = 0xA0
    P2 = 0XFF;
    FCON = 0x00;
    }

    I wonder if I have set all the pins correctly in order to run In System programming(ISP)?
    Is there any pins that I left out.

    Could I have a sample code for the at89c5131 microcontroller if any? It will help my understanding.

    Thanks for your help and reply. Really appreciate it.

Reply
  • Thank you so much for your reply. Now I have a better understanding about the keil uvision2 software.

    I have written a simple program to try out the at89c5131 microcontroller. But it didnt work well.
    The codes are as below:-

    #include "at89c5131.h"
    #include "ext_5131.h"

    void main (void)
    {
    PLLDIV = 0x30;
    PLLCON = 0x2;
    USBCON = 0x80;
    FCON = 0x50;
    FCON = 0xA0
    P2 = 0XFF;
    FCON = 0x00;
    }

    I wonder if I have set all the pins correctly in order to run In System programming(ISP)?
    Is there any pins that I left out.

    Could I have a sample code for the at89c5131 microcontroller if any? It will help my understanding.

    Thanks for your help and reply. Really appreciate it.

Children