Found another bug. In my circuit I was using P1.4 to drive an LED. DigitalWrite LOW to this pin will turn LED on. Everything is fine. Then I notice that during PWM, writing LOW to this pin will have opposite effect. So now to turn the LED on, I have to write HIGH to P1.4. Only when PWM is being used.. This is getting weirder. Thanks for reading.
↧