• slider image 442
  • slider image 477
  • slider image 479
  • slider image 480
  • slider image 481
  • slider image 482
:::


Browsing this Thread:   1 Anonymous Users






沒有CCP去捕捉PWM
#1
新會員
新會員


查看用戶資訊
Your personal karma 0 does not reach the required karma 10.
Please try later.

發表於: 2021/3/2 16:48
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 沒有CCP去捕捉PWM
#2
版主
版主


查看用戶資訊
雖然這兩顆元件都沒有 CPP Module 可以做 Capture 的功能。但這兩個元件都有強大的 Timer1 + Gate Time 的功能。

可以用 Gate Time 做 PWM 的 Duty 與 Period 的量測。參考一下附圖 (PIC12F1501 Data Sheet, Page: 150)。t1g_in 做為 PWM 訊號輸入腳,可以先用 "TIMER1 GATE ENABLE MODE" 先量出 PWM Hi Duty 的 Clock 計數後,再換成 "TIMER1 GATE TOGGLE MODE" 來測量 PWM 的周期的 Clock 計數值。再將這 Duty and Period 的計數值乘上 Clock 的時間即可算出 PWM 的比值及頻率。

Attach file:



jpg  擷取.JPG (54.60 KB)
16_603ef7a33decd.jpg 535X634 px

發表於: 2021/3/3 10:42
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... ]

教育訓練中心

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