CrazyEngineers
  • preeste

    preeste

    MemberJun 7, 2009

    please help....urgent.....8051

    hey guys....i need some help urgently. I have worked with the PIC16f877 before but have no experience working with the 8051 controller. i have the c8051320 development board made by silicon. I need to write code using c to do the following....i am using the keil environment and must use hyperterminal to create user interface window that looks like follows:

    s-start motor
    p-stop motor
    f-forward
    r-reverse

    on start up the menu should appear on the pc monitor. a simple dc motor is connected via a h-bridge to the microcontroller board. the aim of this code is to control the dc motor

    1. speed of the motor should be varied by means of pwm. this must be implemented using the PCA of the C8051f320.
    2. Variation of the PWM signal is done using the potentiometer found on the board. The pot. must be used to adjust the voltage input to the ADC on the c8051f320 which will in turn vary the duty cycle of the pwm signal.

    This is really really urgent. Can some one help me please!!!!!!😔
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • skipper

    MemberJun 7, 2009

    Which part of the design is the biggest problem? Is it the 8051 instruction set, which you say you have no experience with, or is it the terminal interface you need to write?

    (could you detail what the problem is, your post is quite general).
    Are you sure? This action cannot be undone.
    Cancel
  • preeste

    MemberJun 7, 2009

    Everything is a problem😔 The biggest being on how to use the pca to give a pwm output and the code that will do this
    Are you sure? This action cannot be undone.
    Cancel
  • shalini_goel14

    MemberJun 7, 2009

    * Scratching my head and thinking in which year of engineering and which subject I was taught this electronic stuff *

    [ PS: @CE Team Can call it a part of sarcacism 😉 ]
    Are you sure? This action cannot be undone.
    Cancel
  • Harshad Italiya

    MemberJun 7, 2009

    preeste
    Everything is a problem😔 The biggest being on how to use the pca to give a pwm output and the code that will do this
    Can you please give some more Detail..


    @ Mod
    Please Move this thread to Electrical and Electronics Section please
    Are you sure? This action cannot be undone.
    Cancel
  • preeste

    MemberJun 7, 2009

    hey there...the first post i put up has all the information....what else would you like to know? please help guys.....i need help
    Are you sure? This action cannot be undone.
    Cancel
  • skipper

    MemberJun 8, 2009

    Look at it this way, if I had a boss give me the information you posted and say: "build this", the first response would be "build what, with what, and to do what?"

    Next, after some details emerged, I'd ask where the design spec is, and what specifically the design was NOT meant to do.
    After narrowing this down, I'd spend time working out what I thought the boss wanted (on paper) and take my "solution" and ask if it was what they were asking for. This isn't wasting time, wasting time is what you do when there are no specs, no design and no discussion except "build this for me"

    If that wasn't what they wanted (the design step) I'd start looking for another job, where design and discussion of plans to build stuff is an accepted part of the job.

    Otherwise "go for it mate..."

    I might be able to assist with the instruction set, and the array programming - you get exactly one shot I bet, so it has to be "right first time"? If that is the expectation, explain that you will need more specs and more details, so you can draw up a design first, rather than burn several arrays and have to bin them. It's just my way, really.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register