Specifications

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]