| Electronic Components Datasheet Search |
|
PMS232 Datasheet(PDF) 90 Page - PADAUK Technology. |
|
|
|||||||||||||||||||||||||||||
PMS232 Datasheet(HTML) 90 Page - PADAUK Technology. |
|
90 / 94 page ![]() PMC232/PMS232 Series 12-bit ADC Enhanced FPPA TM 8-bit OTP Controller ©Copyright 2018, PADAUK Technology Co. Ltd Page 90 of 94 PDK-DS-PMx232_V104– Dec. 18, 2018 9-2-3. System clock switching (1) System clock can be switched by CLKMD register. Please notice that, NEVER switch the system clock and turn off the original clock source at the same time. For example: When switching from clock A to clock B, please switch to clock B first; and after that turn off the clock A oscillator through CLKMD. Case 1 : Switch system clock from ILRC to IHRC/2 CLKMD = 0x36; // switch to IHRC, ILRC can not be disabled here CLKMD.2 = 0; // ILRC can be disabled at this time Case 2 : Switch system clock from ILRC to EOSC CLKMD = 0xA6; // switch to EOSC, ILRC can not be disabled here CLKMD.2 = 0; // ILRC can be disabled at this time ERROR. Switch ILRC to IHRC and turn off ILRC simultaneously CLKMD = 0x50; // MCU will hang (2) Please ensure the EOSC oscillation has established before switching from ILRC or IHRC to EOSC. MCU will not check its status. Please wait for a while after enabling EOSC. System clock can be switched to EOSC afterwards. Otherwise, MCU will hang. The example for switching system clock from ILRC to 4MHz EOSC after boot up is as below: .ADJUST_IC DISABLE CLKMD.1 = 0; // turn off WDT for executing delay instruction. $ EOSCR Enable, 4MHz; // 4MHz EOSC start to oscillate. delay 255 // Delay for EOSC establishment CLKMD = 0xA4; // ILRC -> EOSC; CLKMD.2 = 0; // turn off ILRC only if necessary The delay duration should be adjusted in accordance with the characteristic of the crystal and PCB. To measure the oscillator signal by the oscilloscope, please select (x10) on the probe and measure through PA6(X2) pin to avoid the interference on the oscillator. 9-2-4. Power down mode, wakeup and watchdog (1) Watchdog will be inactive once ILRC is disabled (2) Please turn off watchdog before executing STOPSYS or STOPEXE instruction, otherwise IC will be reset due to watchdog timeout. It is the same as in ICE emulation. (3) The clock source of Watchdog is ILRC if the fast wakeup is disabled; otherwise, the clock source of Watchdog will be the system clock and the reset time becomes much shorter. It is recommended to disable Watchdog and enable fast wakeup before entering STOPSYS mode. When the system is waken up from power down mode, please firstly disable fast wakeup function, and then enable Watchdog. It is to avoid system to be reset after being waken up. |
|
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 |