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.

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 />

Return Value: None<br />

Remarks: This function clears the Interrupt Flagbit and then sets the interrupt<br />

priority and enables/disables the interrupt.<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 />

Code Example: ConfigIntCapture1(IC_INT_ON & IC_INT_PRIOR_1);<br />

dsPIC Peripheral Libraries<br />

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

OpenCapture1<br />

OpenCapture2<br />

OpenCapture3<br />

OpenCapture4<br />

OpenCapture5<br />

OpenCapture6<br />

OpenCapture7<br />

OpenCapture8<br />

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

Include: InCap.h<br />

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

void OpenCapture2(unsigned int config);<br />

void OpenCapture3(unsigned int config);<br />

void OpenCapture4(unsigned int config);<br />

void OpenCapture5(unsigned int config);<br />

void OpenCapture6(unsigned int config);<br />

void OpenCapture7(unsigned int config);<br />

void OpenCapture8(unsigned int config);<br />

Arguments: config This contains the parameters to be configured in the<br />

ICxCON register as defined below:<br />

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

Prototype: void ReadCapture1 (int * đệm);<br />

làm mất hiệu lực ReadCapture2 (int * đệm);<br />

làm mất hiệu lực ReadCapture3 (int * đệm);<br />

làm mất hiệu lực ReadCapture4 (int * đệm);<br />

làm mất hiệu lực ReadCapture5 (int * đệm);<br />

làm mất hiệu lực ReadCapture6 (int * đệm);<br />

làm mất hiệu lực ReadCapture7 (int * đệm);<br />

làm mất hiệu lực ReadCapture8 (int * đệm);<br />

Đối số: đệm Đây là con trỏ đến vị trí nơi mà các dữ liệu đọc từ<br />

Input Capture bộ đệm phải được lưu trữ.<br />

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

Bình luận: Chức năng này đọc tất cả các cấp phát Input Capture bộ đệm cho đến<br />

khi bộ đệm<br />

được sản phẩm nào được chỉ định bởi ICxCON bit bị xóa.<br />

Source File: ReadCapture1.c<br />

ReadCapture2.c<br />

ReadCapture3.c<br />

ReadCapture4.c<br />

ReadCapture5.c<br />

ReadCapture6.c<br />

ReadCapture7.c<br />

ReadCapture8.c<br />

Mã số Ví dụ: int * đệm = 0x1900;<br />

ReadCapture1 (đệm);<br />

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

2004 Microchip Technology Inc DS51456B trang 129<br />

3.10.2 Macros cá nhân<br />

EnableIntIC1<br />

EnableIntIC2<br />

EnableIntIC3<br />

EnableIntIC4<br />

EnableIntIC5<br />

EnableIntIC6<br />

EnableIntIC7<br />

EnableIntIC8<br />

Mô tả: vĩ mô này cho phép ngắt trên màn hình sự kiện.<br />

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

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

Bình luận: Đây vĩ mô bộ Input Capture Interrupt Enable bit Interrupt Enable

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

Saved successfully!

Ooh no, something went wrong!