Subject: Put this in the EFI email folder ..... ARM PWM 2
From: AAA-rotaryeng
Date: 2/3/2013, 3:07 AM
To: AAA-rotaryeng
CC: mikroElektronika Support Center <support@mikroe.com>


High-resolution counters are used to generate a square wave, and the duty cycle of the square wave is modulated to fire
the injectors.

The Stellaris ARM microcontroller contains one PWM module,
with four PWM generator blocks and a control block, for a total of 8 PWM
outputs.

The control block determines the polarity of the PWM signals, and
which signals are passed through to the pins.  Each PWM generator block
produces two PWM signals that share the same timer and frequency and can
be programmed with independent actions.

The output signals, of the PWM generation blocks are managed by the output control block before being passed to the
device pins as PWM0 and PWM1 or PWM2 and PWM3, and so on.

Each PWM generator block has the one 16-bit counter

Fortunately MikroPro has simplified this task for us and written some
BASIC routines that do the hard work.

Here they are. Still a lot of stuff. With this much stuff there are a lot of opportunities for mistakes and bugs. No need to do it in ASM.

In the next installment we will show how a bit of cheap hardware can
greatly simplify the generations of variable pulse widths.

Paul Lamar


The Rotary Engine News Letter. Powered by Linux.
ACRE NL web site. http://www.rotaryeng.net
You Tube http://tinyurl.com/beqqxas
Copyright 1998-2013 All world wide rights reserved.