i try to test my PWM output on CCP1 by sending command via USART. it works perfectly with input from 0 to 128, but when i enter 129 the voltmeter reads 0!!
surprisingly, a 255 return a max voltage of 5V...so, for my case it somehow works from 0 to 128 and 255...weird??
for your info, the detected 8bits input command from USART is directly written to CCPR1L...
surprisingly, a 255 return a max voltage of 5V...so, for my case it somehow works from 0 to 128 and 255...weird??
for your info, the detected 8bits input command from USART is directly written to CCPR1L...