merged pru adc example from Youngtae Jo; not work yet