參數(shù)資料
型號(hào): 16F877
廠商: Microchip Technology Inc.
英文描述: CAT 5E CROSSOVER PATCH CORD CABLE GREEN 20 FT
中文描述: 28/40-pin 8位CMOS閃存微控制器
文件頁數(shù): 59/200頁
文件大?。?/td> 3544K
代理商: 16F877
第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頁當(dāng)前第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頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁第195頁第196頁第197頁第198頁第199頁第200頁
PIC16F87X
1999 Microchip Technology Inc.
DS30292A-page 59
8.1
Capture Mode
In Capture mode, CCPR1H:CCPR1L captures the
16-bit value of the TMR1 register when an event occurs
on pin RC2/CCP1. An event is defined as:
Every falling edge
Every rising edge
Every 4th rising edge
Every 16th rising edge
An event is selected by control bits CCP1M3:CCP1M0
(CCP1CON<3:0>). When a capture is made, the inter-
rupt request flag bit CCP1IF (PIR1<2>) is set. The
interrupt flag must be cleared in software. If another
capture occurs before the value in register CCPR1 is
read, the old captured value will be lost.
8.1.1
CCP PIN CONFIGURATION
In Capture mode, the RC2/CCP1 pin should be config-
ured as an input by setting the TRISC<2> bit.
FIGURE 8-1:
CAPTURE MODE OPERATION
BLOCK DIAGRAM
8.1.2
TIMER1 MODE SELECTION
Timer1 must be running in timer mode or synchronized
counter mode for the CCP module to use the capture
feature. In asynchronous counter mode, the capture
operation may not work.
8.1.3
SOFTWARE INTERRUPT
When the capture mode is changed, a false capture
interrupt may be generated. The user should keep bit
CCP1IE (PIE1<2>) clear to avoid false interrupts and
should clear the flag bit CCP1IF following any such
change in operating mode.
8.1.4
CCP PRESCALER
There are four prescaler settings, specified by bits
CCP1M3:CCP1M0. Whenever the CCP module is
turned off, or the CCP module is not in capture mode,
the prescaler counter is cleared. Any reset will clear the
prescaler counter.
Switching from one capture prescaler to another may
generate an interrupt. Also, the prescaler counter will
not be cleared, therefore, the first capture may be from
a non-zero prescaler.
Example 8-1
shows the recom-
mended method for switching between capture pres-
calers. This example also clears the prescaler counter
and will not generate the “false” interrupt.
EXAMPLE 8-1:
CHANGING BETWEEN
CAPTURE PRESCALERS
;Turn CCP module off
NEW_CAPT_PS ;Load the W reg with
; the new precscaler
; move value and CCP ON
CCP1CON
;Load CCP1CON with this
; value
CLRF
MOVLW
CCP1CON
MOVWF
Note:
If the RC2/CCP1 pin is configured as an
output, a write to the port can cause a cap-
ture condition.
CCPR1H
CCPR1L
TMR1H
TMR1L
Set flag bit CCP1IF
(PIR1<2>)
Capture
Enable
Q’s
CCP1CON<3:0>
RC2/CCP1
Pin
Prescaler
÷
1, 4, 16
and
edge detect
相關(guān)PDF資料
PDF描述
16FL100S02 6A, 12A AND 16A FAST RECOVERY RECTIFIERS
16FL100S05 6A, 12A AND 16A FAST RECOVERY RECTIFIERS
16FL100S10 6A, 12A AND 16A FAST RECOVERY RECTIFIERS
16FL10S02 6A, 12A AND 16A FAST RECOVERY RECTIFIERS
16FL10S05 6A, 12A AND 16A FAST RECOVERY RECTIFIERS
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
16F9040 制造商:未知廠家 制造商全稱:未知廠家 功能描述:COMPACT DIGITALMULTIMETER TRUE RMS
16F9041 制造商:未知廠家 制造商全稱:未知廠家 功能描述:COMPACT DMM MIT RS232
16F946 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:中文資料 帶有LCD驅(qū)動(dòng)器,采用鈉瓦技術(shù)的64引腳8位CMOS內(nèi)存單片機(jī)
16F9775 制造商:HOFFMAN PRODUCTS 功能描述:
16FA33M 功能描述:鋁質(zhì)電解電容器 - 帶引線 33uF 16V RoHS:否 制造商:Kemet 引線類型: 電容:220 uF 容差:20 % 電壓額定值:25 V 工作溫度范圍: 端接類型:Radial 外殼直徑:8 mm 外殼長度:11 mm 引線間隔:5 mm 產(chǎn)品:General Purpose Electrolytic Capacitors 封裝:Bulk