22 OUTPUT_register.sr = 1;
23 ENC_CONST_register.sr = 65536;
35 PWMCONF_register.sr = 0x00050480;
42 GCONF(GCONF_register.sr);
44 THIGH(THIGH_register.sr);
46 VDCMIN(VDCMIN_register.sr);
49 DCCTRL(DCCTRL_register.sr);
58 VSTART(VSTART_register.sr);
61 AMAX(AMAX_register.sr);
62 VMAX(VMAX_register.sr);
63 DMAX(DMAX_register.sr);
65 VSTOP(VSTOP_register.sr);
79 SLAVECONF_register.sr = input;
80 write(SLAVECONF_register.address, SLAVECONF_register.sr);
100 OUTPUT_register.sr = input;
101 write(OUTPUT_register.address, OUTPUT_register.sr);
107 X_COMPARE_register.sr = input;
108 write(X_COMPARE_register.address, X_COMPARE_register.sr);
114 RAMPMODE_register.sr = input;
115 write(RAMPMODE_register.address, RAMPMODE_register.sr);
121 write(XACTUAL_register.address, input);
127 if((int24 >> 23) & 0x01) {
136 VSTART_register.sr = input;
137 write(VSTART_register.address, VSTART_register.sr);
143 A1_register.sr = input;
144 write(A1_register.address, A1_register.sr);
150 V1_register.sr = input;
151 write(V1_register.address, V1_register.sr);
157 AMAX_register.sr = input;
158 write(AMAX_register.address, AMAX_register.sr);
164 VMAX_register.sr = input;
165 write(VMAX_register.address, VMAX_register.sr);
171 DMAX_register.sr = input;
172 write(DMAX_register.address, DMAX_register.sr);
178 D1_register.sr = input;
179 write(D1_register.address, D1_register.sr);
185 if (input == 0 &&
RAMPMODE() == 0)
return;
186 VSTOP_register.sr = input;
187 write(VSTOP_register.address, VSTOP_register.sr);
193 TZEROWAIT_register.sr = input;
194 write(TZEROWAIT_register.address, TZEROWAIT_register.sr);
215 ENC_CONST_register.sr = input;
216 write(ENC_CONST_register.address, ENC_CONST_register.sr);