请问下有谁会做这样的process? Q1 是不是把led 1 & led 2 connect to motor 的 + 和 - respectively 而已? 还有,Q2 是不是要写这样的东西来control 它的速度?
Example :
movlw 0x32 ; 2. Set the duty cycle by writing to the
movwf CCPR1L ; 10-bit CCPR1LCP1CON<5:4> value.
bcf CCP1CON, CCP1X ; duty cycle at 50% (800uS)
bcf CCP1CON, CCP1Y
movlw 0x96 ; 2. Set the duty cycle by writing to the
movwf CCPR2L ; 10-bit CCPR2LCP2CON<5:4> value.
bcf CCP2CON, CCP2X ; duty cycle at 50% (800uS)
bcf CCP2CON, CCP2Y
论坛是学习交流的地方,很多人都在看,所以希望网友们发表正确的言论。 “Do what you say, Say what you do." 一个正确的言论, 是怎样问也不会被问倒的。 先看清楚问题后才回复, 就是为什么我们要求网友们把应用写出来, 不然可能很多误解啦, ”以为“啦等等。当看到不明白的, 可以先小心求证, 理解一致后再发言也不迟的。