Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Using ADC n PWM to light up the LED dimmer - need help

Status
Not open for further replies.
i am doing ADC

I thought it was due last Monday.

I suggest you stop wasting your time online and start studying C

Which part of the code are you having trouble with?
 

Re: i am doing ADC

cos i quite urgent so i need u to tell mi the code is doing what. den from there i will slowly learn by myself

Added after 5 minutes:

i dunno the code is doing what.. jus tell mi first, can?
 

i am doing ADC

How's the studying going? The code is commented so it's not to tough to figure out.

Hint: The {} indicate a block of code.

PS "me" is not spelled "mi"

Don't they have electronic forums in Japan?
 

Re: i am doing ADC

jus tell mi the code tis code meaning unsigned int index=0, total_period= (unsigned int) 255*256, on_time=0; mean what? i dunno what is the meaning. is urgent
 

i am doing ADC

That line sets up your variable types and initial values
index = 0
total_period = 65280
on_time = 0
 

Re: i am doing ADC

can give more detail? explain more pls.. i really lousy in programming de
 


Re: i am doing ADC

but do u have the link of the website? i dun understand
 

Re: i am doing ADC

Hi,
Please try basic tutorials:

**broken link removed**
**broken link removed**

Please try this ....

Regards,
Anand
 

Re: i am doing ADC

hvane yet.. i only done my ADC
 

Re: i am doing ADC

help help.. i be able to do everyting but i dunno i am corret anot
 

i am doing ADC

here,,,,
**broken link removed**
Dont pay attention to the UNIX.
 

Re: i am doing ADC

now my ADC code can read the value but the PWM i have no idea hw to test n do the coding.. any guide? or help mi
 

i am doing ADC

u can measure the wave duty of the PWM's output pin of the C8051.compare with your setting of PWM register
 

Re: i am doing ADC

the problem is i don't even know how to measure the duty cycle and how to write the code. i need some guide
 

Re: i am doing ADC

use oscillograph to mesuear.you must read datasheet and then write code.

Added after 21 minutes:

here is the application document
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top