Instructions

371 C-Control Pro IDE
© 2013 Conrad Electronic
5.26.1.15
Timer_T0Time
Timer Functions
Syntax
void Timer_T0Time(byte Time, byte PS);
Sub Timer_T0Time(Time As Byte, PS As Byte)
Description
This function initializes Timer_0 with a prescaler and a timer interval value, see table. After the timing inter-
val is expired The Timer_0 Interrupt (INT_TIM0COMP) is triggered. There is an extended prescaler defini-
tion for the Mega128, see table.
Parameter
Time time period after that the interrupt is triggered
PS prescaler
Table prescaler:
Prescaler
Tickduration Mega32
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
Prescaler
Tickduration Mega128
Tickduration Mega128 CAN
PS0_1 (1)
67,8 ns
62,5 ns
PS0_8 (2)
542,5 ns
500 ns
PS0_32 (3)
2,17 µs
2 µs
PS0_64 (4)
4,34 µs
4 µs
PS0_128 (5)
8,68 µs
8 µs
PS0_256 (6)
17,36 µs
16 µs
PS0_1024 (7)
69,44 µs
64 µs
5.26.1.16 Timer_T1CNT
Timer Functions
Syntax
void Timer_T1CNT(void);
Sub Timer_T1CNT()