sskillz
Newbie level 4
Hello,
I'm making my own ISP programmer software, for practice, and for lack of better one. For now I'm using the parallel port on knoppix OS.
The problem I'm facing is that the chip (89s52) doesn't respond as it supposed to.
The problem is exactly as the one this guy had:
Program enable command seem to work (0xAC, 0x53, 0x00, 0x00), the chip returns 0xff 0xff 0xff 0x69 to the first 4 bytes. but every other byte I send (even the same enable command again) after the programming enable is echoed back.
If I enable programming by sending 0xAC, 0x52, 0x00, 0x00
then send "read unlock bits" command: 0x24, 0x54, 0x53, 0x52
I get back : 0x00, 0x24, 0x54, 0x53
instead of the forth containing the lock bits as specified in the data sheet.
EA is tied to VCC and the SCK speed is realy slow, so I did everything mentioned in the other thread.
Any suggestions? Any C source code may help.
Thanks ahead.
I'm making my own ISP programmer software, for practice, and for lack of better one. For now I'm using the parallel port on knoppix OS.
The problem I'm facing is that the chip (89s52) doesn't respond as it supposed to.
The problem is exactly as the one this guy had:
Program enable command seem to work (0xAC, 0x53, 0x00, 0x00), the chip returns 0xff 0xff 0xff 0x69 to the first 4 bytes. but every other byte I send (even the same enable command again) after the programming enable is echoed back.
If I enable programming by sending 0xAC, 0x52, 0x00, 0x00
then send "read unlock bits" command: 0x24, 0x54, 0x53, 0x52
I get back : 0x00, 0x24, 0x54, 0x53
instead of the forth containing the lock bits as specified in the data sheet.
EA is tied to VCC and the SCK speed is realy slow, so I did everything mentioned in the other thread.
Any suggestions? Any C source code may help.
Thanks ahead.