| Electronic Components Datasheet Search |
|
AN4539 Datasheet(PDF) 9 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4539 Datasheet(HTML) 9 Page - STMicroelectronics |
|
9 / 33 page ![]() 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. |
|
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 |