| 数据搜索系统,热门电子元器件搜索 |
|
PS810 数据表(PDF) 22 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PS810 数据表(HTML) 22 Page - Microchip Technology |
|
22 / 46 page ![]() PS810 DS21904C-page 22 © 2006 Microchip Technology Inc. 6.2 Configuring Output Functions Powerful and flexible programming protocols allow GPIO configured as outputs to be defined with complex functions based on battery data. Virtually all information about the battery can be used in a multiple level trigger function or Reset function. This programming is accom- plished using Microchip programming development tool, PowerTool™ 800. GPIO output functions can be based on the following information functions: • All battery data functions, such as voltage, current, battery status, etc. • The high or low level of any other GPIO • The miscellaneous flags byte which contains the following information: - bit 0: Charge started - bit 1: Discharge started - bit 2: Charge increasing - bit 3: POR detected - bit 4: Unused - bit 5: Wake from Sleep - bit 6: In Low-Voltage Sleep mode - bit 7: In Shelf-Sleep mode - bit 8: In Bus Sleep mode Once an argument is selected from above, an operator is selected to compare it to a constant. The operators are >, <, =, AND and NOR. The latter two are used to compare individual bits in a bit map. For example, AND a bit map against the operand 00000000 00000010 will be true if bit one is a ‘1’. NOR a bit map against the operand 11111111 11111101 will be true if bit one is a ‘0’. An example of a condition is : Voltage < 3200 This condition is true if the battery data of voltage is less than 3200 mV. Condition groups can be created by ANDing and ORing individual conditions together. An example condition group is: (Voltage < 3200) AND (Current > 100) OR (Temperature > 60) AND (Current > 200) Because of precedence the equation would be interpreted: ((Voltage < 3200) AND (Current > 100)) OR ((Temperature > 60) AND (Current > 200)) This entire condition group can be programmed to activate a single GPIO. A Reset condition can then be assigned to reset the GPIO if it had triggered as a result of its trigger condition group. Example Reset condition group: (Voltage > 3200) OR (Current = 0) Furthermore, multiple trigger condition groups, each with their own individual Reset condition groups, can be assigned to a single GPIO. This is all accomplished by programming with PowerTool™ 800. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |