| Electronic Components Datasheet Search |
|
AN2618 Datasheet(PDF) 12 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2618 Datasheet(HTML) 12 Page - STMicroelectronics |
|
12 / 23 page ![]() Code example 2.etpu_PWMControl.h AN2618 12/23 Appendix B Code example 2.etpu_PWMControl.h /*--------------------------------------------------------------------+ | Include Header Files | +--------------------------------------------------------------------*/ #include "mpc5554.h" //mpc5554 register definitions. #include "mpc5500_util.h" //useful utility routines. #include "etpu_image.h" /*--------------------------------------------------------------------+ | Constants Definition | +--------------------------------------------------------------------*/ /* define functions to channels */ #define PWM0 0 #define PWM0_CHAN_PRIORITY3 #define ETPU_ENTRY_TABLE 0x0 // eTPU entry table address struct etpu_config_t etpu_config_A = { ETPU_MISC_ENABLE, //MCR register ETPU_MISC_VAL,//MISC value from eTPU compiler link file //Configure eTPU engine A ETPU_FILTER_CLOCK_DIV8 + ETPU_CHAN_FILTER_3SAMPLE + ETPU_ENTRY_TABLE, //Configure eTPU engine A timebases ETPU_TCR2CTL_DIV8 + ( 7 << 16) + //TCR2 prescaler of 8 (7+1) ETPU_TCR1CTL_DIV2 + 3, //TCR1 prescaler of 4 (3+1) 0, //Configure eTPU engine b ETPU_FILTER_CLOCK_DIV4 + ETPU_CHAN_FILTER_3SAMPLE + ETPU_ENTRY_TABLE, //Configure eTPU engine B timebases ETPU_TCR2CTL_DIV8 + ( 7 << 16) + //TCR2 prescaler of 8 (7+1) ETPU_TCR1CTL_DIV2 + 3, 0 }; |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |