Instructions

368Libraries
© 2013 Conrad Electronic
period period duration
PS prescaler
Table prescaler:
Prescaler
Tickduration Mega32
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
Prescaler
Tickduration Mega128
Tickduration Mega128 CAN
PS0_1 (1)
135,6 ns
125 ns
PS0_8 (2)
1,085 µs
1 µs
PS0_32 (3)
4,340 µs
4 µs
PS0_64 (4)
8,681 µs
s
PS0_128 (5)
17,36 µs
16 µs
PS0_256 (6)
34,72 µs
32 µs
PS0_1024 (7)
138,9 µs
128 µs
5.26.1.10 Timer_T0GetCNT
Timer Functions
Syntax
byte Timer_T0GetCNT(void);
Sub Timer_T0GetCNT() As Byte
Description
The value of Counter0 is read. If there was an overflow a value of ff (Hex) is returned.
Due to hardware reasons it is not possible to use
Tim er_0
as a counter in the Mega128!
Return Parameter
counter value
5.26.1.11 Timer_T0PW
Timer Functions
Syntax