eMIOS will be configured to have an output PWM at a fixed frequency whose duty cycle can be
easily altered. The channel 23 is configured as a buffered modulus counter, giving a 1kHz roll-
over frequency. And the channel 22 is configured as OPWMB with a 50% duty cycle initially. A
function for setting the duty cycle is implemented.
Main procedure and use of the driver
Global variables: imported UART driver and an Rx 8-bit buffer of UART_MAX_DATA_SIZE frames
(defined by the driver) and a 16-bit ADC conversion storage variable.