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.

  • The string that you are talking about is assigned to the fields in the Options for Target - Utilities - Use External Tools for Flash Programming dialog.
    BatchISP can also be used for USB. If you want to program the AT89C5131 via USB, you can change the Arguments string to e.g.:
    -device $D -hardware USB -operation MEMORY FLASH LOADBUFFER %H PROGRAM

  • Thanks Matthias Hertel...

    May I ask you one more question? Can I change the "BatchISP" to "FLIP"? I am more confortable with Flip.

    eg:-

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

    to

    FLASH="flip" (-device $D -hardware USB -operation MEMORY FLASH LOADBUFFER %H PROGRAM )

    By the way, hope that someone could answer the other few question that I posted earlier. Really appreciate you guys help by sharing your knowledge to me.

    Thanks.

  • FLIP is an interactive tool that does not operate from the command line. The Flash plug-in requires that the tool can be invoked from command line. That is the reason why Atmel has released the BatchISP tool.

  • If you have configured the BatchISP utility correctly, you just need to press the Load button from the µVision Toolbar to start flash programming.

  • 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.

  • yo necesito la forma de poder programar en este micro via usb... alguien tiene alguna informacion o algun codigo en assenmbler sencillo del mismo q me pueda servir como guia??? alguien me puede ayudar al respecto???

    i need the way that a i could can program in at89c5131 via usb... somebody have information o example code en assembler??? somebody help me please

  • I will not use Atmel due to some experiences, but seem to recall somewhere that the chips are available with differnt suffixes meaning either ISP via USB or ISP via UART. You need the USB version to achieve what you want.

    Erik

    Moderator:
    Please immediately remove posts not in english or the next will be in kroatian, greek or farsi and the whole idea will go bad
    thanks

    Erik

  • Well... at least he did translate his post at the bottom (and did a pretty decent job of condensing it as well). I guess this is principally an english forum though, so I understand the concern.