Timer_T0Frq - Conrad C-Control Pro Mega Series Manual

Table of Contents

Advertisement

201
C-Control Pro Mega Series
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 Timer_0 as a counter in the Mega128!
Parameter
None

6.19.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
frequency generation is started automatically. There is a extended prescaler definition for the Mega128,
see table.
Parameter
period period duration
PS prescaler
Table prescaler:
Mega32
Prescaler
PS0_1 (1)
PS0_8 (2)
PS0_64 (3)
PS0_256 (4)
PS0_1024 (5)
Mega128
Prescaler
Time Base (duration of a tick)
135,6 ns
1,085 µs
8,681 µs
34,72 µs
138,9 µs
Time Base (duration of a tick)
© 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