HWA
Bare metal programming with style
|
This class is used by:
counter1
(COUNTER,prescaler)
: class _psb prescaler(COUNTER,compare0)
: class _ocb compare unit with waveform generator(COUNTER,compare1)
: class _ocb compare unit with waveform generator(COUNTER,dtg)
: class _dtga dead time generator(COUNTER,irq)
, (COUNTER,irq,overflow)
: triggered when the counter counts from "max" to 0 (after_max
) in up_loop
counting mode, or when it counts from 0 to 1 (after_bottom
) in updown_loop
counting mode.
hwa( configure, ... ): configure the counting unit
hw( read, ... ): get the count
hw( write, ... ), hwa( write, ... ): set the count
Hardware registers:
ccr
: control registercount
: count registerocr0
: output-compare A registerocr1
: output-compare B registerocr2
: compare C registerdtps
: dead-time prescaler registerdta
: dead-time A registerdtb
: dead-time B registerLogical registers:
com0
com1
cs
ctc
dtg0h
dtg0l
dtg1h
dtg1l
dtgs
foc0
foc1
ie
if
ocie0
ocie1
ocif0
ocif1
pwm0
pwm1