Thread: C8051F930-TB: help needed.

  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    6

    C8051F930-TB: help needed.

    Hi, im new to this forum and im desperate to find solutions for the problem im facing. I've been given a Target Board C8051F930 and programming it with C programing. I've to use P.02 (pushbutton) to turn on LED P1.5 and use P.03 (pushbutton) to dim the light emitting from LED P1.5. I know that i have to use PWM but im not sure how to program it though. I would really appreciate if u guys can help me out with it =D
    thanks in advance.

    if you guys need more info ill gladly give them

  2. #2
    Registered User jephthah's Avatar
    Join Date
    May 2010
    Location
    seattle
    Posts
    49
    let me guess:

    you've made it through your classes so far with the least amount of effort possible, and now you have a real project to do, and you realize have no idea how you got here.

    rather than attempting to do whatever work you can to get started, you instead post a bunch of meaningless references to your particular assignment in the hopes that someone will just do it for you.

    the fact that you think that button P0.2 and led P1.5 has any sort of meaning to anyone outside of your class tells me that you don't have the slightest idea what to do, and any effort to help you will just be wasted as you beg and plead for increasingly more code to be handed to you.

    I think you should rethink your career choice and consider switching majors to some sort of business or psychology degree at this point.

  3. #3
    Registered User
    Join Date
    Jun 2010
    Posts
    6
    actually ive finished my designing course and currently working and i was compelled to take a part time course so i have no choice.

  4. #4
    Registered User
    Join Date
    Jun 2010
    Posts
    45
    harsh, but probably true

    you should look for some sort of board manual that will have this kind of stuff in it.

    the first part sounds pretty easy. you just have to hook up your push button so that whenever its pushed, you output a 1 to led 1.5. sounds like external interrupts might be useful here

    you can use pwd to turn the led on and off very quickly. so if you set the pwm to full, then the led will be on as normal. if you set the pwd to half, the the light will be turned on and off very quickly and it will look half as bright.

    im not too sure how you would do this with leds (when i did it, it was with a motor) but i'd assume its all pretty similar

    go look for some board notes or your lecture notes, it will be in there

  5. #5
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    If you search Silicon Labs web site you will find Tech notes on how to do PWM in C.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help needed about pointer and structure
    By stiltz in forum C Programming
    Replies: 5
    Last Post: 03-15-2010, 02:30 PM
  2. free needed or not?
    By quantt in forum Linux Programming
    Replies: 3
    Last Post: 06-25-2009, 09:32 AM
  3. C Programmers needed for Direct Hire positions
    By canefan in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 09-24-2008, 11:55 AM
  4. C++ help needed
    By Enkindu in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 08-31-2004, 11:24 PM
  5. help needed with array
    By noob2c in forum C Programming
    Replies: 5
    Last Post: 05-24-2003, 09:02 AM