Hello All,
I'm struggling with a new design using the AS6501 chip. The nasty thing is I don't get an interrupt signal back from the chip after having started the measurement. I guess there is something wrong with the initial setup of the chip but the longer the more I'm getting lost.
My goal is to count the time distance between a start pulse on stopA and a stop pulse stopB.
The setup I use is as follows:
0b10010101 ; 0x95 CFG0: stop A&B active, LVDS disabled, REFCLK active, REFCLK index reset enabled
0b00010101 ; 0x15 CFG1: stop A&B processed, pulse distance, no high resolution
0xC0 ; CFG2: common & blockwise read
0xA0,0x86,0x01 ; CFG3,CFG4,CFG5 REFCLK_DIVISIONS (100000) for 10MHz refclk
0x00,0x00 ; CFG6,CFG7 LVDS pattern OFF
0xA1,0x13,0x00,0x0A,0xCC,0xCC,0xF1,0x7D ; CFG8 to CFG15 Fixed values
0x04 ; CFG16 CMOS level input
At my humble opinion this should be correct for an SPI only communication with this chip. The results I obtain for both channels (if I skip the interrupt) are for refIndxA and stopA 0x00FFFFFF and for refIndxB and stopB 0x00747474 regardless the pulse distance coming from an AFG. Anyone an idea what I did wrong here?