TCCR0A = 0xB0 | (TCCR0A & 0xF) ;
TCCR1A = 0xB0 | (TCCR1A & 0xF) ;
TCCR2A = 0xB0 | (TCCR2A & 0xF) ;
I use pwm.h libery to make PWM1 and PWM2.This two pwm have the same frequency and duty.How to adjust the code to make PWM1 and PWM2 without overlap area?
Dear siri try to contorl positive and negative voltagesso i need two set fast pwm without overlap areadigitalwrite(pin1,high)delay(width)digitalwrite(pin1,low)digitalwrite(pin2,high) ==>pin1 must be low firstdelay(width)digitalwrite(pin2,low)delay(20-width- width)
With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.
Warning: this topic has not been posted in for at least 120 days.Unless you're sure you want to reply, please consider starting a new topic.