I have a similar issue I need to read the analog channel and the digital channel to determine the powerup behavior of my micro controller.
the Idea is to monitor the 3.3V LDO output and a GPIO to determine the reset timings.
I can get the analog signal without any problem, however I cannot get the the digital signal correctly using the example advised by attila.
the analog and digital signal seem completely out of sync. what am I missing?