pwm code for 89s52
#1

sir i want to have the code for 89s52 microcontroller to control speed of dc motor with using L293d motor driver i have a code shown below but it is not converting to the hex file in keil detecting error sir please this is humble request to make a favour and make a code speed controlling the speed of small dc motor with 90% 50% and 10% power please sir help me out this my last project in the last year for engineering please help me out the code is shown below..

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
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: tv remote based home aplliances control using 89s52 controller, 89s52 features and advantages, programming ic 89s52 inmicrocontroller used for solar tracking, how to set a 89s52 microcontroller, hrd practices in lic pptsource code using 89s52, what is 89s52, bidirectional visitorcounter using 89s52 slides download directly,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  matlab code for adaptive differential pulse code modulation 1 1,131 04-04-2017, 11:49 AM
Last Post: jaseela123d
  c code for 89s52 gsm interfacing 1 709 15-03-2017, 03:02 PM
Last Post: jaseela123d
  lpc 2138 pwm dc motor 1 756 14-03-2017, 10:57 AM
Last Post: jaseela123d
  speed control of dc motor using microcontroller 89s52 and triac 1 800 13-03-2017, 01:13 PM
Last Post: jaseela123d
Exclamation 89s52 microcontroller function wikipedia 1 622 22-02-2016, 02:42 PM
Last Post: seminar report asees
  iris code matlab code 1 1,229 17-09-2015, 01:55 PM
Last Post: seminar report asees
  optimal location placement power system distributed generation gams code matlab code 1 938 04-09-2015, 02:05 PM
Last Post: seminar report asees
  pwm based on dc motor control using at89s52 microcontroller 1 763 07-08-2015, 11:08 AM
Last Post: seminar report asees
  matlab code for pwm inverter m file 1 817 08-07-2015, 02:07 PM
Last Post: seminar report asees
  matlab code for brain tumor detection using matlab code 1 1,454 27-04-2015, 02:27 PM
Last Post: seminar report asees

Forum Jump: