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.

SetDCOC3PWM<br />

SetDCOC4PWM<br />

SetDCOC5PWM<br />

SetDCOC6PWM<br />

SetDCOC7PWM<br />

SetDCOC8PWM<br />

Description: This function configures the Output Compare Secondary Duty<br />

Cycle<br />

register (OCxRS )when the module is in PWM mode.<br />

Include: outcompare.h<br />

Prototype: void SetDCOC1PWM(unsigned int dutycycle);<br />

void SetDCOC2PWM(unsigned int dutycycle);<br />

void SetDCOC3PWM(unsigned int dutycycle);<br />

void SetDCOC4PWM(unsigned int dutycycle);<br />

void SetDCOC5PWM(unsigned int dutycycle);<br />

void SetDCOC6PWM(unsigned int dutycycle);<br />

void SetDCOC7PWM(unsigned int dutycycle);<br />

void SetDCOC8PWM(unsigned int dutycycle);<br />

Arguments: dutycycle This is the duty cycle value to be stored into Output<br />

Compare Secondary Duty Cycle register (OCxRS.)<br />

Return Value: None<br />

Remarks: The Output Compare Secondary DutyCycle register (OCxRS) will be<br />

configured with new value only if the module is in PWM mode.<br />

Source File: SetDCOC1PWM.c<br />

SetDCOC2PWM.c<br />

SetDCOC3PWM.c<br />

SetDCOC4PWM.c<br />

SetDCOC5PWM.c<br />

SetDCOC6PWM.c<br />

SetDCOC7PWM.c<br />

SetDCOC8PWM.c<br />

Code Example: SetDCOC1PWM(dutycycle);<br />

dsPIC<br />

®<br />

Language Tools Libraries<br />

Mô tả: vĩ mô này cho phép ngắt trên đầu ra so sánh trận đấu.<br />

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

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

Bình luận: Đây bộ vĩ mô ra so sánh (OC) Interrupt Enable bit Interrupt<br />

Cho phép đăng ký kiểm soát.<br />

Mã số Ví dụ: EnableIntOC8;<br />

DisableIntOC1<br />

DisableIntOC2<br />

DisableIntOC3<br />

DisableIntOC4<br />

DisableIntOC5<br />

DisableIntOC6<br />

DisableIntOC7<br />

DisableIntOC8<br />

Mô tả: vĩ mô này vô hiệu hóa ngắt vào trận đấu so sánh.<br />

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

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

Bình luận: vĩ mô này sẽ xóa OC Interrupt Enable bit Interrupt Enable kiểm soát<br />

đăng ký.<br />

Mã số Ví dụ: DisableIntOC7;<br />

SetPriorityIntIC1<br />

SetPriorityIntIC2<br />

SetPriorityIntIC3<br />

SetPriorityIntIC4<br />

SetPriorityIntIC5<br />

SetPriorityIntIC6<br />

SetPriorityIntIC7<br />

SetPriorityIntIC8<br />

Mô tả: Điều này đặt ra ưu tiên vĩ mô cho đầu ra so sánh gián đoạn.<br />

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

Đối số: ưu tiên<br />

Bình luận: Đây bộ vĩ mô OC ngắt bit ưu tiên của ngắt ưu tiên kiểm soát<br />

đăng ký.<br />

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

dsPIC<br />

DS51456B-page 138<br />

SetPulseOC1<br />

2004 Microchip Technology Inc.<br />

®<br />

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

SetPulseOC2<br />

SetPulseOC3<br />

DS51456B trang 140<br />

3.11.3 Ví dụ sử dụng<br />

2004 Microchip Technology Inc

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

Saved successfully!

Ooh no, something went wrong!