201
C-Control Pro Mega Series
© 2008 Conrad Electronic
Description
These function initializes Counter0. Counter0 gets incremented at every positive signal edge at Input
Mega32:T0 (PIN1).
Due to hardware reasons it is not possible to use Timer_0 as a counter in the Mega128!
Parameter
None
6.19.9 Timer_T0FRQ
Timer Functions
Syntax
void Timer_T0FRQ(byte period,byte PS);
Sub Timer_T0FRQ(period As Byte,PS As Byte)
Description
This function initializes Timer0 for frequency generation. Parameters are period duration and prescaler,
see table. The output signal is generated at Mega32: PortB.3 (PIN4), Mega128: PortB.4 (X1_4). The
frequency generation is started automatically. There is a extended prescaler definition for the Mega128,
see table.
Parameter
period period duration
PS prescaler
Table prescaler:
Mega32
Prescaler
Time Base (duration of a tick)
PS0_1 (1)
135,6 ns
PS0_8 (2)
1,085 µs
PS0_64 (3)
8,681 µs
PS0_256 (4)
34,72 µs
PS0_1024 (5)
138,9 µs
Mega128
Prescaler
Time Base (duration of a tick)
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: ......