Can someone please tell me how to produce a period signal that lasts 0.100 ms that is 35% red and 65% green using a bi-colour LED and the timer module?
EDIT:
I guess my question is too broad. I think I may be on the right track if someone answer this other question:
Can someone tell me what this mean instead ?
Its using this: OpenTimer0(TIMER_INT_OFF & T0_SOURCE_INT & T0_16BIT & T0_PS_1_32);while(ReadTimer0() < (unsigned int)165)
So does that mean that the period signal is 165 * 32 * 4/32 = 660 = 66%? I really just need to know how to calculate the period signal to produce 35% red and 65% green... If anyone could please help?