I am using the LPC900 PWM using CCU example programme, and I have a problem finding the relation between the brightness of the LED and the value of the registers OCRAH:OCRAL. I don't understand why a value of 0x000F in OCRAH:OCRAL gives a brightness of 25% as mentionned in the code. Could someone explain it to me? thanks in advance
using CCU example programme, ... I don't understand neither do I, since i have no idea what the "CCU example programme" is. There is a remote chance that I might help if you gave a link to the code and a line number or such to where " gives a brightness of 25% as mentionned in the code" is. Of course I know it is my duty to, for free, hunt up every obscure reference anyone makes, but today my paying job interfer with that. Erik
here is the link of the program : http://www.keil.com/download/docs/203.asp the line is "initialize Duty-Cycle channel A 0x0100 => 25%" in the CCU_init function. It's almost at the end of the code just before the declaration of the init function. thanks for your help