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
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