| Electronic Components Datasheet Search |
|
UM0097 Datasheet(PDF) 73 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0097 Datasheet(HTML) 73 Page - STMicroelectronics |
|
73 / 229 page ![]() UM0097 Peripheral firmware overview 73/229 GPIO_BitWrite Note: 1 When a port pin value is changed, the other port pins values stay unchanged. 2 The Input Pull Up/Pull Down Configuration may change according to the related input pin value. Example: This example shows how to clear the GPIO port pin 0 and sets the GPIO1 port pin 15. { /* Clear the P0.0 bits */ GPIO_BitWrite(GPIO0, 0, 0); /* Set the P1.15 bits */ GPIO_BitWrite(GPIO1, 15, 1); } Function Name GPIO_BitWrite Function Prototype void GPIO_BitWrite (GPIO_TypeDef *GPIOx, u8 Port_Pin, u8 Bit_val); Behavior Description Sets or clears the selected data port bit Input Parameter 1 GPIOx: selects the port. x can be 0, 1 or 2. Refer to GPIOx values on page 68 for details on the allowed values of this parameter. Input Parameter 2 Port_Pin: Specifies the pin to set or clear the value. Refer to Port pin values on page 68 for more details on this parameter. Input Parameter 3 Bit_Val: the value to be written 0: clear the port pin 1: set the port pin Output Parameter None Return Value None Required preconditions The port pin must be configured as OUT_OD or as OUT_PP. Called Functions None See also GPIO_ByteWrite on page 74, GPIO_WordWrite on page 75 |
|
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 |