Re: PWM
|
||||
---|---|---|---|---|
版主
|
基本上將AD最高的8位元取出後直接傳給PR2來設定Period,然後將AD值又轉一位後傳給 CCPR1L 設定Duty
發表於: 2006/10/25 10:46
|
|||
|
Re: PWM
|
||||
---|---|---|---|---|
高級會員
|
把AD值 經過查表或是轉換 在放在一各暫存器
而這各暫存器就是PWM的DUTY CYCLE 的寬度 或 而這各暫存器就是PWM的PERIOD 的寬度
發表於: 2006/10/22 16:56
|
|||
|
PWM
|
||||
---|---|---|---|---|
新會員
|
請問一下我要如何寫一個程式能讓pwm的頻率因為AD值的輸入不同來改變呢?
發表於: 2006/10/22 15:04
|
|||
|