Re: 請問各位前輩有關於18F4431的問題
|
||||
---|---|---|---|---|
新會員
|
Dear,
kindly regarding assigning the freq of Crystal ?? where u set this 16 Mhz, I will Appreciate much if you could post this code with English comments, have a good day..
發表於: 2008/12/22 19:06
|
|||
|
Re: 請問各位前輩有關於18F4431的問題
|
||||
---|---|---|---|---|
新會員
|
謝謝calvinho大哥...
發表於: 2005/12/8 21:48
|
|||
|
Re: 請問各位前輩有關於18F4431的問題
|
||||
---|---|---|---|---|
管理員
|
你好 :
以下的範例是由 PIC18F4431 產生 20K PWM 信號的範例. 用 C18 寫成的啦 ! 但是改成組合與言應該不難. PWM0/PWM1 固定產生 50 % 的 Duty , PWM2/PWM3 則為 75 %. 重點是 PWM4/PWM5 , 它的 Duty Cycle 會由 0% to 100% 變化. 主要就是要 Demo 如何改變 PWM Duty 啦 ::
// Purpose of this demo *
發表於: 2005/12/5 13:49
|
|||
|
請問各位前輩有關於18F4431的問題
|
||||
---|---|---|---|---|
新會員
|
各位前輩大家好:我用18F4431去做無刷馬達的控制,我有參考
網站上提供的18F4431的PWM範例程式去做。但我想要將PWM的週期改為20KHZ的時候總是無法達到,而且PWM的開度比例也無法去做調整,我找DATASHEET上的PWM頻率計算公式好像有將一個參數沒有定義,所以無法將實際控制頻率的暫存器值計算出來。我現在是用PWM0~PWM2這三個通道去做輸出,外部石英震盪頻率16MHZ。我想請問各位前輩在需求20KHZ的頻率的PWM訊號下,我需要去注意些什麼,在PWM開度的調整中我要去對應哪些暫存器的數據去做調整。謝謝各位前輩..
發表於: 2005/12/1 22:17
|
|||
|