5
« Last post by mino-fm on Today at 10:32:06 am »
0xC0 ; CFG2: common & blockwise read
This is for LVDS output you don't use.
Let me show you an init sequence for both channels without PIN_ENA_RSTIDX.
const uint8_t AS6501_init_tab[] = {
0x15, // stop-A, stop-B und ext. REFCLK einschalten
0x85, // stop-A und stop-B auswerten, 1x Auswertung
0x00, // LVDS nicht aktiv
(uint8_t)(REFCLK_AUFLOESUNG), // LSB
(uint8_t)(REFCLK_AUFLOESUNG >> 8 ), // MSB-1
(uint8_t)(REFCLK_AUFLOESUNG >> 16), // MSB
0x00, // LVDS nicht aktiv
0x00, // dto.
0xa1, // interne Konstanten
0x13,
0x00,
0x0a,
0xcc,
0xcc,
0xf1,
0x7d, // bis hierhin
0x04 // CMOS-Pegel Eingänge
};
You always have to read out each FIFO to enable INTERRUPT again. They should be cleared after init.