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

X  

AN2466 数据表(PDF) 9 Page - STMicroelectronics

部件名 AN2466
功能描述  STMPE801 - Hardware Interface guide
PDF  13 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN2466 数据表(HTML) 9 Page - STMicroelectronics

Back Button AN2466 Datasheet HTML 5Page - STMicroelectronics AN2466 Datasheet HTML 6Page - STMicroelectronics AN2466 Datasheet HTML 7Page - STMicroelectronics AN2466 Datasheet HTML 8Page - STMicroelectronics AN2466 Datasheet HTML 9Page - STMicroelectronics AN2466 Datasheet HTML 10Page - STMicroelectronics AN2466 Datasheet HTML 11Page - STMicroelectronics AN2466 Datasheet HTML 12Page - STMicroelectronics AN2466 Datasheet HTML 13Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 9 / 13 page
background image
AN2466
Pin description of STMPE801
9/13
2.5.1
Configuring GPIO registers
The GPIO pin direction can be selected as input or output by writing into the GPDR register
(0x12).
The GPIO output state can be set high or low by writing into the corresponding bit in the
GPSR register (0x11).
If the GPIO is configured as an input, the pin state is monitored by reading the
corresponding bit in the GPMR register (0x10).
Each GPIO can be individually programmed to generate an interrupt on change of state.
Table 5.
GPIO Direction register
GPDR
Bit
7654321
0
IO_7
IO_6
IO_5
IO_4
IO_3
IO_2
IO_1
IO_0
Reset
value
0000000
0
Bits
Name
Description
7:0
GPIO[x]
‘0’: The corresponding GPIO pin is set to Input.
‘1’: The corresponding GPIO pin is set to Output.
Table 6.
GPIO State register
GPSR
Bit
7654321
0
IO_7
IO_6
IO_5
IO_4
IO_3
IO_2
IO_1
IO_0
Reset
value
0000000
0
Bits
Name
Description
7:0
GPIO[x]
‘0’: The corresponding GPIO output is set LOW
‘1’: The corresponding GPIO output is set HIGH
Table 7.
GPIO Monitor register
GPMR
Bit
7654321
0
IO_7
IO_6
IO_5
IO_4
IO_3
IO_2
IO_1
IO_0
Reset
value
0000000
0
Bits
Name
Description
7:0
GPIO[x]
Reading ‘0’: The corresponding GPIO input state is LOW
Reading ‘1’: The corresponding GPIO input state is HIGH



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13


数据表 下载

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