EasyManua.ls Logo

Microchip Technology dsPIC30F - Introduction

Microchip Technology dsPIC30F
738 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
dsPIC30F Family Reference Manual
DS70061C-page 14-2 © 2004 Microchip Technology Inc.
14.1 Introduction
The Output Compare module has the ability to compare the value of a selected time base with
the value of one or two compare registers (depending on the Operation mode selected).
Furthermore, it has the ability to generate a single output pulse, or a train of output pulses, on a
compare match event. Like most dsPIC peripherals, it also has the ability to generate
interrupts-on- compare match events.
The dsPIC30F device may have up to eight output compare channels, designated OC1, OC2,
OC3, etc. Refer to the specific device data sheet for the number of channels available in a
particular device. All output compare channels are functionally identical. In this section, an ‘x’ in
the pin, register or bit name denotes the specific output compare channel.
Each output compare channel can use one of two selectable time bases. The time base is
selected using the OCTSEL bit (OCxCON<3>). Please refer to the device data sheet for the
specific timers that can be used with each output compare channel number.
Figure 14-1: Output Compare Module Block Diagram
OCxR
(1)
Comparator
Output
Logic
QS
R
OCM<2:0>
Output Enable
OCx
(1)
Set Flag bit
OCxIF
(1)
OCxRS
(1)
Mode Select
3
Note 1: Where ‘x’ is shown, reference is made to the registers associated with the respective output compare
channels 1 through 8.
2: OCFA pin controls OC1-OC4 channels. OCFB pin controls OC5-OC8 channels.
3: Each output compare channel can use one of two selectable time bases. Refer to the device data sheet
for the time bases associated with the module.
0
1
OCTSEL
0
1
16
16
OCFA or OCFB
(see Note 2)
TMR register inputs
from time bases
(see Note 3).
Period match signals
from time bases
(see Note 3).

Table of Contents

Other manuals for Microchip Technology dsPIC30F