SPI DIGITAL INTERFACE CHARACTERISTICS FOR THE ISL26102

Hi friends,

I am using the internal oscillator of the chip, and I don't see output signal on pin 4 (XTALOUT),.

I can see the differential signal on pins 11 (AIN1+) and 12 (AIN1-).

I can access the internal registers (leer y escribir), but when I try to read the 24-bit data, I don't see anything, why?.

This is my code in micropython:

RDY_MISO = machine.Pin(8, machine.Pin.IN)  # Pin compartido RDY/MISO

###############################################################################
# Functions ISL26102
def leer_adc():
   global val
   if RDY_MISO.value() == 1:
       # Verificamos si RDY está activo
       while RDY_MISO.value() == 1:
           val = 0
      datos = spi1.read(3) # Leer tres bytes

      return datos

###############################################################################

data = reg_read(spi1, cs1_ADC, ID)
print("Datos del ID:", data)

data = reg_read(spi1, cs1_ADC, SDO_LPS_R)  # SD0 = 0
print("Datos del SD0:", data)

reg_write(spi1, cs1_ADC, POINTER_W, 0x00) # POINTER = Channel 1

data = reg_read(spi1, cs1_ADC, POINTER_R)
print("Datos del Pointer:", data)

data = reg_read(spi1, cs1_ADC, PGAGAIN_R) # 
print("Datos del PGA GAIN:", data)

data = reg_read(spi1, cs1_ADC, MUX_R)
print("Datos del MUX:", data)

reg_write(spi1, cs1_ADC, OWR_W, 0x0D) # 400 Sps

data = reg_read(spi1, cs1_ADC, OWR_R)
print("Datos del Output Word Rate:", data)

reg_write(spi1, cs1_ADC, CONTROL_W, 0x02) # Perform Continuous Conversions

data = reg_read(spi1, cs1_ADC, CONTROL_R)
print("Datos del Conversion Control:", data)

k = 400

cs1_ADC.value(0)
cs1_ADC.value(1)

while k > 0:
   lectura = leer_adc()
   print("Datos del ADC:", lectura)
   print(k)
   k = k - 1

cs1_ADC.value(0)

reg_write(spi1, cs1_ADC, CONTROL_W, 0x00)   # Stop Conversions

*******************************************************************************************

What I get is the following:

.

.

.

Datos del Conversion Control: b'\x02'

.

.

.

Datos del ADC: None
64
Datos del ADC: None
63
Datos del ADC: None
62
Datos del ADC: None
61
Datos del ADC: b'\x00\x00\x00'
60
Datos del ADC: b'\x00\x00\x00'
59
Datos del ADC: None
58
Datos del ADC: None
57
Datos del ADC: None
56
Datos del ADC: None
55
Datos del ADC: None
54

.

.

.

Thanks,

Parents Reply Children
No Data