Instructions

367 C-Control Pro IDE
© 2013 Conrad Electronic
Description
This function disables the specified timer. Timer functions occupy I/O ports. If a timer is not needed and
the corresponding I/O ports are used otherwise, the timer must be disabled.
Parameter
0 = Timer_0
1 = Timer_1
3 = Timer_3 (only Mega128)
5.26.1.8 Timer_T0CNT
Timer Functions
Syntax
void Timer_T0CNT(void);
Sub Timer_T0CNT()
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
Tim er_0
as a counter in the Mega128!
Parameter
None
5.26.1.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 fre-
quency generation is started automatically. There is a extended prescaler definition for the Mega128, see
table.
Parameter