Timer_T1Pm; Timer_T1Pwb - Conrad C-Control Pro Mega Series Manual

Table of Contents

Advertisement

209
C-Control Pro Mega Series

6.19.23 Timer_T1PM

Timer Functions
Syntax
void Timer_T1PM(byte Mode,byte PS);
void Timer_T1PM(Mode As Byte,PS As Byte)
Description
This function defines if
initializes Timer_1 and sets the prescaler.
Parameter
Mode 0 = pulse width measurement, 1 = period measurement
PS
prescaler
Table prescaler:
Mega32
Prescaler
PS0_1 (1)
PS0_8 (2)
PS0_64 (3)
PS0_256 (4)
PS0_1024 (5)
Mega128
Prescaler
PS0_1 (1)
PS0_8 (2)
PS0_32 (3)
PS0_64 (4)
PS0_128 (5)
PS0_256 (6)
PS0_1024 (7)

6.19.24 Timer_T1PWB

Timer Functions
Syntax
void Timer_T1PWB(word PW1);
pulse width measurement or period measurement should be done.
Time Base (duration of a tick)
Time Base (duration of a tick)
67,8 ns
542,5 ns
4,34 µs
17,36 µs
69,44 µs
67,8 ns
542,5 ns
2,17 µs
4,34 µs
8,68 µs
17,36 µs
69,44 µs
Then it
© 2008 Conrad Electronic

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the C-Control Pro Mega Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

C-control pro mega32C-control pro mega128

Table of Contents