MikroElektronika PIC Microcontrollers PIC16 Specifikace Strana 129

  • 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 128
Chapter 6 - Samples
Connecting a microcontroller to 7-segment displays in multiplex mode
File Led.inc contains two macros: LED_Init and LED_Disp2. The first macro is used for display
initialization. That is where display refreshment period is defined as well as microcontroller pins
used for connecting the displays. The second macro is used for displaying numbers from 0 to 99
on two displays.
Macro LED_Disp2 has one argument:
LED_Disp2 first macro
first is the number from 0 to 99 to be displayed on Msd and Lsd digit.
Example: LED_Disp12 0x34
Number 34 will be shown on the display
Realization of a macro is given in the following listing.
http://www.mikroelektronika.co.yu/english/product/books/PICbook/6_09Poglavlje.htm (2 of 5) [4/2/2003 16:19:03]
Zobrazit stránku 128
1 2 ... 124 125 126 127 128 129 130 131 132 133 134 ... 185 186

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

Žádné komentáře