| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
HT46R0664 bảng dữ liệu(PDF) 55 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT46R0664 bảng dữ liệu(HTML) 55 Page - Holtek Semiconductor Inc |
|
55 / 92 page ![]() Rev. 1.00 54 ����st 1�� �011 Rev. 1.00 55 ����st 1�� �011 HT46R0664 Enhanced A/D+LCD 8-Bit OTP MCU Parameter AC(0~1) DC (Duty Cycle) Mod�lation cycle i (i=0~1) i<�C (DC+1)/1�8 i>=�C DC/1�8 The following diagram illustrates the waveforms associated with the 7+1 mode PWM operation. It is important to note how the single PWM cycle is subdivided into 2 individual modulation cycles, numbered 0 and 1 and how the AC value is related to the PWM value. f SY S /2 PW M [P WM ] =1 00 [P WM ] =1 01 PW M [P WM ] =1 02 PW M [P WM ] =1 03 PW M PW M mo du la ti on p er i od : 128/ f SY S 50 /1 28 51 /1 28 51 /1 28 52 /1 28 50 /1 28 50 /1 28 51 /1 28 51 /1 28 50 /1 28 51 /1 28 51 /1 28 52 /1 28 M odu la ti on cycl e 0 PW M cycl e : 256 /f SY S M odu la ti on cycl e 1 M odu la ti on cycl e 0 7+1 PWM Mode PW M Re gi st er (7 +1 ) Mo de b7 b0 AC va lu e DC va lu e PWM Register for 7+1 Mode PWM Output Control The PWM outputs are pin-shared with the I/O pins PA0 and PB0. To operate as a PWM output and not as an I/O pin, the correct bits must be set in the CTRL0 register. A zero value must also be written to the corresponding bit in the I/O port control register PAC.0 and PBC.0 to ensure that the corresponding PWM 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 PWMn register, writing a high value to the corresponding bit in the output data register PA.0 and PB.0 will enable the PWM data to appear on the pin. Writing a zero value will disable the PWM output function and force the output low. In this way, the Port data output registers can be used as an on/off control for the PWM function. Note that if the CTRL0 register has selected the PWM function, but a high value has been written to its corresponding bit in the PAC or PBC control register to configure the pin as an input, then the pin can still function as a normal input line, with pull-high resistor options. PWM Programming Example mov a,64h ; setup PWM value of decimal 100 mov pwm0,a set ctrl0.5 ; select the 7+1 PWM mode set ctrl0.3 ; select pin PA0 to have a PWM function clr pac.0 ; setup pin PA0 as an output set pa.0 ; enable the PWM output : : clr pa.0 ; disable the PWM output_ pin PA0 forced low |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |