Moteur de recherche de fiches techniques de composants électroniques
  French  ▼
ALLDATASHEET.FR

X  

AN4539 Fiches technique(PDF) 9 Page - STMicroelectronics

No de pièce AN4539
Description  HRTIM cookbook
PDF  33 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricant  STMICROELECTRONICS [STMicroelectronics]
Site Internet  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4539 Fiches technique(HTML) 9 Page - STMicroelectronics

Back Button AN4539 Datasheet HTML 5Page - STMicroelectronics AN4539 Datasheet HTML 6Page - STMicroelectronics AN4539 Datasheet HTML 7Page - STMicroelectronics AN4539 Datasheet HTML 8Page - STMicroelectronics AN4539 Datasheet HTML 9Page - STMicroelectronics AN4539 Datasheet HTML 10Page - STMicroelectronics AN4539 Datasheet HTML 11Page - STMicroelectronics AN4539 Datasheet HTML 12Page - STMicroelectronics AN4539 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 33 page
background image
DocID026506 Rev 1
9/33
AN4539
Getting the kitchen ready
32
/* Enable HRTIM clock*/
__HRTIM1_CLK_ENABLE();
/* DLL calibration: periodic calibration enabled, period set to 14µs */
HRTIM1->sCommonRegs.DLLCR = HRTIM_CALIBRATIONRATE_14| HRTIM_DLLCR_CALEN;
/* Check DLL end of calibration flag */
while(HRTIM1->sCommonRegs.ISR & HRTIM_IT_DLLRDY == RESET);
HRTIM1->sCommonRegs.OENR = HRTIM_OENR_TD1OEN; /* Enable TD1 output */
GPIO_HRTIM_outputs_Config();
/* Initialize HRTIM outputs */
while(1)
{
/* Set and reset TD1 by software */
HRTIM1->sTimerxRegs[HRTIM_TIMERINDEX_TIMER_D].SETx1R = HRTIM_SET1R_SST;
HRTIM1->sTimerxRegs[HRTIM_TIMERINDEX_TIMER_D].RSTx1R = HRTIM_RST1R_SRT;
}
The snippet reproduced here is available in the HRTIM_Snippets and HRTIM_BasicPWM
examples. In both cases the example must be selected with the #define HRTIM_CHECK
statement.
For the remaining part of this document, the clock and DLL initialization part will not be
repeated, it will be replaced by a call to the HRTIM_Minimal_Config() function.



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 24 25 26 27 28 29 30 31 32 33


Fiches technique Télécharger

Go To PDF Page


Lien URL



ALLDATASHEET vous a-t-il été utile ?  [ DONATE ] 

À propos de Alldatasheet   |   Publicité   |   Contactez-nous   |   Politique de confidentialité   |   Lien vers la fiche technique    |   Echange de liens   |   Fabricants
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