| 전자부품 데이터시트 검색엔진 |
|
HT46R92 데이터시트(PDF) 25 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R92 데이터시트(HTML) 25 Page - Holtek Semiconductor Inc |
|
25 / 61 page ![]() HT46R92 Rev. 1.10 25 November 5, 2008 P W M R e g i s t e r b 7 b 0 A C v a l u e D C v a l u e 7+1 Pulse Width Modulation Mode Register f S Y S / 2 P W M [ P W M ] = 1 0 0 [ P W M ] = 1 0 1 P W M [ P W M ] = 1 0 2 P W M [ P W M ] = 1 0 3 P W M P W M m o d u l a t i o n p e r i o d : 1 2 8 / f S Y S 5 0 / 1 2 8 5 1 / 1 2 8 5 1 / 1 2 8 5 2 / 1 2 8 5 0 / 1 2 8 5 0 / 1 2 8 5 1 / 1 2 8 5 1 / 1 2 8 5 0 / 1 2 8 5 1 / 1 2 8 5 1 / 1 2 8 5 2 / 1 2 8 M o d u l a t i o n c y c l e 0 P W M c y c l e : 2 5 6 / f S Y S M o d u l a t i o n c y c l e 1 M o d u l a t i o n c y c l e 0 7+1 PWM Mode PWM1 output pin is setup as an output. After these two initial steps have been carried out, and of course after the required PWM value has been written into the PWM0 or PWM1 register, writing a ²1² to the corre- sponding PA.4 or PA.5 bit in the PA output data register will enable the PWM data to appear on the pin. Writing a ²0² to the bit will disable the PWM output function and force the output low. In this way, the Port A data output register bits, PA.4 and PA.5, can be used as an on/off control for the PWM function. Note that if the configura- tion options have selected the PWM function, but a ²1² has been written to its corresponding bit in the PAC con- trol register to configure the pin as an input, then the pin can still function as a normal input line, with pull-high re- sistor options. PWM Programming Example The following sample program shows how the PWM outputs are setup and controlled. Before use the corre- sponding PWM output configuration options must first be selected. mov a,64h ; setup PWM0 value of 100 decimal which is 64H mov pwm0,a clr pac.4 ; setup pin PA4 as an output set pa.4 ; pa.4=1; enable the PWM output :: :: clr pa.4 ; disable the PWM output - PA4 will remain low |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| 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 |