\ProvidesPackage{acro}[1996/02/19  Abbreviations and acronyms]
% Written by Nick Urbanik,

% $Header: J:\MICROP\56FTWS0\RCS\learnc.tex 1.5 1996/02/25 18:48:56 Nick Exp Nick $

% $Log: learnc.tex $
% Revision 1.5  1996/02/25  18:48:56  Nick
% This is a major revision.
% It has exercises, solutions, stuff about most that I hoped to
% achieve.
%
% Revision 1.4  1996/02/20  15:46:18  Nick
% This is a major revision.  I have added much more material,
% including exercises with solutions, more diagrams, and have clarified
% some explanations.  It looks like it is shaping up to become my major
% opus for the uear.
%
% Revision 1.4  1996/01/24  00:35:39  Nick
% Added slanted LEDs, embedded systems and DTMF.
%
% Revision 1.2  1995/09/14  21:53:41  Nick
% This is a merging of my acro.sty at home and that at work.
%

\RequirePackage{xspace,relsize,scl}

\DeclareRobustCommand{\Slash}{{\raisebox{0.3ex}{\relsize{-3}/}}}
\DeclareRobustCommand{\leftPar}{{\raisebox{0.1ex}{\relsize{-2}(}}}
\DeclareRobustCommand{\rightPar}{{\raisebox{0.1ex}{\relsize{-2})}}}

% Make an acro able to work in maths mode, so I can use overline.
\DeclareMathAlphabet{\mathsc}{OT1}{cmr}{m}{sc}
\DeclareRobustCommand{\acro}[1]{\textsc{\lowercase{#1}}}
\DeclareRobustCommand{\acroSl}[1]{\textscl{\lowercase{#1}}}
\DeclareRobustCommand{\overbar}[1]%
  {\ensuremath{\overline{\mathsc{\lowercase{#1}}}}}

\providecommand*{\AC}{\acro{AC}\xspace}
\providecommand*{\AD}{\acro{A\Slash{}{}D}\xspace}
\providecommand*{\ADsl}{\acroSl{A\Slash{}{}D}\xspace}
\providecommand*{\ALU}{\acro{ALU}\xspace}
\providecommand*{\ANSI}{\acro{ANSI}\xspace}
\providecommand*{\ASCII}{\acro{ASCII}\xspace}
\providecommand*{\AS}{$\overline{\acro{AS}}$\xspace}
\providecommand*{\BASIC}{\acro{BASIC}\xspace}
\providecommand*{\BIOS}{\acro{BIOS}\xspace}
\providecommand*{\CDROM}{\acro{CDROM}\xspace}
\providecommand*{\CMOS}{\acro{CMOS}\xspace}
\providecommand*{\CPU}{\acro{CPU}\xspace}
\providecommand*{\CRT}{\acro{CRT}\xspace}
\providecommand*{\CS}{$\overline{\acro{CS}}$\xspace}
\providecommand*{\EEPROM}{\acro{EEPROM}\xspace}
\providecommand*{\EPROM}{\acro{EPROM}\xspace}
\providecommand*{\DA}{\acro{D\Slash{}{}A}\xspace}
\providecommand*{\DAsl}{\acroSl{D\Slash{}{}A}\xspace}
\providecommand*{\DC}{\acro{DC}\xspace}
\providecommand*{\DIP}{\acro{DIP}\xspace}
\providecommand*{\DMA}{\acro{DMA}\xspace}
\providecommand*{\DOS}{\acro{DOS}\xspace}
\providecommand*{\DMAC}{\acro{DMAC}\xspace}
\providecommand*{\DTACK}{$\overline{\acro{DTACK}}$\xspace}
\providecommand*{\DTMF}{\acro{DTMF}\xspace}
\providecommand*{\DUART}{\acro{DUART}\xspace}
\providecommand*{\FIFO}{\acro{FIFO}\xspace}
\providecommand*{\FLIGHT}{\acro{FLIGHT-68K}\xspace}
\providecommand*{\FLIGHTsl}{\acroSl{FLIGHT-68K}\xspace}
\providecommand*{\GNU}{\acro{GNU}\xspace}
\providecommand*{\HC}{\acro{HC}\xspace}
\providecommand*{\HD}{\acro{HD}\xspace}
\providecommand*{\HKTC}{\acro{HKTC\leftPar{}TY\rightPar}\xspace}
\providecommand*{\HKTCsl}{\acroSl{HKTC\leftPar{}TY\rightPar}\xspace}
\providecommand*{\HLL}{\acro{HLL}\xspace}
\providecommand*{\IC}{\acro{IC}\xspace}
\providecommand*{\ICE}{\acro{ICE}\xspace}
\providecommand*{\IM}{\acro{IM}\xspace} % interrupt mask
\DeclareRobustCommand{\IO}{\acro{I\Slash{}{}O}\xspace}
\DeclareRobustCommand{\IOsl}{\acroSl{I\Slash{}{}O}\xspace}
\providecommand*{\ISA}{\acro{ISA}\xspace}
\providecommand*{\ISR}{\acro{ISR}\xspace}
\providecommand*{\LAN}{\acro{LAN}\xspace}
\providecommand*{\LDS}{\overbar{LDS}\xspace}
\providecommand*{\LED}{\acro{LED}\xspace}
\providecommand*{\LEDsl}{\acroSl{LED}\xspace}
\providecommand*{\LIFO}{\acro{LIFO}\xspace}
\providecommand*{\LLL}{\acro{LLL}\xspace}
\providecommand*{\LRC}{\acro{LRC}\xspace}
\providecommand*{\LSB}{\acro{LSB}\xspace}
\providecommand*{\MPU}{\acro{MPU}\xspace}
\providecommand*{\NMI}{\acro{NMI}\xspace}
\providecommand*{\MSDOS}{\acro{MS-DOS}\xspace}
\providecommand*{\MSDOSsl}{\acroSl{MS-DOS}\xspace}
\providecommand*{\MSB}{\acro{MSB}\xspace}
\providecommand*{\OS}{\acro{O\Slash{}{}S}\xspace}
\providecommand*{\OSsl}{\acroSl{O\Slash{}{}S}\xspace}
\providecommand*{\PAL}{\acro{PAL}\xspace}
\providecommand*{\PC}{\acro{PC}\xspace}
\providecommand*{\PCB}{\acro{PCB}\xspace}
\providecommand*{\PGA}{\acro{PGA}\xspace}
\providecommand*{\PIT}{\acro{PI\Slash{}{}T}\xspace}
\providecommand*{\PITsl}{\acroSl{PI\Slash{}{}T}\xspace}
\providecommand*{\PLCC}{\acro{PLCC}\xspace}
\providecommand*{\PLD}{\acro{PLD}\xspace}
\providecommand*{\PROM}{\acro{PROM}\xspace}
\providecommand*{\RAM}{\acro{RAM}\xspace}
\providecommand*{\RESET}{$\overline{\acro{RESET}}$\xspace}
\providecommand*{\ROM}{\acro{ROM}\xspace}
\providecommand*{\RTS}{\acro{RTS}\xspace}
\providecommand*{\RW}{\acro{R\Slash{}{}\overbar{W}}\xspace}
\providecommand*{\TTL}{\acro{TTL}\xspace}
\providecommand*{\UDS}{\overbar{UDS}\xspace}
\providecommand*{\UNIX}{\acro{UNIX}\xspace}
\providecommand*{\VRC}{\acro{VRC}\xspace}
\providecommand*{\VSC}{\acro{VSC}\xspace}
\providecommand*{\VTC}{\acro{VTC}\xspace}

\providecommand*{\es}{embedded system\xspace}
\providecommand*{\uc}{microcontroller\xspace}
\providecommand*{\Uc}{Microcontroller\xspace}
\providecommand*{\up}{microprocessor\xspace}
\providecommand*{\Up}{Microprocessor\xspace}
\providecommand*{\MPA}{Microprocessor Applications Laboratory\xspace}
\providecommand*{\mpa}{microprocessor lab\xspace}


% Hex digits in mathematics mode:
\providecommand*{\A}{\ensuremath{\mathrm{A}}}
\providecommand*{\Bh}{\ensuremath{\mathrm{B}}}
\providecommand*{\B}{\ensuremath{\mathrm{B}}}
\providecommand*{\C}{\ensuremath{\mathrm{C}}}
\providecommand*{\D}{\ensuremath{\mathrm{D}}}
\providecommand*{\E}{\ensuremath{\mathrm{E}}}
\providecommand*{\F}{\ensuremath{\mathrm{F}}}

% for kilobytes:
\providecommand*{\Kb}{\mathrm{K}}
% megabytes:
\providecommand*{\M}{\mathrm{M}}
