Specification Sheet

Table Of Contents
WT901 | Datasheet v20-0702 | http://wiki.wit-motion.com/english
- 28 -
5.2.22 Set port D2 mode
0xFF
0xAA
0x0e
D2MODE
0x00
D2MODE
0x00Analog Inputdefault
0x01Digital Input
0x02Digital Output high
0x03Digital Output low
0x04PWM Output
5.2.23 Set port D3 mode
0xFF
0xAA
0x0e
D3MODE
0x00
D3MODE
0x00Analog Inputdefault
0x01Digital Input
0x02Digital Output high
0x03Digital Output low
0x04PWM Output
5.2.24 Set the PWM width of Port D0
0xFF
0xAA
0x12
D0PWMHL
D0PWMHH
D0PWMHLthe PWM width of Port D0 low byte
D0PWMHHthe PWM width of Port D0 high byte
D0PWMH = (D0PWMHH<<8) | D0PWMHL
Note: The unit of PWM high-level width and period is us, such as high-level
width is 1500us, just set D0PWMH 1500.