Patent ID: 7003032
Filing Date: 2006-02-21
Classification: H03K

Abstract:
1. A method for generating multiple high-resolution pulse width modulated (PWM) signals comprising the steps of: receiving data representative of duty cycle values; sorting said duty cycle values in a duty cycle table to generate a PWM generation table; generating an interrupt from a capture and compare interrupt defined by a match between a timer value and a duty cycle register; generating an interrupt from a timer overflow; generating multiple PWM signals as defined by said PWM generation table upon detection of said capture and compare interrupt; and returning to a beginning point in said PWM generation table upon generation of a timer overflow interrupt, wherein said step of sorting said duty cycle values further comprises the steps of: sorting said duty cycle values along with data stored in a port table containing port pin assignments for each duty cycle value; and sorting said duty cycle values along with data stored in a bit-mask table containing bit-mask assignments corresponding to a specific port pin assignment.