Electronic Components Datasheet Search
  English  ▼

X  

AN2618 Datasheet(PDF) 12 Page - STMicroelectronics

Part # AN2618
Description  eTPU host interface
PDF  23 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2618 Datasheet(HTML) 12 Page - STMicroelectronics

Back Button AN2618 Datasheet HTML 8Page - STMicroelectronics AN2618 Datasheet HTML 9Page - STMicroelectronics AN2618 Datasheet HTML 10Page - STMicroelectronics AN2618 Datasheet HTML 11Page - STMicroelectronics AN2618 Datasheet HTML 12Page - STMicroelectronics AN2618 Datasheet HTML 13Page - STMicroelectronics AN2618 Datasheet HTML 14Page - STMicroelectronics AN2618 Datasheet HTML 15Page - STMicroelectronics AN2618 Datasheet HTML 16Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 12 / 23 page
background image
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
};



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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