ac-dcd-setup function for easy configuration