Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PFS172 Datasheet(PDF) 45 Page - PADAUK Technology.

Part # PFS172
Description  8bit MTP Type MCU with 8-bit ADC
PDF  92 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  PADAUK [PADAUK Technology.]
Direct Link  http://www.padauk.com.tw/
Logo PADAUK - PADAUK Technology.

PFS172 Datasheet(HTML) 45 Page - PADAUK Technology.

Back Button PFS172 Datasheet HTML 41Page - PADAUK Technology. PFS172 Datasheet HTML 42Page - PADAUK Technology. PFS172 Datasheet HTML 43Page - PADAUK Technology. PFS172 Datasheet HTML 44Page - PADAUK Technology. PFS172 Datasheet HTML 45Page - PADAUK Technology. PFS172 Datasheet HTML 46Page - PADAUK Technology. PFS172 Datasheet HTML 47Page - PADAUK Technology. PFS172 Datasheet HTML 48Page - PADAUK Technology. PFS172 Datasheet HTML 49Page - PADAUK Technology. Next Button
Zoom Inzoom in Zoom Outzoom out
 45 / 92 page
background image
PFS172
8bit MTP MCU with 8-bit ADC
©Copyright 2020, PADAUK Technology Co. Ltd
Page 45 of 92
PDK-DS-PFS172-EN_V000-May 8, 2020
5.7.2
Using the Timer2 to generate 8-bit PWM waveform
If 8-bit PWM mode is selected, it should set tm2c[1]=1 and tm2s[7]=0, the frequency and duty cycle of
output waveform can be summarized as below:
Frequency of Output = Y ÷ [256 × S1 × (S2+1) ]
Duty of Output = [( K+1 ) ÷ 256]×100%
Where,
Y = tm2c[7:4] : frequency of selected clock source
K = tm2b[7:0] : bound register in decimal
S1= tm2s[6:5] : pre-scalar (S1= 1, 4, 16, 64)
S2 = tm2s[4:0] : scalar register in decimal (S2= 0 ~ 31)
Example 1:
tm2c = 0b0001_1010, Y=8MHz
tm2b = 0b0111_1111, K=127
tm2s = 0b0_00_00000, S1=1, S2=0
 frequency of output = 8MHz ÷ ( 256 × 1 × (0+1) ) = 31.25KHz
 duty of output = [(127+1) ÷ 256] × 100% = 50%
Example 2:
tm2c = 0b0001_1010, Y=8MHz
tm2b = 0b0111_1111, K=127
tm2s = 0b0_11_11111, S1=64, S2=31
 frequency of output = 8MHz ÷ ( 256 × 64 × (31+1) ) = 15.25Hz
 duty of output = [(127+1) ÷ 256] × 100% = 50%
Example 3:
tm2c = 0b0001_1010, Y=8MHz
tm2b = 0b1111_1111, K=255
tm2s = 0b0_00_00000, S1=1, S2=0
 PWM output keep high
 duty of output = [(255+1) ÷ 256] × 100% = 100%
Example 4:
tm2c = 0b0001_1010, Y=8MHz
tm2b = 0b0000_1001, K = 9
tm2s = 0b0_00_00000, S1=1, S2=0
 frequency of output = 8MHz ÷ ( 256 × 1 × (0+1) ) = 31.25KHz
 duty of output = [(9+1) ÷ 256] × 100% = 3.9%



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com