UIM2842
5.
It is required Start and Run Reversely on S1 rising edge (when analog input >4V),
therefore, S1RACT<3:0> =0010
6.
Fill the S12CON with above bits, get: S12CON = 0000 0000 0010 1010 (binary)
7.
Add suffix-code 0000 (for S12CON), get:
SCFG = 0000 0000 0010 1010 0000 (binary)= 0x2A0 (hex)= 672 (decimal)
8.
Send instruction: SCF x2A0; or SCF 672;
9.
Calculate the upper limit:(4V/5V)*4095 = 3276 = 0000 1100 1100 1100(binary)
10. Add suffix-code 0011 (for ATCONH), get:
SCFG= 0000 1100 1100 1100 0011 (binary)= 0xCCC3 (hex)= 52419 (decimal)
11. Send instruction SCF xCCC3; or SCF 52419;
12. Calculate the lower limit:(0.6V/5V)*4095 = 491 (value is rounded)= 0000 0001
1110 1011 (binary)
13. Add suffix-code 0010 (for ATCONL), get:
SCFG= 0000 0001 1110 1011 0010 (binary)= 0x1EB2 (hex)= 7858 (decimal)
14. Send instruction: SCF x1EB2; or SCF 7858;
15. Set desired speed, by sending instruction: SPD 5000;
16. Burn parameters into EEPROM, by sending: STO;
17. Send instruction: ENA;
18. The system starts to work continuously.
19. Disconnect the user device, and restart the UIM242 controller, the system will
automatically run.
Page 52
M4220170607EN
UI Robot Technology Co. Ltd.