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