TMC262 DATASHEET (Rev. 2.07 / 2013-FEB-14)
28
7.2 Microstep Table
The internal microstep table maps the sine function from 0° to 90°, and symmetries allow mapping
the sine and cosine functions from 0° to 360° with this table. The angle is encoded as a 10-bit
unsigned integer MSTEP provided by the microstep counter. The size of the increment applied to the
counter while microstepping through this table is controlled by the microstep resolution setting MRES
in the DRVCTRL register. Depending on the DIR input, the microstep counter is increased (DIR=0) or
decreased (DIR=1) by the step size with each STEP active edge. Despite many entries in the last
quarter of the table being equal, the electrical angle continuously changes, because either the sine
wave or cosine wave is in an area, where the current vector changes monotonically from position to
position. Figure 7.2 shows the table. The largest values are 248, which leaves headroom used for
adding an offset.
Entry
0
1
2
3
4
5
6
7
0-31
32-63
49
64-95
96
96-127
138
128-159
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
201
202
203
204
205
206
160-191
207
207
208
209
210
211
212
212
213
214
215
215
216
217
218
218
219
220
220
221
222
223
223
224
225
225
226
226
227
228
228
229
192-223
229
230
231
231
232
232
233
233
234
234
235
235
236
236
237
237
238
238
238
239
239
240
240
240
241
241
241
242
242
242
243
243
224-255
243
244
244
244
244
245
245
245
245
246
246
246
246
246
247
247
247
247
247
247
247
247
248
248
248
248
248
248
248
248
248
248
1
2
4
5
7
51
52
54
55
57
58
60
61
62
64
65
67
68
70
71
73
74
76
77
79
80
81
83
84
86
87
89
90
91
93
94
97
98
140
141
142
143
145
146
147
148
150
151
152
153
154
156
157
158
159
160
161
163
164
165
166
167
168
169
170
172
173
174
175
100
101
103
104
105
107
108
109
111
112
114
115
116
118
119
120
122
123
124
126
127
128
129
131
132
133
135
136
137
8
10
11
13
14
16
17
19
21
22
24
25
27
28
30
31
33
34
36
37
39
40
42
43
45
46
48
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Figure 7.2 Internal microstep table showing the first quarter of the sine wave
www.trinamic.com