Re: PIC16F877A之PWM與AD問題
|
||||
---|---|---|---|---|
版主
|
發表於: 2008/10/31 10:06
|
|||
|
PIC16F877A之PWM與AD問題
|
||||
---|---|---|---|---|
初級會員
|
我下列的PWM程式哪裡有問題
請各位大大幫忙 LIST P=16F877A #include p16f877A.inc ORG 0x00 PIC_INIT: Banksel PR2 MOVLW .127 MOVWF PR2 Banksel CCPR1L MOVLW .40 MOVWF CCPR1L BANKSEL TRISC BCF TRISC,2 BANKSEL T2CON MOVLW B'00000100' MOVWF T2CON MOVLW B'00001100' MOVLW CCP1CON MAINLOOP: NOP GOTO MAINLOOP END =========================== 有沒有PWM和AD轉換的基本範例
發表於: 2008/10/31 9:34
|
|||
|