数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

STM8S 数据表(PDF) 109 Page - STMicroelectronics

部件名 STM8S
功能描述  STM8S Series and STM8AF Series 8-bit microcontrollers
PDF  467 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

STM8S 数据表(HTML) 109 Page - STMicroelectronics

Back Button STM8S Datasheet HTML 105Page - STMicroelectronics STM8S Datasheet HTML 106Page - STMicroelectronics STM8S Datasheet HTML 107Page - STMicroelectronics STM8S Datasheet HTML 108Page - STMicroelectronics STM8S Datasheet HTML 109Page - STMicroelectronics STM8S Datasheet HTML 110Page - STMicroelectronics STM8S Datasheet HTML 111Page - STMicroelectronics STM8S Datasheet HTML 112Page - STMicroelectronics STM8S Datasheet HTML 113Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 109 / 467 page
background image
DocID14587 Rev 14
109/467
RM0016
General purpose I/O ports (GPIO)
113
11.7
Input mode details
11.7.1
Alternate function input
Some I/Os can be used as alternate function input. For example as the port may be used as
the input capture input to a timer. Alternate function inputs are not selected automatically,
you select them by writing to a control bit in the registers of the corresponding peripheral.
For Alternate Function input, you should select floating or pull-up input configuration in the
DDR and CR1 registers.
11.7.2
Interrupt capability
Each I/O can be configured as an input with interrupt capability by setting the CR2x bit while
the I/O is in input mode. In this configuration, a signal edge or level input on the I/O
generates an interrupt request.
Falling or rising edge sensitivity is programmed independently for each interrupt vector in
the EXTI_CR[2:1] registers.
External interrupt capability is only available if the port is configured in input mode.
Interrupt masking
Interrupts can be enabled/disabled individually by programming the corresponding bit in the
configuration register (Px_CR2). At reset state, the interrupts are disabled.
If a pin alternate function is TLI, use the Px_CR2 bit to enable/disable the TLI interrupt. The
TLI interrupt is associated to a dedicated interrupt vector.
11.7.3
Analog channels
Analog I/O channels can be selected by the ADC peripheral. The corresponding input and
output stages are then automatically disabled. As mentioned in the next section, the input
Schmitt trigger should be disabled in the ADC_TDR register when using the analog
channels.
Table 23. Recommended and non-recommended configurations for analog input
DDR
CR1
CR2
ADC_TDR
Configuration
Comments
00
0
1
Floating Input without interrupt,
Schmitt trigger disabled
Recommended analog input
configuration
0
1
x
x
Input with pull-up enabled
Not recommended for analog input when
analog voltage is present since these
configurations cause excess current flow
on the input pin.
Both input and output stages are
disabled on ADC selected channel.
1
0
x
x
Output
1
1
x
x
Output



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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