поискавой системы для электроныых деталей |
|
HT48R068B датащи(PDF) 64 Page - Holtek Semiconductor Inc |
|
HT48R068B датащи(HTML) 64 Page - Holtek Semiconductor Inc |
64 / 118 page Rev. 1.30 64 �e���a�� 0�� �01� Rev. 1.30 6� �e���a�� 0�� �01� HT48R068B/HT48R069B Enhanced I/O 8-Bit OTP MCU HT48R068B/HT48R069B Enhanced I/O 8-Bit OTP MCU Thefollowingdiagramillustratesthewaveformsassociatedwiththe7+1modePWMoperation.It isimportanttonotehowthesinglePWMcycleissubdividedinto2individualmodulationcycles, numbered0and1andhowtheACvalueisrelatedtothePWMvalue. 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 Output Control ThePWMoutputsarepin-sharedwiththeI/OpinsPA4/PB5,PC2,PC3andPD1.Tooperateasa PWMoutputandnotasanI/Opin,thecorrectbitsmustbesetintheCTRL0andCTRL2register. AzerovaluemustalsobewrittentothecorrespondingbitintheI/OportcontrolregisterPAC.4, PCC.2andPCC.3toensurethatthecorrespondingPWMoutputpinissetupasanoutput.After thesetwoinitialstepshavebeencarriedout,andofcourseaftertherequiredPWMvaluehasbeen writtenintothePWMnregister,writingahighvaluetothecorrespondingbitintheoutputdata registerPA.4,PC.2andPC.3willenablethePWMdatatoappearonthepin.Writingazerovalue willdisablethePWMoutputfunctionandforcetheoutputlow.Inthisway,thePortdataoutput registerscanbeusedasanon/offcontrolforthePWMfunction.NotethatiftheCTRL0andCTRL2 registershaveselectedthePWMfunction,butahighvaluehasbeenwrittentoitscorrespondingbit inthePAC/PBC,PCCorPDCcontrolregistertoconfigurethepinasaninput,thenthepincanstill functionasanormalinputline,withpull-highresistoroptions. 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 |
Аналогичный номер детали - HT48R068B_15 |
|
Аналогичное описание - HT48R068B_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 |