| Electronic Components Datasheet Search |
|
AN2591 Datasheet(PDF) 10 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2591 Datasheet(HTML) 10 Page - STMicroelectronics |
|
10 / 19 page ![]() Expanding the number of inputs AN2591 10/19 2.2.2 Expanding the number of inputs to 16 lines To expand the number of inputs to more than 8 using shift registers, you can cascade two or more shift registers by connecting the QH output of one shift register, that receives the inputs for the low order data byte, to the SI input of the next register that receives the inputs for the high order data byte. The register for the high order data byte is the one that must have its QH output directly connected to the microcontroller. The same technique as described in Section 2.2.1 is used to read all 16 inputs and 15 clock pulses generated by the microcontroller to get all 16 bits of data. In this case, when two registers are used, the number of lines saved is 16 - 3 = 13. By cascading more than two registers, in order to expand more than 16 inputs, the number of GPIOs used for this technique remains the same: always 3 lines from the microcontroller. Figure 8. Expander for 16 inputs using two shift registers: 74HC165 µC GPIO0.0 M74HC165 GPIO0.1 GPIO0.2 A B C D E F G H 3.3v GND S/L CK QH Vcc SI 16 1 2 9 10 8 CK INH 15 QH M74HC165 A B C D E F G H 3.3v GND S/L CK QH Vcc SI 16 1 2 9 10 8 CK INH 15 QH 7 16 inputs 11 13 12 14 3 4 5 6 11 13 12 14 3 4 5 6 7 I15 I14 I13 I12 I11 I10 I9 I8 I7 I6 I5 I4 I3 I2 I1 I0 From previous register QH output if needed to expand more than 16 inputs if not used it must be tied to ground |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |