| Electronic Components Datasheet Search |
|
EKTF6708 Datasheet(PDF) 99 Page - ELAN Microelectronics Corp |
|
|
|||||||||||||||||||||||||||||
EKTF6708 Datasheet(HTML) 99 Page - ELAN Microelectronics Corp |
|
99 / 158 page ![]() eKTF6708 8-Bit Microcontroller IC Product Specification (V1.2) 03.12.2020 89 (This specification is subject to change without prior notice) The AD Conversion is considered completed as determined by: 1. The ADRUN bit of the Bank 0-R3E register is cleared to “0”. 2. The ADSF bit of the Bank 0-R14 register is set to “1”. 3. The ADWK bit of the Bank 0-R10 register is set to “1”. Wakes up from ADC conversion (where it remains in operation during sleep mode). 4. Wake up and execution of the next instruction if the ADIE bit of the Bank 0-R1B is enabled and the “DISI” instruction is executed. 5. Wake up and enter into Interrupt vector if the ADIE bit of Bank 0-R1B is enabled and the “ENI” instruction is executed. 6. Enter into an Interrupt vector if the ADIE bit of the Bank 0-R1B is enabled and the “ENI” instruction is executed. The results are fed into the ADDL and ADDH registers when the conversion is completed. If the ADWK is enabled, the device will wake up. Otherwise, the AD conversion will be shut off, no matter what the status of the ADPD bit is. 6.6.5 Programming Process/Considerations Follow these steps to obtain data from the ADC: 1. Write to the 2 bits (ADE1~0) on the Bank 0-R41(ADER1) register to define the characteristics of P70~P71 (digital I/O, analog channels, or voltage reference pin) 2. Write to the Bank 0-R3E~R41 register to configure the AD module: a) Select the ADC input channel (ADIS1~0) b) Define the AD conversion clock rate (CKR2~0) c) Select the VREFS input source of the ADC d) Set the ADP bit to “1” to begin sampling 3. Set the ADWK bit, if the wake-up function is employed 4. Set the ADIE bit, if the interrupt function is employed 5. Write “ENI” instruction, if the interrupt function is employed 6. Set the ADRUN bit to “1” 7. Write “SLEP” instruction or Polling. 8. Wait for either Wake-up or for the ADRUN bit to be cleared to “0” , and the Status flag (ADSF) is set “1”, or ADC interrupt occurs. 9. Read the ADDL and ADDH conversion data registers. If the ADC input channel changes at this time, the ADDL and ADDH values can be cleared to “0”. 10. Clear the status flag (ADSF). 11. For next conversion, go to Step 1 or Step 2 as required. At least two TAD are required before the next acquisition starts. On the other hand, the timing setting ADRUN = 1 must be later than the timing setting ADPD=1, and the difference between the two timings is also two TAD. |
|
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 |