K
kvrajasekar
Guest
Salve,
Il mio programma di ritardo morti banda non è working.I sto usando 16f716 in modalità PWM (config mezzo ponte). Ho introdotto un ritardo morti banda di 6US ma io non sono in grado di tracciare il ritardo nella MPLAB simulator.I provato con più ritardo, anche i didnt get.
please help me dove sto facendo male, ecco la mia code.Fosc-20MHZ, Fpwm-20KHZconfig bits: __CONFIG _PWRTE_ON & _XT_OSC & _WDT_OFF; switch di configurazione
Codice:
bsf STATUS, RP0; BANK1
errorlevel 1, -302; Non avvisarmi bancari 1
b'00001111 movlw '; Definizione di input e output pins
movwf TRISA; Scrivi al registro TRISA
b'00010001 movlw '; Definizione di input e output pins
movwf TRISB; Scrivi a registrare 1 TRISB ,0-input-output
movlw b'10000111 '; TMR0, prescaler-8
movwf OPTION_REG
movlw 0x00
movwf ADCON1
clrf PIE1
bcf STATUS, RP0; Bank0clrf PORTA; potra, PortB inizialmente impostato su Bassoclrf PORTB
clrf PIR1movlw b'10001100 '
movwf CCP1CONclrf CCPR1L
movlw 0xff
movwf PR2
movlw D'30 '
movwf PWM1CON
clrf T2CON
clrf test
BSF T2CON, TMR2ON
Il mio programma di ritardo morti banda non è working.I sto usando 16f716 in modalità PWM (config mezzo ponte). Ho introdotto un ritardo morti banda di 6US ma io non sono in grado di tracciare il ritardo nella MPLAB simulator.I provato con più ritardo, anche i didnt get.
please help me dove sto facendo male, ecco la mia code.Fosc-20MHZ, Fpwm-20KHZconfig bits: __CONFIG _PWRTE_ON & _XT_OSC & _WDT_OFF; switch di configurazione
Codice:
bsf STATUS, RP0; BANK1
errorlevel 1, -302; Non avvisarmi bancari 1
b'00001111 movlw '; Definizione di input e output pins
movwf TRISA; Scrivi al registro TRISA
b'00010001 movlw '; Definizione di input e output pins
movwf TRISB; Scrivi a registrare 1 TRISB ,0-input-output
movlw b'10000111 '; TMR0, prescaler-8
movwf OPTION_REG
movlw 0x00
movwf ADCON1
clrf PIE1
bcf STATUS, RP0; Bank0clrf PORTA; potra, PortB inizialmente impostato su Bassoclrf PORTB
clrf PIR1movlw b'10001100 '
movwf CCP1CONclrf CCPR1L
movlw 0xff
movwf PR2
movlw D'30 '
movwf PWM1CON
clrf T2CON
clrf test
BSF T2CON, TMR2ON