Microchip Technology dsPIC33F Family Dokumentacja Strona 81

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 118
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 80
© 2008-2012 Microchip Technology Inc. DS70323E-page 43-81
Section 43. High-Speed PWM
High-Speed PWM
43
43.10.10 PWM Fault and Current-Limit Trigger Outputs to ADC
The CLSRC<4:0> bits (FCLCONx<14:10>) and FLTSRC<4:0> bits (FCLCONx<7:3>) and
control the fault selection to each PWM generator module. The control multiplexers select the
desired fault and current-limit signals for their respective modules. The selected fault and
current-limit signals which are also available to the ADC module as trigger signals, initiate ADC
sampling and conversion operations. The configuration of PWM fault, current-limit and
leading-edge blanking is shown in Example 43-23.
Example 43-23: PWM Fault, Current-Limit and Leading-Edge Blanking Configuration
/* PWM Fault, Current-Limit, and Leading-Edge Blanking Configuration */
//
FCLCON1bits.IFLTMOD = 0; /* CLDAT bits and FLTDAT bits control PWMxH/PWMxL pins on occurrence of
current limit and fault inputs respectively */
//FCLCON1bits.CLSRC = 0; /* Fault 1 is selected as source for the Current Limit Control signal */
//FCLCON1bits.FLTSRC = 3; /* Fault 4 is selected as source for the Fault Control Signal source */
//FCLCON1bits.CLPOL = 1; /* Current-limit source is active-low */
//FCLCON1bits.FLTPOL = 1; /* Fault Input source is active-low */
//FCLCON1bits.CLMOD = 1; /* Enable current-limit function */
//FCLCON1bits.FLTMOD = 1; /* Enable Cycle-by-Cycle Fault mode */
FCLCON1 = 0x031D;
IOCON1bits.FLTDAT = 0; /* PWMxH and PWMxL are driven inactive on occurrence of fault */
IOCON1bits.CLDAT = 0; /* PWMxH and PWMxL are driven inactive on occurrence of current-limit */
//LEBCON1bits.PHR = 1; /* Rising edge of PWMxH will trigger LEB counter */
//LEBCON1bits.PHF = 0; /* Falling edge of PWMxH is ignored by LEB counter */
//LEBCON1bits.PLR = 1; /* Rising edge of PWMxL will trigger LEB counter */
//LEBCON1bits.PLF = 0; /* Falling edge of PWMxL is ignored by LEB counter */
//LEBCON1bits.FLTLEBEN = 1; /* Enable fault LEB for selected source */
//LEBCON1bits.CLLEBEN = 1; /* Enable current-limit LEB for selected source */
//LEBCON1bits.LEB = 8; /* Blanking period of 8.32 ns */
LEBCON1 = 0xAC40;
PWMCON1bits.XPRES = 0; /* External pins do not affect PWM time base reset */
PWMCON1bits.FLTIEN = 1; /* Enable fault interrupt */
PWMCON1bits.CLIEN = 1; /* Enable current-limit interrupt */
Note: The code in Example 43-23 applies to devices with remappable I/O only.
Przeglądanie stron 80
1 2 ... 76 77 78 79 80 81 82 83 84 85 86 ... 117 118

Komentarze do niniejszej Instrukcji

Brak uwag

U.S. Range Performer Series podręczniki

Instrukcje obsługi i podręczniki użytkownika dla Kuchenki U.S. Range Performer Series.
Dostarczamy 1 pdf podręczników U.S. Range Performer Series do pobrania za darmo według typów dokumentów: Instrukcje Operacyjne






Więcej produktów i instrukcji dla Kuchenki U.S. Range

Modele Rodzaj dokumentu
PS-4-20 Instrukcja Obsługi   U.S. Range PS-4-20 Technical data, 66 strony
PS-4 Instrukcja Użytkownika   battlefield-4, 55 strony
UIR36 Dokumentacja     U.S. Range UIR36 Specifications [en] , 52 strony
UIR36C Instrukcja Obsługi     U.S. Range UIR36C Service manual, 52 strony
Sunfire Series Instrukcja Użytkownika   Sunfire Series G as Convection O ven - Garland, 2 strony
PS-12G-20 Instrukcja Użytkownika   5990-7516EN - Agilent Technologies, 40 strony
PS-4 Instrukcja Użytkownika   PlayStation PS4 and PS Vita, 3 strony