AT89c51RE2 replaced with AT89LP51RD2, ISP programming

atmelispmicroprocessorprogramming

have a question I can't seem to figure out the answer to. We have existing boards running off the AT89c51RE2 processor. Works great because it supports In-System-Programming. This means we can use BatchISP to program them very easily while they're already socketed on the board.

The issue is, we are now trying to switch to the AT89LP51RD2 and it would seem it supports the same ISP programming, but I can't seem to find anything as far as devices to add to Flip or BatchISP in any way. If I try to just change the device parameter it obviously says that it's not a recognized device because it doesn't know what it is. If I just run the existing batch programmer it connects, opens ports, erases, reads buffer, but then when it tries to program the HEX file to the chip it fails.

Any information in this area would be a huge help. I thank you for any advice!

Best Answer

The AT89C series ISP takes place over UART and uses Flip or BatchISP to program. The AT89LP series ISP takes place over SPI. See this app note for programming the AT89LP series.

There is a whole different line of tools for those chips available. Have a look at AT89LP ISP Studio instead. Or possibly AT89LP Developer Studio.

I found the following note on terminology used for this series of chips in the datasheet (page189):

Note: In this document the term Bootloader, or BOOT, is used to when referring to the UART-based ROM bootloader and In-System Programming, or ISP, is used with reference to the SPI-based interface. This is different from AT89C51RD2/ED2/ID2 where ISP also referred to the bootloader (as no SPI programming interface was present). However, it should be noted that both interfaces are perfectly capable of performing in-system programming, i.e programming the device when it is already mounted in the final end-user system.

Flip (and presumably BatchISP) can be used when accessing the Bootloader through the UART. But AT89LP ISP Studio must be used when programming through the SPI.