MikroElektronika PIC Microcontrollers PIC16 Specifikace Strana 125

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 186
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 124
Chapter 6 - Samples
register, thus data is transformed from serial into parallel data.
An outline of the 74HC595 shift register connections is shown on the diagram below:
Connecting an output shift register to a microcontroller
Macro used in this example is found in hc595.inc file, and is called HC595.
Macro HC595 has two arguments:
HC595 macro Var, Var1
Var variable whose contents is transferred to outputs of shift register.
Var1 loop counter
Example: HC595 Data, counter
The data we want to transfer is stored in data variable, and counter variable is used as a loop
counter.
http://www.mikroelektronika.co.yu/english/product/books/PICbook/6_08Poglavlje.htm (5 of 7) [4/2/2003 16:19:01]
Zobrazit stránku 124
1 2 ... 120 121 122 123 124 125 126 127 128 129 130 ... 185 186

Komentáře k této Příručce

Žádné komentáře