Go Down

Topic: MLX90393 - Changing OSR and DIG_FILT (Read 85 times) previous topic - next topic


Hello, guys.
I'm having some trouble setting a new value to the OverSampling and Digital_Filtering of the magnetic sensor MLX90393.
I'm following the original document from adafruit, where I get the following table(Hall_Config, in the attach).
I'm with the memory map (in the attach too), but I can't understand how to write directly to the memory.

Following a code, in this link, there is the following part:

Code: [Select]
uint8_t MagConfig[] = {0x60,0x00,0x1f,0x08};  // 'set the filtering in reg 2 Dig_Filt and OSR = 2, res = 1

How is this setting Dig_Filt and OSR as 2?


Go Up