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.

void CloseOC4(void);<br />

void CloseOC5(void);<br />

void CloseOC6(void);<br />

void CloseOC7(void);<br />

void CloseOC8(void);<br />

Arguments: None<br />

Return Value: None<br />

Remarks: This function disables the Output Compare interrupt and then turns<br />

off<br />

the module.The Interrupt Flag bit is also cleared.<br />

Source File: CloseOC1.c<br />

CloseOC2.c<br />

CloseOC3.c<br />

CloseOC4.c<br />

CloseOC5.c<br />

CloseOC6.c<br />

CloseOC7.c<br />

CloseOC8.c<br />

Code Example: CloseOC1();<br />

dsPIC<br />

®<br />

Language Tools Libraries<br />

int value1, value2 int);<br />

khoảng trống OpenOC6 (int config,<br />

int value1, value2 int);<br />

khoảng trống OpenOC7 (int config,<br />

int value1, value2 int);<br />

khoảng trống OpenOC8 (int config,<br />

int value1, value2 int);<br />

Đối số: cấu hình này bao gồm các thông số phải được cấu hình trong<br />

OCxCON đăng ký theo quy định dưới đây:<br />

Hoạt động chế độ nhàn rỗi<br />

OC_IDLE_STOP<br />

OC_IDLE_CON<br />

Đồng hồ chọn<br />

OC_TIMER2_SRC<br />

OC_TIMER3_SRC<br />

Đầu ra so sánh phương thức hoạt động<br />

OC_PWM_FAULT_PIN_ENABLE<br />

OC_PWM_FAULT_PIN_DISABLE<br />

OC_CONTINUE_PULSE<br />

OC_SINGLE_PULSE<br />

OC_TOGGLE_PULSE<br />

OC_HIGH_LOW<br />

DS51456B-page 132<br />

ConfigIntOC1<br />

ConfigIntOC2<br />

ConfigIntOC3<br />

ConfigIntOC4<br />

ConfigIntOC5<br />

ConfigIntOC6<br />

ConfigIntOC7<br />

ConfigIntOC8<br />

2004 Microchip Technology Inc.<br />

OC_LOW_HIGH<br />

OC_OFF<br />

value1 này chứa các giá trị được lưu trữ trong OCxRS thứ<br />

Đăng ký.<br />

value2 này chứa các giá trị được lưu trữ trong OCxR chính<br />

Đăng ký.<br />

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

dsPIC<br />

®<br />

Description: This function configures the Output Compare interrupt.<br />

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

Include: outcompare.h<br />

DS51456B trang 134<br />

2004 Microchip Technology Inc<br />

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

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

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

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

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

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

Bình luận: Chức năng này cấu hình đăng ký OutputCompare Mô-đun điều khiể<br />

(OCxCON) với các thông số sau:<br />

Đồng hồ lựa chọn, phương thức hoạt động, hoạt động ở chế độ Idle.<br />

Nó cũng có cấu hình OCxRS và OCxR đăng ký.<br />

Source File: OpenOC1.c<br />

OpenOC2.c

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

Saved successfully!

Ooh no, something went wrong!