| поискавой системы для электроныых деталей |
|
AN4253 датащи(PDF) 25 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4253 датащи(HTML) 25 Page - STMicroelectronics |
|
25 / 44 page ![]() DocID024255 Rev 2 25/44 AN4253 HW resource initialization It is recommended to split clock subsystem setup to several parts to make the clock transition safe with minimum impact on voltage regulator load. All mode transitions issued here use DRUN mode as a target mode. 1. Configure oscillator module 2. Enable oscillator block (mode transition) 3. Configure input clock to FMPLL0 4. Configure FMPLL0 5. Enable FMPLL0 block (mode transition) 6. Wait for FMPLL0 lock 7. Enable peripherals needed in the startup (clock gating) 8. Switch system clock to FMPLL0 output (mode transition) Configure oscillator block Here one parameter shall be tuned with respect to ECU design and selected crystal oscillator. It is end of count value parameter, EOCV bit field in RC_CTL register. EOCV value shall satisfy the following formula: EOCV >= (TXOSCHSSU * fXOSCHS) / 512 where fXOSCHS is the "oscillator frequency" and TXOSCHSSU is the "oscillator start-up time" whose value can be found in the DS. Default reset value Code sequence 1. Write required value to EOCV bit field in OSC_CTL register Enable oscillator block (mode transition) In order to enable the crystal oscillator block, mode transition is required with bit XOSCON in ME_DRUN_MC register set on. Code sequence 1. Set bit XOSCON in ME_DRUN_MC register 2. Write DRUN with Key_1 in ME_MCTL register 3. Write DRUN with Key_2 in ME_MCTL register 4. Wait mode transition to finish (ME_GS.MTRANS bit = 0) • Count value to reach = EOCV*512 This parameter tells how many clock pulses will be counted before an external crystal clock can be considered as stable and possible to select as the system clock. • EOCV = 128 It gives 1.63 ms delay for 40 MHz crystal oscillator |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |