203
C-Control Pro Mega Series
© 2008 Conrad Electronic
6.19.12 Timer_T0PWM
Timer Functions
Syntax
void Timer_T0PWM(byte PW,byte PS);
Sub Timer_T0PWM(PW As Byte,PS As Byte)
Description
This function initializes Timer0 with given prescaler and pulse width, see table. The output signal is
generated at Mega32: PortB.3 (PIN4), Mega128: PortB.4 (X1_4). There is an extended prescaler definition
for the Mega128, see table.
Parameter
PW
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)
PS0_1 (1)
67,8 ns
PS0_8 (2)
542,5 ns
PS0_32 (3)
2,17 µs
PS0_64 (4)
4,34 µs
PS0_128 (5)
8,68 µs
PS0_256 (6)
17,36 µs
PS0_1024 (7)
69,44 µs
6.19.13 Timer_T0Start
Timer Functions
Syntax
Summary of Contents for C-Control Pro Mega Series
Page 1: ... 2008 Conrad Electronic C Control Pro Mega Series ...
Page 9: ...VIII Inhalt 2008 Conrad Electronic ...
Page 10: ...Part 1 ...
Page 17: ...Part 2 ...
Page 23: ...Part 3 ...
Page 41: ...32 Hardware 2008 Conrad Electronic 3 3 5 3 Component Parts Plan ...
Page 57: ...48 Hardware 2008 Conrad Electronic 3 4 5 3 Component Parts Plan ...
Page 58: ...Part 4 ...
Page 91: ...82 IDE 2008 Conrad Electronic ...
Page 92: ...Part 5 ...
Page 135: ...126 Compiler 2008 Conrad Electronic 31 1F US 63 3F 95 5F _ 127 7F DEL ...
Page 136: ...Part 6 ...
Page 231: ...Part 7 ...
Page 240: ......