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.

Include: outcompare.h<br />

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

unsigned int ReadDCOC2PWM(void);<br />

unsigned int ReadDCOC3PWM(void);<br />

unsigned int ReadDCOC4PWM(void);<br />

unsigned int ReadDCOC5PWM(void);<br />

unsigned int ReadDCOC6PWM(void);<br />

unsigned int ReadDCOC7PWM(void);<br />

unsigned int ReadDCOC8PWM(void);<br />

Arguments: None<br />

Return Value: This function returns the content of OCxRS register when Output<br />

Compare module is in PWM mode. Else ‘-1’ is returned<br />

Remarks: This function reads the duty cycle from the Output Compare<br />

Secondary<br />

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

If not in PWM mode, the functions returns a value of ‘-1’.<br />

Source File: ReadDCOC1PWM.c<br />

ReadDCOC2PWM.c<br />

ReadDCOC3PWM.c<br />

ReadDCOC4PWM.c<br />

ReadDCOC5PWM.c<br />

khoảng trống SetDCOC5PWM (int dutycycle);<br />

khoảng trống SetDCOC6PWM (int dutycycle);<br />

khoảng trống SetDCOC7PWM (int dutycycle);<br />

khoảng trống SetDCOC8PWM (int dutycycle);<br />

Đối số: dutycycle Đây là giá trị chu kỳ nhiệm vụ được lưu trữ vào đầu ra<br />

So sánh thứ Chu kỳ đăng ký (OCxRS.)<br />

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

Chú ý: Đầu ra so sánh thứ DutyCycle đăng ký (OCxRS) sẽ<br />

cấu hình với giá trị mới nếu các mô-đun ở chế độ PWM.<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 />

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

dsPIC<br />

®<br />

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

ReadDCOC6PWM.c<br />

ReadDCOC7PWM.c<br />

ReadDCOC8PWM.c<br />

Code Example: unsigned int compare_reg;<br />

compare_reg = ReadDCOC1PWM();<br />

dsPIC<br />

®<br />

Language Tools Libraries<br />

DS51456B trang 138<br />

SetPulseOC1<br />

SetPulseOC2<br />

SetPulseOC3<br />

SetPulseOC4<br />

SetPulseOC5<br />

SetPulseOC6<br />

SetPulseOC7<br />

2004 Microchip Technology Inc<br />

DS51456B-page 136<br />

ReadRegOC1<br />

ReadRegOC2<br />

ReadRegOC3<br />

ReadRegOC4<br />

ReadRegOC5<br />

ReadRegOC6<br />

ReadRegOC7<br />

ReadRegOC8<br />

2004 Microchip Technology Inc.<br />

SetPulseOC8<br />

Mô tả: Chức năng này cấu hình ra so sánh chính và phụ<br />

đăng ký (OCxR và OCxRS) whenthe mô-đun không có trong chế độ PWM.<br />

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

Prototype: void SetPulseOC1 (int pulse_start,<br />

int pulse_stop);<br />

khoảng trống SetPulseOC2 (int pulse_start,<br />

int pulse_stop);<br />

khoảng trống SetPulseOC3 (int pulse_start,<br />

Description: This function reads the duty cycleregisters when Output Compare<br />

u nsigned int pulse_stop);

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

Saved successfully!

Ooh no, something went wrong!