数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

DVR 数据表(PDF) 174 Page - Microchip Technology

部件名 DVR
功能描述  16-Bit General Purpose Microcontrollers with 256-Kbyte Flash and 16-Kbyte RAM in Low Pin Count Packages
PDF  416 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  MICROCHIP [Microchip Technology]
网页  http://www.microchip.com
标志 MICROCHIP - Microchip Technology

DVR 数据表(HTML) 174 Page - Microchip Technology

Back Button DVR Datasheet HTML 170Page - Microchip Technology DVR Datasheet HTML 171Page - Microchip Technology DVR Datasheet HTML 172Page - Microchip Technology DVR Datasheet HTML 173Page - Microchip Technology DVR Datasheet HTML 174Page - Microchip Technology DVR Datasheet HTML 175Page - Microchip Technology DVR Datasheet HTML 176Page - Microchip Technology DVR Datasheet HTML 177Page - Microchip Technology DVR Datasheet HTML 178Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 174 / 416 page
background image
PIC24FJ256GA705 FAMILY
DS30010118D-page 174
 2016-2018 Microchip Technology Inc.
FIGURE 15-1:
OUTPUT COMPARE x BLOCK DIAGRAM (16-BIT MODE)
15.2
Compare Operations
In Compare mode (Figure 15-1), the output compare
module can be configured for Single-Shot or Continu-
ous mode pulse generation. It can also repeatedly
toggle an output pin on each timer event.
To set up the module for compare operations:
1.
Configure the OCx output for one of the
available Peripheral Pin Select pins if available
on the OCx module you are using. Otherwise,
configure the dedicated OCx output pins.
2.
Calculate the required values for the OCxR and
(for Double Compare modes) OCxRS Duty
Cycle registers:
a)
Determine the instruction clock cycle time.
Take into account the frequency of the
external clock to the timer source (if one is
used) and the timer prescaler settings.
b)
Calculate the time to the rising edge of the
output pulse relative to the timer start value
(0000h).
c)
Calculate the time to the falling edge of the
pulse based on the desired pulse width and
the time to the rising edge of the pulse.
3.
Write the rising edge value to OCxR and the
falling edge value to OCxRS.
4.
Set the Timer Period register, PRy, to a value
equal to or greater than the value in OCxRS.
5.
Set the OCM<2:0> bits for the appropriate
compare operation (= 0xx).
6.
For Trigger mode operations, set OCTRIG to
enable Trigger mode. Set or clear TRIGMODE
to configure Trigger mode operation and
TRIGSTAT to select a hardware or software
trigger. For Synchronous mode, clear OCTRIG.
7.
Set the SYNCSEL<4:0> bits to configure the
Trigger or Sync source. If free-running timer
operation is required, set the SYNCSELx bits to
‘00000’ (no Sync/Trigger source).
8.
Select the time base source with the
OCTSEL<2:0> bits. If necessary, set the TON bit
for the selected timer, which enables the com-
pare time base to count. Synchronous mode
operation starts as soon as the time base is
enabled; Trigger mode operation starts after a
Trigger source event occurs.
OCxR and
Comparator
OCxTMR
OCxCON1
OCxCON2
OCx Interrupt
OCx Pin(1)
OCxRS
Comparator
Match Event
Match Event
Trigger and
Sync Logic
Clock
Select
Increment
Reset
OCx Clock
Sources
Trigger and
Sync Sources
Reset
Match Event
OCFA/OCFB(2)
OCTSEL<2:0>
SYNCSEL<4:0>
TRIGSTAT
TRIGMODE
OCTRIG
OCM<2:0>
OCINV
OCTRIS
FLTOUT
FLTTRIEN
FLTMD
ENFLT<2:0>
OCFLT<2:0>
Note 1:
The OCx outputs must be assigned to an available RPn pin before use. See Section 11.5 “Peripheral Pin
Select (PPS)” for more information.
2:
The OCFA/OCFB Fault inputs must be assigned to an available RPn/RPIn pin before use. See Section 11.5
“Peripheral Pin Select (PPS)” for more information.
DCB<1:0>
DCB<1:0>
OCx Output and
Fault Logic



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com