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.

PWM_POUT_1L<br />

Bit defines related to PWM4 is available only for certain<br />

devices and the suitable data sheet should be referred to.<br />

OpenMCPWM (Continued)<br />

dsPIC Peripheral Libraries<br />

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

PWM Manual Output bits<br />

PWM_POUT4H_ACT<br />

PWM_POUT4H_INACT<br />

PWM_POUT4L_ACT<br />

PWM_POUT4L_INACT<br />

PWM_POUT3H_ACT<br />

PWM_POUT3H_INACT<br />

PWM_POUT3L_ACT<br />

PWM_POUT3L_INACT<br />

PWM_POUT2H_ACT<br />

PWM_POUT2H_INACT<br />

PWM_POUT2L_ACT<br />

PWM_POUT2L_INACT<br />

PWM_POUT1H_ACT<br />

PWM_POUT1H_INACT<br />

PWM_POUT1L_ACT<br />

PWM_POUT1L_INACT<br />

Bit defines related to PWM4 is available only for certain<br />

devices and the suitable data sheet should be referred to.<br />

Return Value None<br />

Remarks: This functions configures the PWM Output Override and Manual<br />

Control bits of the OVDCON register.<br />

Source File: OverrideMCPWM.c<br />

Code Example: config = PWM_GEN_1L &<br />

PWM_GEN_1H &<br />

PWM_POUT1L_INACT &<br />

PWM_POUT3L_INACT;<br />

OverrideMCPWM(config);<br />

SetDCMCPWM<br />

Description: This function configures the Duty Cycle register and updates the<br />

‘PWM<br />

Update Disable’ bit inthe PWMCON2 register.<br />

Include: pwm.h<br />

PWM_DTA2<br />

..........<br />

PWM_DTA62<br />

PWM_DTA63<br />

Dead Thời gian Đơn vị B prescale Chọn hằng số<br />

PWM_DTB0<br />

PWM_DTB1<br />

PWM_DTB2<br />

..........<br />

PWM_DTB62<br />

PWM_DTB63<br />

Dead Thời gian Đơn vị A prescale Chọn bit<br />

PWM_DTAPS8<br />

PWM_DTAPS4<br />

PWM_DTAPS2<br />

PWM_DTAPS1<br />

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

Bình luận: Không có<br />

Source File: SetMCPWMDeadTimeGeneration.c<br />

Mã số Ví dụ: SetMCPWMDeadTimeGeneration (PWM_DTBPS16 &<br />

PWM_DT54 & PWM_DTAPS8);<br />

dsPIC<br />

®<br />

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

DS51456B trang 178 2004 Microchip Technology Inc<br />

SetMCPWMFaultA<br />

Mô tả: Chức năng này cấu hình Lỗi Một bit Override, Lỗi Một chút Mode và<br />

Một lỗi đầu vào Enable bit PWM.<br />

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

Prototype: void SetMCPWMFaultA (int config);<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 />

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

Lỗi đầu vào PWM bit Override Giá trị<br />

PWM_OVA4H_ACTIVE<br />

PWM_OVA3H_ACTIVE<br />

PWM_OVA2H_ACTIVE<br />

PWM_OVA1H_ACTIVE<br />

PWM_OVA4L_ACTIVE<br />

PWM_OVA3L_ACTIVE

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

Saved successfully!

Ooh no, something went wrong!