C Control PRO STARTER SET MEGA 128 198484 Benutzerhandbuch

Produktcode
198484
Seite von 200
178
C-Control Pro Mega Series
© 2005 Conrad Electronic
PS_1 (1) 
67,8 ns 
PS_8 (2) 
542,5 ns 
PS_64 (3) 
4,34 µs 
PS_256 (4) 
17,36 µs 
PS_1024 (5) 
69,44 µs 
5.4.18.26 Timer_T1PWMX
Timer Funktionen
Syntax
void Timer_T1PWMX(word period,word PW0,word PW1,byte PS);
Sub Timer_T1PWMX(period As Word,PW0 As Word,PW1 As Word,PS As Byte)
Beschreibung
Diese Funktion initialisiert den Timer1 mit dem angegebenen Vorteiler, Pulsweite für Kanal A und B und
Periodendauer, siehe Tabelle.  
Die Ausgangssignale erscheinen an Mega32: PortD.4 (PIN18) und PortD.5
(PIN19). Mega128: PortB.5 (X1_3) und PortB.6 (X1_2).
Parameter 
period   Periodendauer
PW0   Pulsweite Kanal A
PW1   Pulsweite Kanal B
PS   Vorteiler (Tabelle 
)
5.4.18.27 Timer_T1PWMY
Timer Funktionen
Syntax
void Timer_T1PWMY(word period,word PW0,word PW1,word PW2,byte PS);
Sub Timer_T1PWMY(period As Word,PW0 As Word,PW1 As Word,PW2 As Word,PS
As Byte)
Beschreibung
Diese Funktion initialisiert den Timer1 mit dem angegebenen Vorteiler, Pulsweite für Kanal A ,B und C und
Periodendauer, siehe Tabelle . Die Ausgangssignale erscheinen an PortB.5 (X1_3) , PortB.6  (X1_2)  und
PortB.7  (X1_1).
Parameter 
period   Periodendauer
PW0   Pulsweite Kanal A
PW1   Pulsweite Kanal B
PW2   Pulsweite Kanal C
PS   Vorteiler (Tabelle 
)