| 数据搜索系统,热门电子元器件搜索 |
|
PS810 数据表(PDF) 21 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PS810 数据表(HTML) 21 Page - Microchip Technology |
|
21 / 46 page ![]() © 2006 Microchip Technology Inc. DS21904C-page 21 PS810 6.0 GPIO CONFIGURATION 6.1 Configuring Inputs and Outputs GPIOs can be set up to act as inputs or outputs that are based on conditions involving battery data parameters, or GPIO levels, compared to constants. This powerful programming model allows for customizing GPIO to set on any possible fuel gauge conditions and reset on any other possible fuel gauge conditions in any groupings. Four parameters define the global behavior of each pin as follows: • GPIOSTATE: defines the state, high or low, the GPIO is in during initialization of the fuel gauge. • GPIODIRECTION: Defines whether the GPIO is an input or an output. • GPIOCONFIG: enables analog functions NTC and VCOIN vs. GPIO (high byte), enables pull-up or pull-down on inputs (low byte). • GPIOPOLARITY: defines active and inactive polarities. All GPIOs will drive high to VBAT, except for IO0 and IO3, which will drive high to VBAT – 1 volt. All GPIOs have pull-ups and pull- downs when configured as inputs, except IO0 and IO3, which only have pull-downs. IO0 is only available in SPS mode and IO3 is only available when not using VCOIN. Similarly, IO2 is only available when not using NTC. TABLE 6-1: GPIO PARAMETERS TABLE 6-2: PARAMETER NUMBER/GPIO NUMBER CORRESPONDENCE Name Definition Bit Description GPIOSTATE Reset State of GPIO Bit number corresponds to GPIO number bit setting: bit (x) = 1: GPIO defaults to high bit (x) = 0: GPIO defaults to low GPIODIRECTION GPIO Input or Output Bit number corresponds to GPIO number bit setting: bit (x) = 1: GPIO is an input bit (x) = 0: GPIO is an output GPIOCONFIG High Byte Analog or GPIO bit (5) = 1: Pin 1 is NTC thermistor input bit (5) = 0: Pin 1 is GPIO bit (4) = 1: Pin 2 is VCOIN coin cell input bit (4) = 0: Pin 2 is GPIO bit (0) = 1: Disable pull-up and pull-down resistors on inputs bit (0) = 0: Enable pull-up and pull-down resistors on inputs GPIOCONFIG Low Byte Pull-up or Pull-down on Inputs If GPIO is configured as input, then: bit (7-2): 1 = Pull-down 0 = Pull-up bit (1-0): 1 = 1.8V communication 0 = TTL communication GPIOPOLARITY Default and Active Polarity Bit number corresponds to GPIO number bit setting: bit (x) = 1: GPIO is default high, active-low bit (x) = 0: GPIO is default low, active-high Parameter Bit # GPIO # 00/SCL 1 SDA/SPS 26 35 44 53 62 71 |
|
链接网址 |
| 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 |