• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
  • slider image 488
  • slider image 491
:::


Browsing this Thread:   1 Anonymous Users






Re: 請問AD轉換與PWM問題
#4
版主
版主


查看用戶資訊
照理說 PWM的duty更新與AD無關,你什麼時候變更CCPR1L
PWM就什麼時候改變。
你想要在20KHz內更新 duty 哪你就必須在50us以內轉完你的AD然後立即將值送給CCPR1L, 所以這個時間內連運算時間在內,我想也只能轉換一個AD值吧。三個??除非把PWN 的period 時間值降低。

發表於: 2005/3/4 17:37
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問AD轉換與PWM問題
#3
新會員
新會員


查看用戶資訊
嗯嗯 我看不懂您說的ㄟ
那如果用3個AD是否可以....

發表於: 2005/3/4 16:36
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問AD轉換與PWM問題
#2
管理員
管理員


查看用戶資訊
在 PIC16F877 中 , 若 Timer2 的 Prescaler 設為 1:1 , 則 PWM 會是 20K 的輸出.
但要在以下的操作條件下 : ( 解析度小於 10 bit , Duty = 0 .. 999 )

Timer2 Prescaler = 1:1
System Crystal = 20 Mhz
50ns * 1000 = 50 us = 20K
PER2 = (1000/4)-1 = 249
PER2 = 249

至於 ADC ,若您的 TAD = 2us ( 最少要 1.6 us ), 則轉換時間為 24 us ( 12 TAD ). 再加上切換
Channel 的時間 , 總共要 34 us.
若轉換完 6 個 AD , 則需時 34 * 6 = 204 us.( 5K SPS )
所以您要自己考慮與 PWM Update 之間的關係 , 是否要把 ADC 與 PWM 的 Update 同步或是以 1:N 的
方式來 Update !!

Best Regards,

發表於: 2005/3/1 13:17
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


請問AD轉換與PWM問題
#1
新會員
新會員


查看用戶資訊
請問如果我有6個AD轉換 而我的PWM訊號要是大約20Khz
那麼pic16f877可以辦的到嗎,也就是說我的PWM訊號要等
這6個AD轉換完成後才能輸出 謝謝各位

發表於: 2005/2/26 22:12
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------