Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

enquiry on programmer

Status
Not open for further replies.

bramin19

Member level 1
Joined
Jan 18, 2011
Messages
36
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,512
can any one tell me the way to burn at89s52 micro controller with the help of a proload software. the hardware model number of the programmer that i am using is 1001 3456.
 

what have you done till now? what error are you getting???? without any information what help can we do???


I have tried to interface LCD JHD 162A to 89S52. but nothing is being displayed on LCD. only square boxes are being displayed on the 2nd row of LCD. when i checked the programmer, it is showing that 153 bytes are written. actually my hex file is 449 bytes long. so, i thought that there must be something wrong with the programmer.
org 000
mov p1,#00h
mov p2,#00h
mov a,#38h
acall cmdwrite
mov a,#0fh
acall cmdwrite
mov a,#01h
acall cmdwrite
mov a,#06h
acall cmdwrite
mov a,#80h
acall cmdwrite
mov A,#'R'
acall datawrite
mov a,#'a'
acall datawrite
mov a,#'j'
acall datawrite
mov a,'e'
acall datawrite
sjmp last


datawrite: mov p1,a
setb p2.2
clr p2.3
setb p2.1
clr p2.1
acall delay
ret


cmdwrite:mov p1,a
clr p2.2
clr p2.3
setb p2.1
clr p2.1
acall delay
ret

delay: mov r1,#0ffh
mov r2,#0ffh
mov r3,#0ffh
djnz r3,$
djnz r2,$
djnz r1,$
ret

last:mov a,#5


end
 

program compiles without error and gives hex code... i did not check the logic of it...


i have connected the LCD data port to the port 1. en to p2.1,Rs to p2.2,R/W to p2.3. i have connecetd crystal to 18 and 19 pins of 89s52 with capacitors. finally Vcc to 5 volts and Gnd to ground.

Is there any other pins to be cnnected?
 

Do you have pull up resistor f 10K on every port pin....

what is the purpose of sjmp last instruction???????

i recommend you to use sjmp $ instead of sjmp last.

---------- Post added at 11:02 ---------- Previous post was at 11:01 ----------

LCD init sequence has to be 0x30, 38,01,06,0f and 80 which i dont see properly
 

i have connected the LCD data port to the port 1. en to p2.1,Rs to p2.2,R/W to p2.3. i have connecetd crystal to 18 and 19 pins of 89s52 with capacitors. finally Vcc to 5 volts and Gnd to ground. Is there any other pins to be cnnected?

Pin 9 needs to be grounded with 10K resistor and 10Mfd to Vcc which forms the reset circuit. Mention which crystal is used at pin 18 and 19? Usually 12 Mhz will work ok for most of the programs. The pin 40 and 31 need connected to Vcc 5V+ and 20 pin to Gnd.

As your chip is 89S52, the **broken link removed** which is a USB programmer, may be used to program the hex file.
Cheers
 

Pin 9 needs to be grounded with 10K resistor and 10Mfd to Vcc which forms the reset circuit. Mention which crystal is used at pin 18 and 19? Usually 12 Mhz will work ok for most of the programs. The pin 40 and 31 need connected to Vcc 5V+ and 20 pin to Gnd.

As your chip is 89S52, the **broken link removed** which is a USB programmer, may be used to program the hex file.
Cheers


ok i am using 11.0592 Mhz crystal. is it compulsory that a 10k res and 10micro farad cap be connected to 9th pin of 89S52 through Vcc?


Is it necessary to connect 31 st pin to Vcc?
 

Yes..the reset circuit is mandatory to reset the microcontroller at every powerup. May work without the 31 pin connected. But it is required as per the datasheet.
Cheers
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top