I want to implement analog mux to tap into different nodes in my analog ckt. I have to write some logic to control those analog mux's. Can I write it in some FFs since digital pins are free and what type of template should I use since im using both digital and analog pins