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

X  

SYNPWM 데이터시트(PDF) 25 Page - Feeling Technology Corp.

부품명 SYNPWM
상세설명  EPROM-Based 8-Bit Microcontroller with 10 bit ADC
PDF  57 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  FEELING [Feeling Technology Corp.]
홈페이지  http://www.feeling-tech.com.tw/
Logo FEELING - Feeling Technology Corp.

SYNPWM 데이터시트(HTML) 25 Page - Feeling Technology Corp.

Back Button SYNPWM Datasheet HTML 21Page - Feeling Technology Corp. SYNPWM Datasheet HTML 22Page - Feeling Technology Corp. SYNPWM Datasheet HTML 23Page - Feeling Technology Corp. SYNPWM Datasheet HTML 24Page - Feeling Technology Corp. SYNPWM Datasheet HTML 25Page - Feeling Technology Corp. SYNPWM Datasheet HTML 26Page - Feeling Technology Corp. SYNPWM Datasheet HTML 27Page - Feeling Technology Corp. SYNPWM Datasheet HTML 28Page - Feeling Technology Corp. SYNPWM Datasheet HTML 29Page - Feeling Technology Corp. Next Button
Zoom Inzoom in Zoom Outzoom out
 25 / 57 page
background image
FM8P73B
Web site: http://www.feeling-tech.com.tw
Rev1.0 Nov 20, 2013
P.25/FM8P73B
FEELING
TECHNOLOGY
2.4
Pulse Width Modulation (PWM)
FM8P73B provides one PWM output shared with TMR1/2, TMR1 becomes the period of PWM1 and TMR2 will be
the duty of PWM1.
If the system frequency is 4MHz, the range of PWM period could be from 0.5us to 8,192ms.
2.4.1
Normal PWM mode
In this mode, it is a general purpose PWM mode. Please refer to the sample program and timing diagram below.
Note : When PWM duty or period needed to be changed, the auto-load control bit of the timer (TxLOAD) must be
cleared before new data writes to latch register. If this bit still set, the data written to latch register would
be load into counter register immediately and cause PWM output anomaly.
Example 2.2: PWM1 Setting (Normal mode)
Address
Code
NA
#include
<8P73B.ASH>
…
//Set PWM1 Period
n
MOVIA
0x61
n+1
MOVAR
T1CON
;Set source: 4MHz IRC (250nS) Prescaler 1:2
n+2
MOVIA
0x80
n+3
MOVAR
PWM1CON
;Set PWM interrupt rate 1:1, output on IOA0
n+4
MOVIA
0x0F
n+5
MOVAR
T1LA
;Set period (0x0F down count to 0x00)
;Period time = 250ns x 16 x 2 = 8uS
//Set PWM1 Duty
n+6
MOVIA
0x61
n+7
MOVAR
T2CON
;Set source 4MHz IRC (250nS) Prescaler 1:2
n+8
MOVIA
0x07
n+9
MOVAR
T2LA
;Set Duty (0x07 down count to 0x00)
;Duty time = 250ns x 8 x2 = 4uS
n+10
BSR
T1CON,T1EN_B
;Start PWM1
n+11
MOVIA
0x81
n+12
MOVAR
INTEN
;Enable global & PWM1 interrupt
n+13
CLRR
INTFLAG
;Clear interrupt flag
Note: The PWM duty (Timer2) must be smaller than PWM period (Timer1).
Figure 2.5: Normal PWM Output Waveform
TMR2 counter:
09
0A
00
01
09
0A
00
01
PWM1P Output:
PWM Duty
PWM P eriod
TMR1 counter:
0C
0D
00
01
0C
0D
0C
0D



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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57


데이터시트 다운로드

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