| Electronic Components Datasheet Search |
|
TC35680FSG Datasheet(PDF) 38 Page - Toshiba Semiconductor |
|
|
|||||||||||||||||||||||||||||
TC35680FSG Datasheet(HTML) 38 Page - Toshiba Semiconductor |
|
38 / 91 page ![]() TC35680FSG-002/TC35681FSG-002 38 2019-04-04 GPIO Pin Setting The following settings of each GPIO pin can be done by software. And they are also held after this device enters a low power mode. The setting method of the GPIO function is shown in Table 4-3. Some GPIO pins have multiplexed functions. For details, refer to Section 2.4. The general-purpose I/O (GPIO) function can be assigned by setting the function 0. The input or output function can be assigned to a GPIO pin. The input of each GPIO can be enabled or disabled. When another multiplexed function is used and it is an input function, the input standby of the pin should be released because the input standby function fixes the internal input signal to Low level. The connection or disconnection of a built-in pull-up resistor can be selected. And the connection or disconnection of a built-in pull-down resistor can be also selected. The initial value of each pin is shown in Table 2-3. The pull-up resistor and the pull-down resistor should not be simultaneously connected to the same pin. The pull-up resistor and the pull-down resistor are disconnected regardless of the settings when the pin is set to an output one. When the output is disabled, the last settings are restored. The drive current can be selected from these options: 1 mA, 1.5 mA, 2 mA, and 4 mA. An external interrupt request can be accepted when the GDIO pin is set to an input one. The detection of the interrupt request can be selected from an edge detection (a rising edge, a falling edge, or both edges) and a level detection (High level or Low level) per pin. And no detection can be also selected. Table 4-3 Setting method of GPIO Setting Setting method HCI command API Register Input or Output setting HCI_M2_BTL_READ_MEMORY reads the data and HCI_M2_BTL_WRITE_MEMORY sets the data. SYS_API_SetGpioEn GPIO_OUT_EN (output setting) GPIO_OUT_EN_WRAP (output setting) Input standby — PMU_IOSTANDBYX Pull-up resistor and Pull-down resistor settings SYS_API_SetGpioCfgReg GPIO_CFG Drive current setting SYS_API_SetGpioCfgReg GPIO_CFG Interrupt setting SYS_API_SetGpioCfgReg GPIO_CFG Input data read — GPIO_MON and GPIO_MON_WRAP Output data setting — GPIO_OUT and GPIO_OUT_WRAP General-purpose Input Function The general-purpose input of a GPIO pin is enabled when the function 0 in Table 2-2 is assigned to the pin and the input standby is released according to the setting in Table 4-3. When the input standby is set, the general-purpose input is disabled. The internal input data is fixed to Low level. The input standby setting is held after this device enters a low power mode. When a GPIO pin is used as a CMOS input, the fixed level of the external input signal should be High level or Low level. If the input standby is set to the pin, the pin does not work as the CMOS input. When the pin is open or when the pin is used for the ADC function, the input standby of the pin should be set. When both the input standby and the output disable are set, the input and output of the GPIO pin are disabled (“Disable” state). When, additionally, the built-in pull-up and pull-down resistors are disconnected, the pin becomes Hi-Z. The connection or disconnection of the built-in pull-up and pull-down resistors is set by the API or the corresponding register in Table 4-3. The input data can be read using “Input data read” method described in Table 4-3. |
|
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 |