Instructions

380Libraries
© 2013 Conrad Electronic
5.26.1.33
Timer_T3FRQ
Timer Functions
Syntax
void Timer_T3FRQ(word period, byte PS);
Sub Timer_T3FRQ(period As Word, PS As Byte)
Description
This function initializes Timer3 for frequency generation. Parameters are period duration and prescaler,
see table. The output signal is generated at PortE.3 (X1_13). The frequency generation is started automat-
ically..
Parameter
period period duration
PS prescaler
Table prescaler:
Prescaler
Tickduration Mega128
Tickduration Mega128 CAN
PS_1 (1)
135,6 ns
125 ns
PS_8 (2)
1,085 µs
1 µs
PS_64 (3)
8,681 µs
8 µs
PS_256 (4)
34,72 µs
32 µs
PS_1024 (5)
138,9 µs
128 µs
5.26.1.34 Timer_T3FRQX
Timer Functions
Syntax
void Timer_T3FRQX(word period, word skew, byte PS);
Sub Timer_T3FRQX(period As Word, skew As Word, PS As Byte)
Description
This function initializes Timer3 for frequency generation. Parameters are period duration, prescaler and
phase shift,see table. The output signal is generated at PortE.3 (X1_13) und PortE.4 (X1_12). The fre-
quency generation is started automatically. There is an extended prescaler definition for the Mega128, see
table. The phase shift must be smaller than half the period.
Parameter