| поискавой системы для электроныых деталей |
|
ZAMC4100GA2R датащи(PDF) 89 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
ZAMC4100GA2R датащи(HTML) 89 Page - Renesas Technology Corp |
|
89 / 156 page ![]() ZAMC4100 Datasheet © 2016 Integrated Device Technology, Inc. 89 January 26, 2016 Single ADC Conversion and SPI Pipeline Concept The MCU starts a single ADC conversion by setting bit SCNV=1. When the conversion finishes, bit SCNV is automatically cleared and the interrupt flag ADCRDYIF is set. Since the SCNV and INPSEL bits share a register (ADCCTRL), the MCU starts a single conversion on only the selected channel with one SPI WRITE access. Using the pipelined SPI WRITE/READ feature of the ZAMC4100 SBC, the MCU can pipeline the channel’s measurement and results monitoring. Figure 3.23 shows an example for SPI communication when the MCU is measuring the current of the high-side drivers. See Table 3.50 for details for the SPIDPRT register. Figure 3.23 Pipelined Measurement and Results Reading for the Driver Current CMD = ADCCTRL write MCU MCU SCNV = 1, INPSEL = HS1 SSB à CNVRDYIF ADCRESH = I(HS1) CMD = ADCCTRL write SCNV = 1, INPSEL = HS2 SSB ADCRESH CMD = ADCCTRL write SCNV = 1, INPSEL = HS3 SSB à CNVRDYIF ADCRESH = I(HS2) SPI Bus: Pipelining ADC Conversion and Result Read Settings: Register SPIDPTR = ADCCTRL address Result formatting: truncated 8-bit result SBC ADC Continuous Conversion With the CCNV bit set, the ADC operates in continuous conversion mode at the sampling rate determined by the ADCSR[2:0] bits. After each conversion with formatted data in the results register, the ADC generates the interrupt flag ADCRDYIF (Table 3.39). The CCNVMD bit provides two options affecting the way the result register is handled by the MCU: Bit CCNVMD = 0 The ADC continuous conversion is running and the results registers ADCRESH and ADCRESL (Table 3.50) contain the latest conversion value. If the MCU does not read the value, it is overwritten with the next one. Bit CCNVMD = 1 When the result is available, the ADC continuous conversion is halted until the MCU reads the result value. Reading the conversion result clears the ADCRDYIF flag and the ADC automatically continues with the next conversion. This mode allows the MCU to control the ADC sample rate by controlling the time between two SPI READ accesses. Note: Before enabling continuous conversion with CCNVMD = 1, the MCU should clear the ADCRDYIF bit (by reading the result from previous conversions) in order to start the new ADC conversion. 3.12.8. ADC Result Formatting Options While the SPI bus only handles 8-bit data transfers, the ADC result of 10 bits is split into two registers: ADCRESH and ADCRESL. Prior to this, the ADC digitized data are formatted in accordance with the settings for the bits RESJSTF and RESSIGN of register ADCCONF (Table 3.37). Bit RESJSTF configures left or right result justification as explained in the following sections. |
|
ссылки 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 |