
210
Libraries
© 2008 Conrad Electronic
Sub Timer_T1PWB(PW1 As Word)
Description
This function sets a new pulse width (Channel B) for Timer1 without changing the prescaler.
Parameter
PW1 pulse width
6.19.25 Timer_T1PWM
Timer Functions
Syntax
void Timer_T1PWM(word period,word PW0,byte PS);
Sub Timer_T1PWM(period As Word,PW0 As Word,PS As Byte)
Description
This function initializes Timer_1 with given period duration, pulse width and prescaler, see table. The
output signal is generated at Mega32: PortD.5 (PIN19), Mega128: PortB.5 (X1_3). There is an extended
prescaler definition for the Mega128, see table.
Parameter
period period duration
PW0 pulse width
PS
prescaler
Table prescaler:
Mega32
Prescaler
Time Base (duration of a tick)
PS0_1 (1)
67,8 ns
PS0_8 (2)
542,5 ns
PS0_64 (3)
4,34 µs
PS0_256 (4)
17,36 µs
PS0_1024 (5)
69,44 µs
Mega128
Prescaler
Time Base (duration of a tick)
Содержание C-Control Pro Mega Series
Страница 1: ... 2008 Conrad Electronic C Control Pro Mega Series ...
Страница 9: ...VIII Inhalt 2008 Conrad Electronic ...
Страница 10: ...Part 1 ...
Страница 17: ...Part 2 ...
Страница 23: ...Part 3 ...
Страница 41: ...32 Hardware 2008 Conrad Electronic 3 3 5 3 Component Parts Plan ...
Страница 57: ...48 Hardware 2008 Conrad Electronic 3 4 5 3 Component Parts Plan ...
Страница 58: ...Part 4 ...
Страница 91: ...82 IDE 2008 Conrad Electronic ...
Страница 92: ...Part 5 ...
Страница 135: ...126 Compiler 2008 Conrad Electronic 31 1F US 63 3F 95 5F _ 127 7F DEL ...
Страница 136: ...Part 6 ...
Страница 231: ...Part 7 ...
Страница 240: ......