| Electronic Components Datasheet Search |
|
PFS154 Datasheet(PDF) 43 Page - PADAUK Technology. |
|
|
|||||||||||||||||||||||||||||
PFS154 Datasheet(HTML) 43 Page - PADAUK Technology. |
|
43 / 91 page ![]() PFS154 8bit MTP Type IO Controller ©Copyright 2020, PADAUK Technology Co. Ltd Page 43 of 91 PDK-DS-PFS154_CN_V105 –Jun. 9, 2020 5.12. Comparator One hardware comparator is built inside the PFS154; Fig. 9 shows its hardware diagram. It can compare signals between two pins or with either internal reference voltage Vinternal R or internal band-gap reference voltage. The two signals to be compared, one is the plus input and the other one is the minus input. For the minus input of comparator can be PA3, PA4, Internal band-gap 1.20V, PB6, PB7 or Vinternal R selected by bit [3:1] of gpcc register, and the plus input of comparator can be PA4 or Vinternal R selected by bit 0 of gpcc register. The output result can be enabled to output to PA0 directly, or sampled by Time2 clock (TM2_CLK) which comes from Timer2 module. The output can be also inversed the polarity by bit 4 of gpcc register. The comparator output can be used to request interrupt service. Fig. 9: Hardware diagram of comparator 5.12.1 Internal reference voltage (Vinternal R) The internal reference voltage Vinternal R is built by series resistance to provide different level of reference voltage, bit 4 and bit 5 of gpcs register are used to select the maximum and minimum values of Vinternal R and bit [3:0] of gpcs register are used to select one of the voltage level which is deivided-by-16 from the defined maximum level to minimum level. Fig. 10 to Fig. 13 shows four conditions to have different reference voltage Vinternal R. By setting the gpcs register, the internal reference voltage Vinternal R can be ranged from (1/32)*VDD to (3/4)*VDD. gpcs.5=1 gpcs.5=0 gpcs.4=0 gpcs.4=1 8R R R R R 16 stages VDD 8R 8R MUX gpcs[3:0] 000 001 M 010 U 01 X 100 101 0 MUX 1 + - D F F M U X Timer 2 cloc TM2_CLK X O R gpcc.4 gpcc.5 gpcs.7 To PA0 gpcc.6 gpcc[3:1] PA3/CIN1- PA4/CIN4- Band-gap PB6/CIN2- PB7/CIN3- PA4/CIN+ gpcc.0 V interna R To request interrupt |
|
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 |
| 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 |