Specifications
Chapter 6 - Samples
The LTC86 Macro has three arguments:
LTC86 macro Var_LO, Var_HI, Var
Var_LO variable is where the result of lower byte conversion is stored
Var_HI variable is where the result of higher byte conversion is stored
Var loop counter
Example: LTC86 LO, HI, Count
The four bits of the highest value are in variable HI, and first eight bits of conversion result are in
variable LO. Count is an assistant variable to count the passes through loops.
The following example shows how macros are used in the program. The program reads the value
from an ADC and displays it on the LCD display. The result is given in quantums. Eg: for 0V the
http://www.mikroelektronika.co.yu/english/product/books/PICbook/6_11Poglavlje.htm (3 of 6) [4/2/2003 16:19:11]