| Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
UPD17708 Datasheet(PDF) 214 Page - NEC |
|
|
|||||||||||||||||||||||||||||
UPD17708 Datasheet(HTML) 214 Page - NEC |
|
214 / 356 page ![]() 214 µPD17704, 17705, 17707, 17708, 17709 15.7 Example of Using D/A Converter An example of a program using the D/A converter is shown below. Example This program increments the duty factor of the PWM1 pin every 1 second. PWM1DATA DAT 0000H INITIAL: INITFLG NOT PWM2SEL, NOT PWM1SEL, NOT PWM0SEL ; (General-purpose port), (General-purpose port), (General-purpose port) INITFLG PWMBIT , NOT PWMCK ; (9-bit counter), (1.125 MHz) LOOP0: BANK1 CLR1 P1B1 BANK0 CLR1 TM3SEL ; Selects D/A converter MOV DBF2, #PWM1DATA SHR 8 AND 0FH MOV DBF1, #PWM1DATA SHR 4 AND 0FH MOV DBF0, #PWM1DATA AND 0FH SET1 PWM1SEL ; Sets PWM1/P1B1 pin in PWM output port mode LOOP1: ; Duty: 0.25/512 to 511.25/512 (PWM output) PUT PWM1R, DBF GET2 TM3RES, TM3EN ; Resets and starts counter Waits for 1 second GET DBF, PWM1R ADD DBF0, #1 ADDC DBF1, #0 ADDC DBF2, #1 SKGE DBF2, #2 BR LOOP1 LOOP2: ; Port outputs high level BANK1 SET1 P1B1 BANK0 CLR1 PWM1SEL ; Sets PWM1/P1B1 pin in general-purpose output port mode Waits for 1 second BR LOOP0 |
|
Enlace URL |
| ¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Enlace a la hoja de datos | Intercambio de Enlaces | Lista de Fabricantes 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 |