| 전자부품 데이터시트 검색엔진 |
|
ST52F510 데이터시트(PDF) 51 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST52F510 데이터시트(HTML) 51 Page - STMicroelectronics |
|
51 / 106 page ![]() ST52F510/F513/F514 51/106 7.5 Alternate Functions The Alternate Function allows the pins to be connected with the peripheral signals or NMI. Not all Port pins have an Alternate Function associated. A Configuration Register (PORT_x_AF) for each Port is used to switch from the Digital I/O function or the Alternate Function. Some pins can have two Alternate Functions: one input function and one output function. To switch between the two functions, the PORT_x_AF must be configured in Alternate Function mode and the PORT_x_DDR Configuration Register must be switched in Input mode or in Output mode. NMI is considered an Alternate Function. For this reason an NMI interrupt request can’t be generated unless the PA7 pin is configured in Alternate Function and in one of the Input modes. Figure 7.3 Port Pin Architecture When an on-chip peripheral is configured to use a pin, the correct I/O mode of the related pin should be selected by selecting one of the appropriate modes. See the Registers description in order to obtain the right configurations.Some peripherals, as for example the I2C peripheral, directly drive the pin configuration according to the current function, overriding the user configuration. 7.6 Register Description In order to configure the Port’s pins, the three Configuration Registers PORT_x_PULLUP, PORT_x_OR and PORT_x_DDR must be configured. The combination of these three registers determine the pin’s configuration, according to the scheme shown in Table 7.1. In order to select between the digital functions or Alternate functions PORT_x_AF register must be configured. Each bit of the configuration registers configures the pin of the corresponding position (example: PORT_A_DDR bit 5 configures the pin PA5). CONF. REG. D E C O D E R FF REGISTER FILE ALTERNATE FUNCTION INTERRUPT POLARITY IRQ TO INPUT REGISTER Vdd DIGITAL PORT PIN INT PU SEL EN ENABLE DATA CONF. REG. CONF. REG. CONF. REG. |
|
링크 URL |
| 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 |