Help building a 89s52 programmer and software from scratch.

Status
Not open for further replies.

sskillz

Newbie level 4
Joined
Jun 8, 2007
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,339
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.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…