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.

please help me out urgent.

Status
Not open for further replies.

bharat.yash48

Newbie level 1
Joined
Jan 5, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,289
hey guys can any one help me out to converting the asm file to hex please . its having error to converting in keil microvision it is the code about dc speed control using microcontroller 8051 i am using the 89s52 ic i am newbie please help me out sorry for bad english.:-:)-:)-:)-:)-(

org 0x00
jnb p1.4,main

main:

mov r7,#160
call pwm_init

org 0x0b
jb f0,low_cycle
jnb p1.3,low_cycle1

high_cycle:
setb f0
setb p1.1
mov th0,r7
clr tf0
reti
low_cycle:
clr f0
clr p1.1
mov a, #00H
clr c
subb a, r7
mov TH0, a
clr TF0
reti
low_cycle1:
clr f0
clr p1.1
mov a, #0FFH
clr c
subb a, r7
mov TH0, A
clr TF0
reti
pwm_init:
mov tmod,#00H
inc r7
setb EA
setb ET0
setb TR0
jmp pwm_init

end
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top