30.10.2014 Views

o_195h4n6al16jb186b1b2qs7fgssa.pdf

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SetPriorityInt2<br />

SetPriorityInt3<br />

SetPriorityInt4<br />

Description: This macro sets priority for external interrupts.<br />

Include: ports.h<br />

Arguments: priority<br />

Remarks: This macro sets External Interrupt Priority bits of Interrupt Priority<br />

Control register.<br />

Code Example: SetPriorityInt4(6);<br />

dsPIC Peripheral Libraries<br />

2004 Microchip Technology Inc. DS51456B-page 125<br />

3.10 INPUT CAPTURE FUNCTIONS<br />

This section contains a list of individual functions for Input Capture module and<br />

an<br />

example of use of the functions. Functions may be implemented as macros.<br />

3.10.1 Individual Functions<br />

CloseCapture1<br />

CloseCapture2<br />

CloseCapture3<br />

CloseCapture4<br />

CloseCapture5<br />

CloseCapture6<br />

CloseCapture7<br />

CloseCapture8<br />

Description: This function turns off the Input Capture module.<br />

Include: InCap.h<br />

Prototype: void CloseCapture1(void);<br />

void CloseCapture2(void);<br />

void CloseCapture3(void);<br />

void CloseCapture4(void);<br />

void CloseCapture5(void);<br />

void CloseCapture6(void);<br />

void CloseCapture7(void);<br />

void CloseCapture8(void);<br />

Arguments: None<br />

Return Value: None<br />

Remarks: This function disables the Input Capture interrupt and then turns off<br />

the<br />

module.The Interrupt Flagbit is also cleared.<br />

Source File: CloseCapture1.c<br />

ưu tiên và cho phép / vô hiệu hóa ngắt.<br />

Source File: ConfigIntCapture1.c<br />

ConfigIntCapture2.c<br />

ConfigIntCapture3.c<br />

ConfigIntCapture4.c<br />

ConfigIntCapture5.c<br />

ConfigIntCapture6.c<br />

ConfigIntCapture7.c<br />

ConfigIntCapture8.c<br />

Mã số Ví dụ: ConfigIntCapture1 (IC_INT_ON & IC_INT_PRIOR_1);<br />

dsPIC Thư viện ngoại vi<br />

2004 Microchip Technology Inc DS51456B trang 127<br />

OpenCapture1<br />

OpenCapture2<br />

OpenCapture3<br />

OpenCapture4<br />

OpenCapture5<br />

OpenCapture6<br />

OpenCapture7<br />

OpenCapture8<br />

Mô tả: Chức năng này cấu hình mô-đun Input Capture.<br />

Bao gồm: InCap.h<br />

Prototype: void OpenCapture1 (int config);<br />

làm mất hiệu lực OpenCapture2 (int config);<br />

làm mất hiệu lực OpenCapture3 (int config);<br />

làm mất hiệu lực OpenCapture4 (int config);<br />

làm mất hiệu lực OpenCapture5 (int config);<br />

làm mất hiệu lực OpenCapture6 (int config);<br />

làm mất hiệu lực OpenCapture7 (int config);<br />

làm mất hiệu lực OpenCapture8 (int config);<br />

Đối số: cấu hình này bao gồm các thông số phải được cấu hình trong<br />

ICxCON đăng ký theo quy định dưới đây:<br />

Hoạt động chế độ nhàn rỗi<br />

IC_IDLE_CON<br />

IC_IDLE_STOP<br />

Đồng hồ chọn<br />

IC_TIMER2_SRC<br />

IC_TIMER3_SRC<br />

Chụp mỗi ngắt

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!