211
C-Control Pro Mega Series
PS0_1 (1)
PS0_8 (2)
PS0_32 (3)
PS0_64 (4)
PS0_128 (5)
PS0_256 (6)
PS0_1024 (7)
6.19.26 Timer_T1PWMX
Timer Functions
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)
Description
This function initializes Timer_1 with given period duration, prescaler, pulse width for channel A and B. The
output signal is generated at
Mega32: PortD.4 (PIN18) and PortD.5 (PIN19). Mega128: PortB.5 (X1_3) and PortB.6 (X1_2).
Parameter
period period duration
PW0
pulse width channel A
PW1
pulse width channel B
PS
prescaler (see table prescaler)
6.19.27 Timer_T1PWMY
Timer Functions
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)
Description
This function initializes Timer_1 with given period duration, prescaler, pulse width for channel A, B and C.
The output signal is generated at
PortB.5 (X1_3) , PortB.6 (X1_2) and PortB.7 (X1_1).
Parameter
67,8 ns
542,5 ns
2,17 µs
4,34 µs
8,68 µs
17,36 µs
69,44 µs
© 2008 Conrad Electronic
Need help?
Do you have a question about the C-Control Pro Mega Series and is the answer not in the manual?
Questions and answers