전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AN3208 데이터시트(PDF) 13 Page - STMicroelectronics

부품명 AN3208
상세설명  Microstepping motor drive with STM8A and STM8S microcontrollers
PDF  19 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3208 데이터시트(HTML) 13 Page - STMicroelectronics

Back Button AN3208 Datasheet HTML 9Page - STMicroelectronics AN3208 Datasheet HTML 10Page - STMicroelectronics AN3208 Datasheet HTML 11Page - STMicroelectronics AN3208 Datasheet HTML 12Page - STMicroelectronics AN3208 Datasheet HTML 13Page - STMicroelectronics AN3208 Datasheet HTML 14Page - STMicroelectronics AN3208 Datasheet HTML 15Page - STMicroelectronics AN3208 Datasheet HTML 16Page - STMicroelectronics AN3208 Datasheet HTML 17Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 19 page
background image
AN3208
Software
Doc ID 17411 Rev 1
13/19
5
Software
5.1
Preliminary information
The software described in this section has been implemented using a 32-Kbyte
STM8AF6266 device with 32 pins. It performs the complete needle rotation of one stepper
motor (in a forward and back forward direction).
Two PWM channels and two I/O lines are necessary for driving the stepper motor.
Thus, four stepper motors can be driven by STM8AF6266 devices as it is able to provide up
to eight PWM signals.
Note:
Up to four PWM signals are provided by TIM1, two PWM signals are provided by TIMER2
(leaving one channel free ), and another two PWM signal are provided by TIMER3.
5.2
Software description
The software code is based on the STM8A/S standard firmware library available from
http://www.st.com.
The firmware consists of:
●
A main program
●
An interrupt routine.
TIM1 interrupt routine, (TIM1_UPD_OVF_TRG_BRK_IRQHandler()), is used for providing
PWMs signals with correct duty cycles.
5.2.1
Main program
The main program initializes the peripherals (GPIOs, timers, clock CNTRL), the variables,
and the interrupt routines. After initialization, it stays in an endless loop (see Figure 12).



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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