help for this circuit number C8051F226DK

Discussion in 'Programmer's Corner' started by jason1987, Jun 3, 2009.

  1. jason1987

    Thread Starter New Member

    Jun 3, 2009
    7
    0
    hello everyone can someone help mi, using a variable resister to control the LED dimmer.. using silicon software to write a program using ADC and PWM to control the LED dimmer.. anyone can help?
     
    Last edited by a moderator: Jun 3, 2009
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Please stop doing multiple postings of this question.

    "Silicon software" is essentially meaningless. Google finds references, but none that seem to pertain. Can you explain in some detail what it might be?
     
  3. jason1987

    Thread Starter New Member

    Jun 3, 2009
    7
    0
    the hardware i was given a variable resister and i hv the circuit diagram.. can help mi take a look at it? at i need to write silicon software to write a C languang.
     
  4. Arm_n_Legs

    Active Member

    Mar 7, 2007
    183
    10
    You are using the Silicon Lab C8051F226 microcontroller which is a derivatve of the 8051. You are to write the program in C, not using Silicon Lab sofware, but using Keil C compiler. You need to know how to ask the question properly.
     
  5. jason1987

    Thread Starter New Member

    Jun 3, 2009
    7
    0
    reply mi.. doing ADC n PWM generate a led dimmer
     
  6. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    That is a manual for the prototyping board. Have you been able to design an interface for the LED dimmer? I would not think that the D to A converter was particularly well suited to doing PWM.

    Do you understand the principle of PWM?
     
  7. jason1987

    Thread Starter New Member

    Jun 3, 2009
    7
    0
    wat is the principle of PWM?
     
  8. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    It sounds as if you need to do some research before getting started. Pulse width modulation is a means of controlling averave current through a train of pulses with a variable width - http://en.wikipedia.org/wiki/Pulse-width_modulation

    As you will see, the ADC (understood as Analog to Digital Converter) may not play a part in doing PWM to control a LED.

    However, used with a photosensitive device, the ADC can provide a control input to allow intensity control through a program loop.
     
  9. blueroomelectronics

    AAC Fanatic!

    Jul 22, 2007
    1,758
    98
    Hey Jason1987 good to see you're here too. Guess you're having the same luck here getting someone to do your homework assignments for you.
     
  10. Papabravo

    Expert

    Feb 24, 2006
    10,137
    1,786
    Is it time to consider a switch to Art History?
     
  11. millwood

    Guest

    you can. you can use a trimmer to generate an analog signal, use the adc to convert the analog signal to get a digital reading of the wiper's position, and use that to control how long you want a port to be set, or cleared. viola! you have your own pwm.

    i have a little program that does precisely that.
     
  12. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    To jason1987 - Beside trying to ask the same question again, what progress have you made? Do you understand how a PWM signal is generated yet? How about the hardware between the uC and the motor?
     
  13. jason1987

    Thread Starter New Member

    Jun 3, 2009
    7
    0
    i haven nt do anyting yet cos i am searching.. can guide mi? pwm wrk
     
  14. blueroomelectronics

    AAC Fanatic!

    Jul 22, 2007
    1,758
    98
    Since Art History requires research I don't think it would be an ideal course choice.
    A simple Google search provides buckets of PWM info.
    http://lmgtfy.com/?q=PWM
    [​IMG]
     
Loading...