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.

EnableIntIC5<br />

EnableIntIC6<br />

EnableIntIC7<br />

EnableIntIC8<br />

Description: This macro enables the interrupt on capture event.<br />

Include: InCap.h<br />

Arguments: None<br />

Remarks: This macro sets Input Capture Interrupt Enable bit of Interrupt Enable<br />

Control register.<br />

Code Example: EnableIntIC7;<br />

DisableIntIC1<br />

DisableIntIC2<br />

DisableIntIC3<br />

DisableIntIC4<br />

DisableIntIC5<br />

DisableIntIC6<br />

DisableIntIC7<br />

DisableIntIC8<br />

Description: This macro disables the interrupt on capture event.<br />

Include: InCap.h<br />

Arguments: None<br />

Remarks: This macro clears Input Capture Interrupt Enable bit of Interrupt<br />

Enable<br />

Control register.<br />

Code Example: DisableIntIC7;<br />

SetPriorityIntIC1<br />

SetPriorityIntIC2<br />

SetPriorityIntIC3<br />

SetPriorityIntIC4<br />

SetPriorityIntIC5<br />

SetPriorityIntIC6<br />

SetPriorityIntIC7<br />

SetPriorityIntIC8<br />

Description: This macro sets priority for input capture interrupt.<br />

Include: InCap.h<br />

Arguments: priority<br />

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

Priority<br />

Control register.<br />

Code Example: SetPriorityIntIC4(1);<br />

{<br />

tính ++;<br />

}<br />

PORTDbits.RD0 = 1;<br />

}<br />

Interrupt_Count = 0;<br />

count = 0;<br />

}<br />

CloseCapture1 ();<br />

}<br />

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

2004 Microchip Technology Inc DS51456B trang 131<br />

3.11 OUTPUT SO SÁNH CHỨC NĂNG<br />

Phần này bao gồm một danh sách các chức năng riêng cho đầu ra so sánh các<br />

mô-đun và một<br />

ví dụ về việc sử dụng các chức năng. Chức năng có thể được thực hiện như các<br />

macro.<br />

3.11.1 Chức năng cá nhân<br />

CloseOC1<br />

CloseOC2<br />

CloseOC3<br />

CloseOC4<br />

CloseOC5<br />

CloseOC6<br />

CloseOC7<br />

CloseOC8<br />

Mô tả: Chức năng này sẽ tắt đầu ra so sánh các mô-đun.<br />

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

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

làm mất hiệu lực CloseOC2 (void);<br />

làm mất hiệu lực CloseOC3 (void);<br />

làm mất hiệu lực CloseOC4 (void);<br />

làm mất hiệu lực CloseOC5 (void);<br />

làm mất hiệu lực CloseOC6 (void);<br />

làm mất hiệu lực CloseOC7 (void);<br />

làm mất hiệu lực CloseOC8 (void);<br />

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

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

Ghi chú: Chức năng này vô hiệu hóa các đầu ra so sánh gián đoạn và sau đó tắt<br />

bit module.The Cờ ngắt cũng sẽ bị xóa.

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

Saved successfully!

Ooh no, something went wrong!