| поискавой системы для электроныых деталей |
|
ADPD107 датащи(PDF) 35 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADPD107 датащи(HTML) 35 Page - Analog Devices |
|
35 / 66 page ![]() Data Sheet ADPD105/ADPD106/ADPD107 Rev. A | Page 35 of 66 Calibrating the 32 kHz Clock Calibrating the 32 kHz clock also calibrates items associated with the output data rate. Calibration of this clock is important for applications where an accurate data rate is important, such as heart rate measurements. To calibrate the 32 kHz clock, 1. Set the sampling frequency to the highest the system can handle, such as 2000 Hz. Because the 32 kHz clock controls sample timing, its frequency is readily accessible via the GPIO0 pin. Configure the interrupt by writing the appropriate value to the bits in Register 0x02 and set the interrupt to occur at the sampling frequency by writing 0 to Register 0x01, Bit 5 or Bit 6. Monitor the GPIO0 pin. The interrupt frequency must match the set sample frequency. 2. If the monitored interrupt frequency is less than the set sampling frequency, increase the CLK32K_ADJUST bit (Register 0x4B, Bits[5:0]). If the monitored interrupt frequency is larger than the set sampling frequency, decrease the CLK32K_ADJUST bits. 3. Repeat Step b until the monitored interrupt signal frequency is close enough to the set sampling frequency. Calibrating the 32 MHz Clock Calibrating the 32 MHz clock also calibrates items associated with the fine timing within a sample period, such as LED pulse width and spacing, assuming that the 32 kHz clock has been calibrated. To calibrate the 32 MHz clock, 1. Write 0x1 to Register 0x5F, Bit 0. 2. Enable the CLK_RATIO calculation by writing 0x1 to Register 0x50, Bit 5. This function counts the number of 32 MHz clock cycles in two cycles of the 32 kHz clock. With this function enabled, this cycle value is stored in Register 0x0A, Bits[11:0] and nominally this ratio is 2000 (0x7D0). 3. Calculate the 32 MHz clock error as follows: Clock Error = 32 MHz × (1 − CLK_RATIO/2000) 4. Adjust the frequency by setting Bits[7:0] in Register 0x4D per the following equation: CLK32M_ADJUST = Clock Error/109 kHz 5. Write 0x0 to Register 0x50, Bit 5 to reset the CLK_RATIO function. Repeat Step 2 through Step 5 until the desired accuracy is achieved. Write 0x0 to Register 0x5F, Bit 0. Also, set the GPIO0 pin back to the mode desired for normal operation. OPTIONAL TIMING SIGNALS AVAILABLE ON GPIO0 AND GPIO1 The ADPD105/ADPD106/ADPD107 provide a number of different timing signals, available via the GPIO0 and GPIO1 pins, to enable ease of system synchronization and flexible triggering options. Each of the GPIOx pins can be configured as an open- drain output if they are to share the bus with other drivers, or they can be configured to always drive the bus. Both outputs also have polarity control in situations where a timing signal must be inverted from the default. Table 23. GPIOx Control Settings Pin Name Register[Bits] Setting Description GPIO0 0x02[0] 0: polarity active high 1: polarity active low 0x02[1] 0: always drives the bus 1: drives the bus when asserted 0x02[2] 0: disables the GPIO0 pin drive 1: enables the GPIO0 pin drive GPIO1 0x02[8] 0: polarity active high 1: polarity active low 0x02[9] 0: always drives the bus 1: drives the bus when asserted 0x4F[6] 0: disables the GPIO1 pin drive 1: enables the GPIO1 pin drive The various available timing signals are controlled by the settings in Register 0x0B. Bits[12:8] of this register control the timing signals available on GPIO1, and Bits[4:0] control the timing signals available on GPIO0. All of the timing signals described in this data sheet are available on either (or both) of the GPIO0 and GPIO1 pins. Timing diagrams are shown in Figure 41 and Figure 42. The time slot settings used to generate the timing diagrams are described in Table 24. Table 24. ADPD105/ADPD106/ADPD107 Settings Used for Timing Diagrams Shown in Figure 41 and Figure 42 Register Setting Description 0x31 0x0118 Time Slot A: 1 LED pulse 0x36 0x0418 Time Slot B: 4 LED pulses 0x15 0x0120 Time Slot A decimation = 4, Time Slot B decimation = 2 |
|
ссылки 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 |