Issue link: http://dc.ee.ubm-us.com/i/71850

Don Morgan A Translation Point Initially, the introduction of the digital signal processor (DSP) into motion control was meant to solve problems relating to fl exibility, size, precision, cost, and ease of mainte- nance in the moti on control and dri ve. The DSP made it possible to replace a great deal of expensive and to uchy analog circuitry with more sta- ble and much more malleable digital circuitry. This meant tha t a math engin e became th e brain of the con- troller and the engineer was able- thro ugh software-to accomplish any transfe r fun ction that an analog con- trolle r was capable of doing, and much mo re. Once manufacture rs realized an inte rest in DSP fo r moti on control exis ted , th ey in creased o n-chip capabiliti es and speeds. It is no t uncommo n now to find DSPs with o ne o r mo re a nalog-to-digita l con- ve rte rs on board, as well as en code r counte rs and hardwa re PWM ge ne r- a ti o n. It's possibl e to create a ve ry o phi ti cated mo tio n controll e r using j ust a DSP, some memory, and logic e leme nts. This kind of density is possible because the DSP now performs so many of ule activities that llsed to requi re sepal-ate equipment, boards, processors, or l es. In ulis column, we will examine some of ule oUler duties Ulat the DSP can pel-form while con- trolling ule motor. We will start by re- introducing concepts from trigonome- u]' and show how they allow the DSP to replace such ancillary circui ts as the resolve r-to-digital (RTD) conversio n and to perform sinusoidal encoder interpolation. Trigonometry Figure 1 is an illustration of a pair of right triangles supel-imposed on a cir- cle WiUl ule angle a originating at the center. Trigonomeu-ic fun ction are ratios based on angles. Fo r example, the sine of the angle a is ule ratio of the opposite side (y) to th e hypotenuse on the smaller triangle, while the cosine of the angle a is the DSPs can replace a great deal of analog circuitry, while offering better stability and configurability. Basic trigonometry might give you some ideas. ratio of the adjacent side (x) to the hypotenuse. Another useful ide ntity is th e tan- gent. In the figure, the tangent touch- es the circle at only one point, where the radius meets the unit circl e. The tangent is pel-pendicular to the radius and stretches between this point and where it would meet the hypotenuse if th e hypotenuse were exte nded beyond the unit circle. The tangent of a is the ratio of y to x. It is also possible to write the tan- gent fun ction as: tan a = sin a cosa What we derive from th e forwa rd u-igonometric fun ctions of angles are magnitudes. The inverse fun ctio ns- a rcsin e, a rccosin e, and a rcta ngent-o n th e with Y = sin a and x = cos a. What we recover from ulis fun ction is an angle. These relationships are remarkably useful. Because uley provide such a simple u-anslation point between a lin- ear and rotal], viewpoint, you will find Ulem useful in un to ld engin eering applications; we will see some in this column. A common signal processing application In sign al processing fo r instance, the trigonome tri c functio ns are a sta n- da rd part o f ma ny bilinear tra nsform algori th ms. Digi tal filte rs are based upon finite arithme ti c with a finite sample ra te; th e co rn er freque ncie (3dB po in t frequencies) of digital fil- te rs bear a highly non-linear rela- tionship to continuous tim e corn e r frequencies. We can warp a n a nalog Embedded Systems Programming DECEMBER 2000 165 oth er hand, a re angles. Yo u read ta n-I z (or arctan z), for instance, as "tan-1 z is a n angle whose tange nt is z." In th e fi gure, if we know th e le ngth of the side marked as ta n, we can find a by performing th e a rct- a ngent fun cti on. We may write thi s as:

- December001
- December002
- December003
- December004
- December005
- December006
- December007
- December008
- December009
- December010
- December011
- December012
- December013
- December014
- December015
- December016
- December017
- December018
- December019
- December020
- December021
- December022
- December023
- December024
- December025
- December026
- December027
- December028
- December029
- December030
- December031
- December032
- December033
- December034
- December035
- December036
- December037
- December038
- December039
- December040
- December041
- December042
- December043
- December044
- December045
- December046
- December047
- December048
- December049
- December050
- December051
- December052
- December053
- December054
- December055
- December056
- December057
- December058
- December059
- December060
- December061
- December062
- December063
- December064
- December065
- December066
- December067
- December068
- December069
- December070
- December071
- December072
- December073
- December074
- December075
- December076
- December077
- December078
- December079
- December080
- December081
- December082
- December083
- December084
- December085
- December086
- December087
- December088
- December089
- December090
- December091
- December092
- December093
- December094
- December095
- December096
- December097
- December098
- December099
- December100
- December101
- December102
- December103
- December104
- December105
- December106
- December107
- December108
- December109
- December110
- December111
- December112
- December113
- December114
- December115
- December116
- December117
- December118
- December119
- December120
- December121
- December122
- December123
- December124
- December125
- December126
- December127
- December128
- December129
- December130
- December131
- December132
- December133
- December134
- December135
- December136
- December137
- December138
- December139
- December140
- December141
- December142
- December143
- December144
- December145
- December146
- December147
- December148
- December149
- December150
- December151
- December152
- December153
- December154
- December155
- December156
- December157
- December158
- December159
- December160
- December161
- December162
- December163
- December164
- December165
- December166
- December167
- December168
- December169
- December170
- December171
- December172
- December173
- December174
- December175
- December176
- December177
- December178
- December179
- December180
- December181
- December182
- December183
- December184
- December185
- December186
- December187
- December188
- December189
- December190
- December191
- December192
- December193
- December194
- December195
- December196
- December197
- December198