| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
PM0222 bảng dữ liệu(PDF) 12 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0222 bảng dữ liệu(HTML) 12 Page - STMicroelectronics |
|
12 / 33 page ![]() GPIO / IOs management PM0222 12/33 DocID025476 Rev 1 5 GPIO / IOs management Brain embeds 11 I/Os with a specific muxing: three different modes for each I/O (see Table 5). The purpose of this chapter is to explain how to manage these modes. All GPIO registers are described in a structure defined in the Brain header file (.h) provided by STMicroelectronics. The GPIO registers are available at the following address in the memory map: GPIO APB base address: 0xA000_0000 5.1 I/O configuration Before using the examples provided below, GPIO module has to be enabled on the CRMU side (see Section 3.1: Peripheral clock gating). 5.1.1 I/O mode To select a mode for an I/O, the GPIO_MODE register is used (see Figure 1: GPIO_MODE configuration). Two bits are used to configure the I/O. After a reset, serial mode 0 (see Table 5: GPIO modes) is the default configuration. Table 5. GPIO modes Ref. Serial mode 0 Serial mode 1 GPIO port mode GPIO_MODE_W = “00” GPIO_MODE_W = “01” GPIO_MODE_W = “10” Signal Type Signal Type Signal Type IO0 SW_TDIO/J TAG TMS I/O UART_CTS I GPIO0 I/O IO1 SW_TCK/JT AG TCK I UART_RTS O GPIO1 I/O IO2 I2C2_SCL I UART_TXD O GPIO2 I/O IO3(1) 1. In serial mode 0, IO3 must be configured as an I2C mode pad (i.e. I2C_CONF[1] = 1). In serial mode 1 and GPIO port mode, IO3 must be configured as normal mode (I2C_CONF[1] = 0). I2C2_SDA I/O UART_RXD I GPIO3 I/O IO4 JTAG TDO O NA I GPIO4 I/O IO5 JTAG TDI I NA I GPIO5 I/O IO6(2) 2. After reset, IO6 outputs the 80 MHz clock divided by five. Divided CLK80M O CLK32K O GPIO6 I/O IO7 I2C1 SCL I/O SPI_CLK I/O GPIO7 I/O IO8 I2C1 SDA I/O SPI_OUT O GPIO8 I/O IO9 NA I SPI_CS I GPIO9 I/O IO10 NA I SPI_IN I GPIO10 I/O |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |