전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AN2591 데이터시트(PDF) 11 Page - STMicroelectronics

부품명 AN2591
상세설명  In certain applications
PDF  19 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2591 데이터시트(HTML) 11 Page - STMicroelectronics

Back Button AN2591 Datasheet HTML 7Page - STMicroelectronics AN2591 Datasheet HTML 8Page - STMicroelectronics AN2591 Datasheet HTML 9Page - STMicroelectronics AN2591 Datasheet HTML 10Page - STMicroelectronics AN2591 Datasheet HTML 11Page - STMicroelectronics AN2591 Datasheet HTML 12Page - STMicroelectronics AN2591 Datasheet HTML 13Page - STMicroelectronics AN2591 Datasheet HTML 14Page - STMicroelectronics AN2591 Datasheet HTML 15Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 11 / 19 page
background image
AN2591
Using a STMPE801 (I²C bus) 8-bit I/O port expander
11/19
3
Using a STMPE801 (I²C bus) 8-bit I/O port expander
The STMPE801 is a General Purpose Input / Output (GPIO) expander specially designed
for expanding the input/output lines and solving the common problem of not having enough
GPIOs available for the application. This IC offers several features:
●
8 available GPIOs.
●
Each GPIO can be individually configured as input or output in the data direction
register GPDR and can be a source of an external interrupt configurable in the
IEGPIOR register.
●
This device interfaces to the microcontroller using an I2C bus.
●
Up to 2 devices (2 x STMPE801) can share the same I2C bus.
Note:
For more details refer to the STMPE801 datasheet.
3.1
Expanding the number of inputs/outputs to 8 lines
Figure 9 shows how the STMPE801 is connected via I2C bus to the microcontroller. When
ADDR0 pin is connected to ground, the I2C device address will be 0x82, otherwise (ADDR0
= Vcc) the device address will be 0x88.
Figure 9.
Eight channel expander
Each GPIO (0 to 7) can be configured independently as input or output (see details in the
GPDR section in STMPE801 datasheet). You can read the state of each GPIO in the GPMR
register. To set a GPIO state, you need to set its value in the GPSR register.
The INT (interrupt) output can be optionally used to increase the number of external inter-
rupt sources of the microcontroller by connecting it to one of external interrupt lines: XTI
microcontroller interrupt input. To use this option, you must first configure the IEGPIOR reg-
ister to enable the interrupt from a particular GPIO interrupt source to the host. After that,
µC
SDA
STMPE801MTR
SCL
XTI
3
5
4
6
7
8
9
10
VCC
16
VIO
1
3.3v
GND
INT
SCLK
SDAT
GPIOX.Y
RESET
ADDR0
4.7K
4.7K
R1
R2
8 inputs/
outputs
15
GPIO0
GPIO1
GPIO2
GPIO3
GPIO4
GPIO5
GPIO6
GPIO7
13
11
12
14
2
If needed
(I2C device address=0x82)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19


데이터시트 다운로드

Go To PDF Page


링크 URL



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