Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 Nov 2017, 11:03
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Programming a DS89C450 flash-based microcontroller
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
Jamesb

Joined: 16 May 2017
Posts: 1

PostPosted: Tue 16 May 2017, 04:26    Post subject:  Programming a DS89C450 flash-based microcontroller  

I have a DS89C450 which I wish to program and so far have had no success.
I have no programmers, so I need to utilise the ISP capabilities. I have the crystal connected (16Mhz) as well as the power. The data sheet of DS89C450 indicates that EA and RST need to be pulled up, and PSEN needs to be pulled down to enter programming mode.

Can these be connected straight to VCC/GND or do they need to be connected through a resistor? If so, what size would suit?

By using USB to Serial, I no longer need a 232 transciever do I? That would only apply to programming through a conventional serial port wouldn't it?

Once hardware issues are solved, I need to be able to program the chip. I have installed Kiel with C51 addon. I believe this is all I need to write the program. Following this, how will I write the software onto the chip? What software will I require to do so?

Whilst there are some tutorials online, they all provide basic information, not enough for a beginner. I'm hoping that any answers will be detailed enough to assist other beginner 8051 people like myself.
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 12699
Location: Arizona USA

PostPosted: Tue 16 May 2017, 10:58    Post subject:  

The Maxim website has a support center. Have you tried that?
Back to top
View user's profile Send private message 
Moose On The Loose


Joined: 24 Feb 2011
Posts: 773

PostPosted: Thu 18 May 2017, 10:08    Post subject: Re: Programming a DS89C450 flash-based microcontroller  

Jamesb wrote:
I have a DS89C450 which I wish to program and so far have had no success.
I have no programmers, so I need to utilise the ISP capabilities. I have the crystal connected (16Mhz) as well as the power. The data sheet of DS89C450 indicates that EA and RST need to be pulled up, and PSEN needs to be pulled down to enter programming mode.

Can these be connected straight to VCC/GND or do they need to be connected through a resistor? If so, what size would suit?

By using USB to Serial, I no longer need a 232 transciever do I? That would only apply to programming through a conventional serial port wouldn't it?

Once hardware issues are solved, I need to be able to program the chip. I have installed Kiel with C51 addon. I believe this is all I need to write the program. Following this, how will I write the software onto the chip? What software will I require to do so?

Whilst there are some tutorials online, they all provide basic information, not enough for a beginner. I'm hoping that any answers will be detailed enough to assist other beginner 8051 people like myself.


In general for parts like these,
1) There is an ASCII method for loading your code via the serial port.
2) These parts usually look for a "U" character to figure out the baud rate.
3) At fast baud rates, you may have to pace characters or set for 2 stop bits.
4) RST needs a capacitor to GND and a resistor to Vcc
5) Most chips like this sample PSEN as RST goes high

Try using picocom to send "UUUUUU" followed by a return and see if it reacts.

Remember RS-232 idles in the TRUE condition. Check your polarity.

TXD and RXD (pins 2,3 on 8 pin D) are almost certainly connected backwards. You will have to swap those connections to get it to work even if you have already swapped them.

On many such chips, the ASCII data looks like Intel hex.
You use C51 to turn a xxx.c into xxx.obj xxx.o
link51 or L51 to combine your code with the startup code
OH51 to make an intel hex file.

In general any chewing on the hex file can be done in bash or something and then the result can be sent line by line to the micro.

What version of puppy are you using?
I ask for a reason I can't discuss without asking another person.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0379s ][ Queries: 14 (0.0063s) ][ GZIP on ]