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.

Arguments: config Interrupt edge, priority and enable/disable information as<br />

defined below:<br />

Interrupt edge selection<br />

RISING_EDGE_INT<br />

FALLING_EDGE_INT<br />

Interrupt enable<br />

INT_ENABLE<br />

INT_DISABLE<br />

Interrupt priority<br />

INT_PRI_0<br />

INT_PRI_1<br />

INT_PRI_2<br />

INT_PRI_3<br />

INT_PRI_4<br />

INT_PRI_5<br />

INT_PRI_6<br />

INT_PRI_7<br />

Return Value: None<br />

Remarks: This function clears the interrupt flag corresponding to the INTx pin<br />

and<br />

then selects the edge detect polarity.<br />

It then sets the interrupt priority and enables/disables the interrupt.<br />

Source File: ConfigInt0.c<br />

ConfigInt1.c<br />

ConfigInt2.c<br />

ConfigInt3.c<br />

ConfigInt4.c<br />

Code Example: ConfigINT0(RISING_EDGE_INT& EXT_INT_PRI_5 &<br />

EXT_INT_ENABLE);<br />

dsPIC<br />

®<br />

Language Tools Libraries<br />

DisableCN23<br />

Mô tả: vĩ mô này vô hiệu hóa cá nhân thông báo thay đổi gián đoạn.<br />

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

Lập luận: Không<br />

Bình luận: Không có<br />

Mã số Ví dụ: DisableCN14;<br />

EnableINT0<br />

EnableINT1<br />

EnableINT2<br />

EnableINT3<br />

EnableINT4<br />

Mô tả: vĩ mô này cho phép ngắt ngoài cá nhân.<br />

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

Lập luận: Không<br />

Bình luận: Không có<br />

Mã số Ví dụ: EnableINT2;<br />

dsPIC<br />

®<br />

Thư viện Công cụ Ngôn ngữ<br />

DS51456B trang 124 2004 Microchip Technology Inc<br />

DisableINT0<br />

DisableINT1<br />

DisableINT2<br />

DisableINT3<br />

DisableINT4<br />

Mô tả: vĩ mô này vô hiệu hóa ngắt ngoài cá nhân.<br />

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

Lập luận: Không<br />

Bình luận: Không có<br />

Mã số Ví dụ: DisableINT2;<br />

SetPriorityInt0<br />

SetPriorityInt1<br />

DS51456B-page 122<br />

ConfigCNPullups<br />

2004 Microchip Technology Inc.<br />

SetPriorityInt2<br />

SetPriorityInt3<br />

Description: This function configures the pull-up resistors for CN pins.<br />

Include: ports.h<br />

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

Arguments: config This is the 32-bit value for configuring pull-ups. The lower<br />

word is stored into CNPU1 register and next upper word is<br />

SetPriorityInt4<br />

Mô tả: Đây ưu tiên bộ vĩ mô cho ngắt ngoài.<br />

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

Đối số: ưu tiên<br />

Ghi chú: Phần này thiết lập ngắt ngoài bit ưu tiên của ưu tiên ngắt

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

Saved successfully!

Ooh no, something went wrong!