30.10.2014 Views

o_195h4n6al16jb186b1b2qs7fgssa.pdf

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Arguments: None<br />

Remarks: None<br />

Code Example: EnableCN6;<br />

DisableCN0<br />

DisableCN1<br />

DisableCN2<br />

......................<br />

DisableCN23<br />

Description: This macro disables individual change notification interrupt.<br />

Include: ports.h<br />

Arguments: None<br />

Remarks: None<br />

Code Example: DisableCN14;<br />

EnableINT0<br />

EnableINT1<br />

EnableINT2<br />

EnableINT3<br />

EnableINT4<br />

Description: This macro enables the individual external interrupt.<br />

Include: ports.h<br />

Arguments: None<br />

Remarks: None<br />

Code Example: EnableINT2;<br />

dsPIC<br />

®<br />

Language Tools Libraries<br />

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

DisableINT0<br />

DisableINT1<br />

DisableINT2<br />

DisableINT3<br />

DisableINT4<br />

Description: This macro disables the individual external interrupt.<br />

Include: ports.h<br />

Arguments: None<br />

Remarks: None<br />

Code Example: DisableINT2;<br />

SetPriorityInt0<br />

SetPriorityInt1<br />

Mã số Ví dụ: CloseCapture1 ();<br />

dsPIC<br />

®<br />

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

DS51456B trang 126 2004 Microchip Technology Inc<br />

ConfigIntCapture1<br />

ConfigIntCapture2<br />

ConfigIntCapture3<br />

ConfigIntCapture4<br />

ConfigIntCapture5<br />

ConfigIntCapture6<br />

ConfigIntCapture7<br />

ConfigIntCapture8<br />

Mô tả: Chức năng này cấu hình Input Capture gián đoạn.<br />

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

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

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

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

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

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

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

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

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

Lập luận: config Input Capture gián đoạn ưu tiên và cho phép / vô hiệu hóa<br />

thông tin theo quy định dưới đây:<br />

Ngắt bật / tắt<br />

IC_INT_ON<br />

IC_INT_OFF<br />

Ưu tiên ngắt<br />

IC_INT_PRIOR_0<br />

IC_INT_PRIOR_1<br />

IC_INT_PRIOR_2<br />

IC_INT_PRIOR_3<br />

IC_INT_PRIOR_4<br />

IC_INT_PRIOR_5<br />

IC_INT_PRIOR_6<br />

IC_INT_PRIOR_7<br />

Trở lại giá trị: Không<br />

Bình luận: Chức năng này sẽ xóa sạch các ngắt Flagbit và sau đó đặt ngắt

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

Saved successfully!

Ooh no, something went wrong!