Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN1495 Datasheet(PDF) 22 Page - STMicroelectronics

Part # AN1495
Description  Microstepping stepper motor drive
PDF  25 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1495 Datasheet(HTML) 22 Page - STMicroelectronics

Back Button AN1495 Datasheet HTML 17Page - STMicroelectronics AN1495 Datasheet HTML 18Page - STMicroelectronics AN1495 Datasheet HTML 19Page - STMicroelectronics AN1495 Datasheet HTML 20Page - STMicroelectronics AN1495 Datasheet HTML 21Page - STMicroelectronics AN1495 Datasheet HTML 22Page - STMicroelectronics AN1495 Datasheet HTML 23Page - STMicroelectronics AN1495 Datasheet HTML 24Page - STMicroelectronics AN1495 Datasheet HTML 25Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 22 / 25 page
background image
Code
AN1495
22/25
Doc ID 8700 Rev 3
ld a, (microtable2, x)
ld y, torquescaler
mul y, a
ld TBOC1LR, y
jp pwmend
; end of routine for forward step
doclockrev:
;direction is reverse
dec stepstate
jrne rev002
bres PBDR, #5
; activate reset to maintain sync
rev002:
ld a, stepstate
and a, #%00011111
ld x,a
inc a
; 7 or 8 =>> 8 or 9
and a, #%00001110
cp a, #8
; 8 or 9
jrne rev001
bset PBDR,#4
; rising edge for clock
rev001:
ld a,(microtable1,x)
ld y,torquescaler
mul y,a
ld TAOC1LR, y
ld a, (microtable2,x)
ld y, torquescaler
mul y, a
ld TBOC1LR, y
jp pwmend
; The lookup table holds the magnitude of a sine wave normalized to a peak
value of 256.
; Each line of 16 entries represents 90 degrees or one full step (thus 16
microsteps per
step).
; Table reference labels at 45 degrees (microtable1) and 135 degrees
(microtable2) are
provided for convenience
; to allow easy lookup of two waveforms with 90 degree phase relationship.
; Since only five bits (0 to 31) of the stepstate table index are used,
references using
microtable1 roll over through
; just the first two lines of the table while references using microtable2
stay within



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com