Pwm Control Register (Pwmcon, Timer0: Pwm0Con - 0Xe000 4074 And Timer1: Pwm1Con - 0Xe000 8074); User Manual - Philips LPC2101 User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
Table 171: External Match Register (EMR, TIMER0: T0EMR - address 0xE000 403C and TIMER1: T1EMR -
address0xE000 803C) bit description
Bit
Symbol
Description
9:8
EMC2
External Match Control 2. Determines the functionality of External Match 2.
shows the encoding of these bits.
11:10
EMC3
External Match Control 3. Determines the functionality of External Match 3.
shows the encoding of these bits.
15:12
-
Reserved, user software should not write ones to reserved bits. The value read from a
reserved bit is not defined.
Table 172: External match control
EMR[11:10], EMR[9:8],
EMR[7:6], or EMR[5:4]
00
01
10
11
15.5.12 PWM Control Register (PWMCON, TIMER0: PWM0CON - 0xE000 4074
and TIMER1: PWM1CON - 0xE000 8074)
The PWM Control Register is used to configure the match ouputs as PWM outputs. Each
match output can be independently set to perform either as PWM output or as match
output whose function is controlled by the External Match Register (EMR).
For each timer, a maximum of three single edge controlled PWM ouputs can be selected
on the MATn.2:0 outputs. One additional match register determines the PWM cycle
length. When a match occurs in any of the other match registers, the PWM output is set to
HIGH. The timer is reset by the match register that is configured to set the PWM cycle
length. When the timer is reset to zero, all currently HIGH match outputs configured as
PWM ouputs are cleared.
Table 173: PWM Control Register (PWMCON, TIMER0: PWM0CON - 0xE000 4074 and
Bit
0
1
1
1
4:32

User manual

Function
Do Nothing.
Clear the corresponding External Match bit/output to 0 (MATn.m pin is LOW if pinned out).
Set the corresponding External Match bit/output to 1 (MATn.m pin is HIGH if pinned out).
Toggle the corresponding External Match bit/output.
TIMER1: PWM1CON - 0xE000 8074) bit description
Symbol
Description
PWM enable
When one, PWM mode is enabled for MATn.0. When
zero, MATn.0 is controlled by EM0.
PWM enable
When one, PWM mode is enabled for MATn.1. When
zero, MATn.1 is controlled by EM1.
PWM enable
When one, PWM mode is enabled for MATn.2. When
zero, MATn.2 is controlled by EM2.
PWM enable
When one, PWM mode is enabled for MATn.3. When
zero, MATn.3 is controlled by EM3.
Note: It is recommended to use MATn.3 to set the PWM
cycle because MATn.3 is not pinned out on Timer0.
-
Reserved, user software should not write ones to
reserved bits. The value read from a reserved bit is not
defined.
Rev. 01 — 12 January 2006
UM10161
Chapter 15: Timer0 and Timer1
Table 172
Table 172
Reset value
0
0
0
0
NA
© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
Reset
value
00
00
NA
196

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2103Lpc2102

Table of Contents