Timer_T1Cnt_Int; Timer_T1Frq - Conrad C-Control Pro Mega Series Manual

Table of Contents

Advertisement

6.19.17 Timer_T1CNT_Int

Timer Functions
Syntax
void Timer_T1CNT_Int(word limit);
Sub Timer_T1CNT_Int(limit As Word)
Description
These function initializes Counter1. Counter1 gets incremented at every positive signal edge at Input
Mega32: PortB.1 (PIN2) Mega128: PortD.6 (X2_15). After the limit is reached an interrupt ("Timer1
CompareA" - define:
specified.
Parameter
limit

6.19.18 Timer_T1FRQ

Timer Functions
Syntax
void Timer_T1FRQ(word period,byte PS);
Sub Timer_T1FRQ(period As Word,PS As Byte)
Description
This function initializes Timer1 for frequency generation. Parameters are period duration and prescaler,
see table. The output signal is generated at Mega32: PortD.5 (PIN19). Mega128: PortB.5 (X1_3). The
frequency generation is started automatically. There is an 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)
© 2008 Conrad Electronic
INT_TIM1CMPA
) is triggered. An appropriate Interrupt Service Routine must be
Time Base (duration of a tick)
135,6 ns
1,085 µs
8,681 µs
Libraries
206

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