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.

Code Example: DisableIntFLTA;<br />

dsPIC Peripheral Libraries<br />

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

SetPriorityIntFLTA<br />

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

Include: pwm.h<br />

Arguments: priority<br />

Remarks: This macro sets FLTA Interrupt Prioritybits of Interrupt Priority<br />

Control<br />

register.<br />

Code Example: SetPriorityIntFLTA(7);<br />

EnableIntFLTB<br />

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

Include: pwm.h<br />

Arguments: None<br />

Remarks: This macro sets FLTB Interrupt Enablebit of Interrupt Enable Control<br />

register.<br />

Code Example: EnableIntFLTB;<br />

DisableIntFLTB<br />

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

Include: pwm.h<br />

Arguments: None<br />

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

Control<br />

register.<br />

Code Example: DisableIntFLTB;<br />

SetPriorityIntFLTB<br />

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

Include: pwm.h<br />

Arguments: priority<br />

Remarks: This macro sets FLTB Interrupt Prioritybits of Interrupt Priority<br />

Control<br />

register.<br />

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

dsPIC<br />

®<br />

Language Tools Libraries<br />

DS51456B-page 182<br />

3.16.3 Example of Use<br />

#define __dsPIC30F6010__<br />

2004 Microchip Technology Inc.<br />

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

Lập luận: config tôi<br />

2<br />

Ưu tiên Cinterrupt và bật / tắt thông tin<br />

quy định dưới đây:<br />

Tôi<br />

2<br />

Cmaster ngắt bật / tắt<br />

MI2C_INT_ON<br />

MI2C_INT_OFF<br />

I2C nô lệ ngắt bật / tắt<br />

SI2C_INT_ON<br />

SI2C_INT_OFF<br />

Tôi<br />

2<br />

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

MI2C_INT_PRI_7<br />

MI2C_INT_PRI_6<br />

MI2C_INT_PRI_5<br />

MI2C_INT_PRI_4<br />

MI2C_INT_PRI_3<br />

MI2C_INT_PRI_2<br />

MI2C_INT_PRI_1<br />

MI2C_INT_PRI_0<br />

Tôi<br />

2<br />

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

SI2C_INT_PRI_7<br />

SI2C_INT_PRI_6<br />

SI2C_INT_PRI_5<br />

SI2C_INT_PRI_4<br />

SI2C_INT_PRI_3<br />

SI2C_INT_PRI_2<br />

SI2C_INT_PRI_1<br />

SI2C_INT_PRI_0<br />

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

dsPIC<br />

®<br />

Thư viện Công cụ Ngôn ngữ

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

Saved successfully!

Ooh no, something went wrong!