поискавой системы для электроныых деталей |
|
HT46R068B датащи(PDF) 66 Page - Holtek Semiconductor Inc |
|
HT46R068B датащи(HTML) 66 Page - Holtek Semiconductor Inc |
66 / 135 page Rev. 1.50 66 �e���a�� 05� �015 Rev. 1.50 67 �e���a�� 05� �015 HT46R068B/HT46R069B Enhanced A/D 8-Bit OTP MCU HT46R068B/HT46R069B Enhanced A/D 8-Bit OTP MCU PWM Output Control ThePWMoutputsarepin-sharedwiththeI/OpinsPA4,PC2andPC3.TooperateasaPWMoutput andnotasanI/Opin,thecorrectbitsmustbesetintheCTRL0andCTRL2register.Azerovalue mustalsobewrittentothecorrespondingbitintheI/OportcontrolregisterPAC.4,PCC.2and PCC.3toensurethatthecorrespondingPWMoutputpinissetupasanoutput.Afterthesetwoinitial stepshavebeencarriedout,andofcourseaftertherequiredPWMvaluehasbeenwrittenintothe PWMnregister,writingahighvaluetothecorrespondingbitintheoutputdataregisterPA.4,PC.2 andPC.3willenablethePWMdatatoappearonthepin.WritingazerovaluewilldisablethePWM outputfunctionandforcetheoutputlow.Inthisway,thePortdataoutputregisterscanbeusedasan on/offcontrolforthePWMfunction.NotethatiftheCTRL0andCTRL2registershaveselectedthe PWMfunction,butahighvaluehasbeenwrittentoitscorrespondingbitinthePACorPCCcontrol registertoconfigurethepinasaninput,thenthepincanstillfunctionasanormalinputline,with pull-highresistoroptions. 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 m odul at i on per i od : 128 /f SY S 50/ 12 8 51/ 12 8 51/ 12 8 52/ 12 8 50/ 12 8 50/ 12 8 51/ 12 8 51/ 12 8 50/ 12 8 51/ 12 8 51/ 12 8 52/ 12 8 M odul at i on cycl e 0 PW M cycl e : 256/ f SY S M odul at i on cycl e 1 M odul at i on cycl e 0 7+1 PWM Mode PW M Re gi st er ( 7+ 1) M od e b7 b0 AC va lu e DC va lu e PWM Register for 7+1 Mode PWM Programming Example The following sample program shows how the PWM0 output is setup and controlled. 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 PA4 to have a PWM function clr pac.4 ; setup pin PA4 as an output set pa.4 ; enable the PWM output : : clr pa.4 ; disable the PWM output_ pin ; PA4 forced low |
Аналогичный номер детали - HT46R068B_15 |
|
Аналогичное описание - HT46R068B_15 |
|
|
ссылки URL |
Конфиденциальность |
ALLDATASHEETRU.COM |
Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | обмен ссыками | поиск по производителю 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 |