C Control PRO Unit Mega 128 198219 ユーザーズマニュアル
製品コード
198219
396
Bibliotheken
© 2013 Conrad Electronic
negiert. Zum erstellen des mode Parameter werden die Bitwerte aus der mode Tabelle oderiert (siehe
).
Für detailliertere Informationen über PWMH_x, PWML_x und deadtime, bitte das AT32UC3C
Datenblatt konsultieren.
Parameter
chan
Nummer des PWM Kanals (0 - 3)
PS
Vorteiler
mode
Arbeitsmodus des PWM Kanals
Tabelle PS:
Vorteiler (prescaler)
Tickdauer
PWM_1(0)
15,15 ns
PWM_2(1)
30,30 ns
PWM_4(2)
60,60 ns
PWM_8(3)
121,21 ns
PWM_16(4)
242,42 ns
PWM_32(5)
484,84 ns
PWM_64(6)
969,69 ns
PWM_128(7)
1,939 µs
PWM_256(8)
3,878 µs
PWM_512(9)
7,757 µs
PWM_1024(10)
15,51 µs
Tabelle mode:
mode
Beschreibung
PWM_ENAB_HIGH (1)
Signal auf Pin PWMH_x
PWM_ENAB_LOW (2)
Signal auf Pin PWML_x
PWM_ENAB_DEAD (4)
Aktiviert Deadtime
PWM_CPOL (8)
Negiert Polarität
5.26.2.6
PWM_Update
Timer Funktionen
Syntax
void PWM_Update(byte chan, dword period, dword duty, word dtl, word dth);
Sub PWM_Update(chan As Byte, period As ULong, duty As ULong, dtl As Word,
dth As Word)
Beschreibung