| Electronic Components Datasheet Search |
|
PMS232 Datasheet(PDF) 89 Page - PADAUK Technology. |
|
|
|||||||||||||||||||||||||||||
PMS232 Datasheet(HTML) 89 Page - PADAUK Technology. |
|
89 / 94 page ![]() PMC232/PMS232 Series 12-bit ADC Enhanced FPPA TM 8-bit OTP Controller ©Copyright 2018, PADAUK Technology Co. Ltd Page 89 of 94 PDK-DS-PMx232_V104– Dec. 18, 2018 (7) PA7 and PA6 as external crystal oscillator Configure PA7 and PA6 as input Disable PA7 and PA6 internal pull-up resistor Configure PADIER register to set PA6 and PA7 as analog input EOSCR register bit [6:5] selects corresponding crystal oscillator frequency : 01 : for lower frequency, ex : 32kHz 10 : for middle frequency, ex : 455kHz、1MHz 11 : for higher frequency, ex : 4MHz Program EOSCR.7 =1 to enable crystal oscillator Ensure EOSC working well before switching from IHRC or ILRC to EOSC Note: Please read the PMC-APN013 carefully. According to PMC-APN013,, the crystal oscillator should be used reasonably. If the following situations happen to cause IC start-up slowly or non-startup, PADAUK Technology is not responsible for this: the quality of the user's crystal oscillator is not good, the usage conditions are unreasonable, the PCB cleaner leakage current, or the PCB layouts are unreasonable. 9-2-2. Interrupt (1) When using the interrupt function, the procedure should be: Step1: Set INTEN register, enable the interrupt control bit Step2: Clear INTRQ register Step3: In the main program, using ENGINT to enable CPU interrupt function Step4: Wait for interrupt. When interrupt occurs, enter to Interrupt Service Routine Step5: After the Interrupt Service Routine being executed, return to the main program * Use DISGINT in the main program to disable all interrupts * When interrupt service routine starts, use PUSHAF instruction to save ALU and FLAG register. POPAF instruction is to restore ALU and FLAG register before RETI as below: void Interrupt (void) // Once the interrupt occurs, jump to interrupt service routine { // enter DISGINT status automatically, no more interrupt is accepted PUSHAF; … POPAF; } // RETI will be added automatically. After RETI being executed, ENGINT status will be restored (2) INTEN and INTRQ have no initial values. Please set required value before enabling interrupt function (3) FPPA1 will not be affected by interrupt at all |
|
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 |