1. A system for generating Pulse Width Modulation (PWM) signals comprising a hardware real time event driven module, said hardware real time event driven module comprising a real time module core comprising a state machine for generating signals, said state machine generating different output signals according to the current state of the machine and changing state both as a function of an internal timer and as a function of signals representative of events external to the state machine, wherein the levels of said output signals are configurable, and wherein the transitions between the states of said state machine are programmable transitions.