Advertisement
Guest User

reg_setup.sh

a guest
May 12th, 2025
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. I2C_ADDR=0x4C # 0x34 >> 1
  2. BUS=1 # usually /dev/i2c-1
  3.  
  4. # Wake-up Register
  5. i2cset -y $BUS $I2C_ADDR 0x02 0x81
  6.  
  7. # Debugged after being 0x31, fixed jitter
  8. i2cset -y $BUS $I2C_ADDR 0x07 0x30
  9.  
  10. i2cset -y $BUS $I2C_ADDR 0x13 0x80
  11. i2cset -y $BUS $I2C_ADDR 0x14 0x48
  12.  
  13. # Setting GPIO1 to be an MCLK input
  14. i2cset -y $BUS $I2C_ADDR 0x21 0xa0
  15.  
  16. # Start the external oscillator
  17. gpioset gpiochip0 16=1
  18.  
  19. # izchakvane 100ms
  20. sleep 0.1
  21.  
  22. # Setting GPIO1 to be an MCLK input
  23. i2cset -y $BUS $I2C_ADDR 0x21 0xa0
  24.  
  25. # Activating Inputs
  26. i2cset -y $BUS $I2C_ADDR 0x73 0xf0
  27.  
  28. # Activating ASI TDM outputs
  29. i2cset -y $BUS $I2C_ADDR 0x74 0xff
  30.  
  31. # Power Supply for ADC, MICBIAS and PLL
  32. i2cset -y $BUS $I2C_ADDR 0x75 0xe0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement