| Electronic Components Datasheet Search |
|
ESP8266 Datasheet(PDF) 18 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
|
|||||||||||||||||||||||||||||
ESP8266 Datasheet(HTML) 18 Page - ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD. |
|
18 / 117 page ![]() ! 2. GPIO This sentence has two functions: • Write 1 into bit 12 of GPIO_ENABLE_W1TS register. It enables the MTDI output function. • Write 1 into bit 12 of GPIO_OUT_W1TS register. It sets MTDI output to high level. GPIO_OUTPUT_SET(GPIO_ID_PIN(12), 0); This sentence has two functions: • Write 1 into bit 12 of GPIO_ENABLE_W1TS register. It enables the MTDI output function. • Write 1 into bit 12 of GPIO_OUT_W1TC register. It sets MTDI output to low level. 3. Enable the MTDI pull up. PIN_PULLUP_EN(PERIPHS_IO_MUX_MTDI_U); It writes 1 into bit 7 of PERIPHS_IO_MUX_MTDI_U. It enables the MTDI pull up. PIN_PULLUP_DIS(PERIPHS_IO_MUX_MTDI_U); 2.3.2. Parameter Configuration for Scene 2 1. Configure the MTDI to GPIO mode. PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDI_U,FUNC_GPIO12); This sentence writes 1 into bits 4-5 of PERIPHS_IO_MUX_MTDI_U register. When bits 4-5 of PERIPHS_IO_MUX_MTDI_U are set to be 1, the MTDI is configured to the GPIO mode. 2. Configure the MTDI to the input mode. GPIO_DIS_OUTPUT(GPIO_ID_PIN(12)); 3. Get the MTDI pin level status. Uint8 level=0; level=GPIO_INPUT_GET(GPIO_ID_PIN(12)) GPIO_INPUT_GET(GPIO_ID_PIN(12)) gets the status of bit 12 of GPIO_IN register. The value of this register shows the input level of related pin. (Enable the input function of the related pin first to get effective register status) ! Note: To set MTDI output to low level, set the second parameter of this function to be 0. ! Note: To disable the MTDI pull up, use the following sentence: Espressif ! /! 10 104 2017.05 |
|
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 |