imisendo_4036
New Member
do anyone know how to set the reference speed in pic???
can anyone xplain???
can anyone xplain???
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
i juz want to make a reference speed for my dc motor controller..
then the reference speed will be compare wif the current speed it running at..
actually i want to maintain my dc motor'speed
can u xplain hot to make it...
is't correct if i declare reference = 8x5/256
i'm using pic16f873....
n i'm using resonator(external)....
I just want to make a reference speed for my DC motor controller.
Then the reference speed will be compared with the current speed it is running at.
Actually i want to maintain my DC motor's speed
Can you explain how to make it?
Is it correct if i declare reference = 8x5/256
Also i am using a PIC16F873 and a external resonator.
;*** PWM initialization
clrf tmr2 ;Clear TMR2 register
movlw b'11111111' ;Max duty (low speed)
movwf ccpr1l ;Set CCPR1L register
bsf status,rp0 ;Change to Bank1
[COLOR="Red"]movlw d'255' ;Period=1638.4usec(610Hz)
movwf pr2 ;Set PR2 register[/COLOR]
bcf status,rp0 ;Change to Bank0
movlw b'000001[COLOR="Red"]10[/COLOR]' ;Pst=1:1 TMR2=ON [COLOR="Red"]Pre=1:16[/COLOR]
movwf t2con ;Set T2CON register
movlw b'00001100' ;CCP1XY=0 CCP1M=1100(PWM)
movwf ccp1con ;Set CCP1CON register