Timer_T1Pwm - Conrad C-Control Pro Mega Series Manual

Table of Contents

Advertisement

Sub Timer_T1PWB(PW1 As Word)
Description
This function sets a new pulse width (Channel B) for Timer1 without changing the prescaler.
Parameter
PW1 pulse width

6.19.25 Timer_T1PWM

Timer Functions
Syntax
void Timer_T1PWM(word period,word PW0,byte PS);
Sub Timer_T1PWM(period As Word,PW0 As Word,PS As Byte)
Description
This function initializes Timer_1 with given period duration, pulse width and prescaler, see table. The
output signal is generated at Mega32: PortD.5 (PIN19), Mega128: PortB.5 (X1_3). There is an extended
prescaler definition for the Mega128, see table.
Parameter
period period duration
PW0
pulse width
PS
prescaler
Table prescaler:
Mega32
Prescaler
PS0_1 (1)
PS0_8 (2)
PS0_64 (3)
PS0_256 (4)
PS0_1024 (5)
Mega128
Prescaler
© 2008 Conrad Electronic
Time Base (duration of a tick)
67,8 ns
542,5 ns
4,34 µs
17,36 µs
69,44 µs
Time Base (duration of a tick)
Libraries
210

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

This manual is also suitable for:

C-control pro mega32C-control pro mega128

Table of Contents