i tried implementing the hpwm facility but it didnt seem to work for me very well... i cant remember what the problem was now but there was a reason i didnt use it. my pwm code i know works fine... ive got it working beautifully smooth from another pic... but when i add the code to capture and then output a signal that has nothing to do with the input signal it has random flickerings on the output...duncan303 Have you considered using the HWPM facilty?
Duncan
......
Bookmarks