Posted on June 15, 2004 at 07:40Hi Woro, Sorry, i forgot to add this line before the if-else statement char PB1 = PBDR & 0x02;My code will be as follow while (1) { char PB1 = PBDR & 0x02; if (PB1 != 0x02) { for (i=0; i {} PB1 = PBDR & 0x02; if (...
Posted on June 14, 2004 at 14:18 Thank you, Woro. Problem on the digital I/O pin Digital input (PORTB,2) = Red colour PWM signal. Digital Output (PORTB,6) = Green colour PWM signal. The figures are in the document file. Please do hav...
Posted on June 10, 2004 at 12:07Hello there, I've got a question on PWM. If i load a value into the PWMxCSR, does it replace the previous value instantly or the next overflow event? Thanks in advance, Regards, Ong [ This message was edited by: tttii...