1 2 3 4 5 6 7 8 9 10 11 |
void cReset0Ref() { VIA_cntl = (int)0xcc; // enable zero, enable all blank // reset integrators VIA_port_a = 0;// dac = 0 VIA_port_b = 3;// mux=1, disable mux VIA_port_b = 2;// mux=1, enable mux VIA_port_b = 2;// delay VIA_port_b = 1;// disable mux } |