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

X  

AN2591 数据表(PDF) 7 Page - STMicroelectronics

部件名 AN2591
功能描述  In certain applications
PDF  19 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN2591 数据表(HTML) 7 Page - STMicroelectronics

Back Button AN2591 Datasheet HTML 3Page - STMicroelectronics AN2591 Datasheet HTML 4Page - STMicroelectronics AN2591 Datasheet HTML 5Page - STMicroelectronics AN2591 Datasheet HTML 6Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 7 / 19 page
background image
AN2591
Expanding the number of inputs
7/19
2
Expanding the number of inputs
To expand the number input lines, for example to get the state of several bi-state sensors or
to scan switch states, two techniques can be used: using multiplexers or shift registers.
2.1
Using a multiplexer
2.1.1
Expanding the number of inputs to 8 lines
Figure 5 shows an example of how a multiplexer can be connected to the microcontroller. To
get a bit value from a multiplexer input, apply the address value of the input via address lines
(A, B and C) and read it in via the multiplexer OUT output (pin 5). To get all 8 bits of data
available on the inputs (D0 to D7), you must read all bit states sequentially from the MSB
(address value = 0x7) to LSB (address value = 0x0) by decrementing the bit address and
applying it on GPIO0.0 to GPIO0.2. For each bit address you read the bit value and shift it
into the microcontroller on GPIO0.3 by software to build a data byte. The multiplexer used is
the M74HC151. This allows you to save 8 - 4 = 4 lines.
Figure 5.
Expander for 8 inputs using a multiplexer: M74HC151
µC
GPIO0.3
Out
GPIO0.0
M74HC151
5
GPIO0.1
GPIO0.2
D0
D1
D2
D3
D4
D5
D6
D7
4
2
3
1
15
14
13
12
Vcc
16
ST
7
3.3V
GND
C
B
A
8 inputs
11
10
9
8



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


链接网址



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