\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{TimSch} \pdfinfo{ /Title (8051-register.pdf) /Creator (Cheatography) /Author (TimSch) /Subject (8051 - Register Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{A33D1D} \definecolor{LightBackground}{HTML}{F9F2F0} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{8051 - Register Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{TimSch} via \textcolor{DarkBackground}{\uline{cheatography.com/29480/cs/9836/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}TimSch \\ \uline{cheatography.com/timsch} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 15th November, 2016.\\ Updated 15th November, 2016.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{2} \begin{tabularx}{8.4cm}{p{1.14 cm} x{2.66 cm} x{3.8 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{Akkumulator (ACC)}} \tn % Row 0 \SetRowColor{LightBackground} Bit & Kürzel & Hexadresse \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} 1 & A.0 & E0H \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} 2 & A.1 & E1H \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} 3 & A.2 & E2H \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} 4 & A.3 & E3H \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} 5 & A.4 & E4H \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} 6 & A.5 & E5H \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} 7 & A.6 & E6H \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} 8 & A.7 & E7H \tn % Row Count 9 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{8.4cm}}{Das Register ACC ist der Akkumulator und das Haupt-Arbeits-Register. In der mnemonischen Kurzbezeichnungen, den Programmierbefehlen wird der Akkumulator nur mit A bezeichnet.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{1.14 cm} x{2.66 cm} x{3.8 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{B (Akkumulator Nebenregister)}} \tn % Row 0 \SetRowColor{LightBackground} Bit & Kürzel & Hexadresse \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} 1 & B.0 & F0H \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} 2 & B.1 & F1H \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} 3 & B.2 & F2H \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} 4 & B.3 & F3H \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} 5 & B.4 & F4H \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} 6 & B.5 & F5H \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} 7 & B.6 & F6H \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} 8 & B.7 & F7H \tn % Row Count 9 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{8.4cm}}{Das Register B ist das Nebenarbeitsregister und wird beim Multiplizieren und Dividieren ben{\"o}tigt. Bei der Abarbeitung anderer Befehle kann es als weiterer schneller Hilfsspeicher dienen.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.72 cm} x{1.224 cm} x{0.864 cm} x{4.392 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{8.4cm}}{\bf\textcolor{white}{\seqsplit{Interrupt-Freigaberegister} (IE)}} \tn % Row 0 \SetRowColor{LightBackground} Bit & \seqsplit{Hexadresse} & \seqsplit{Kürzel} & Funktion \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} 1 & A8H & EX0 & Gibt externe Interrupts von Anschluss /INT0 frei (EX0 = 1) oder nicht frei (EX0 = 0) \tn % Row Count 6 (+ 4) % Row 2 \SetRowColor{LightBackground} 2 & A9H & ET0 & Gibt Interrupts vom Überlauf des Zeitgeber/Z{\"a}hlers 0 frei (ET0 = 1) oder nicht frei (ET0 = 0) \tn % Row Count 10 (+ 4) % Row 3 \SetRowColor{white} 3 & AAH & EX1 & Gibt externe Interrupts von Anschluss /INT1 frei (EX1 = 1) oder nicht frei (EX1 = 0) \tn % Row Count 14 (+ 4) % Row 4 \SetRowColor{LightBackground} 4 & ABH & ET1 & Gibt Interrupts vom Überlauf des Zeitgeber/Z{\"a}hlers 1 frei (ET1 = 1) oder nicht frei (ET1 = 0) \tn % Row Count 18 (+ 4) % Row 5 \SetRowColor{white} 5 & ACH & ES & Gibt Interrupts vom serieller Port frei ( ES = 1) oder nicht frei (ES = 0) \tn % Row Count 22 (+ 4) % Row 6 \SetRowColor{LightBackground} 6 & ADH & ET2 & gibt Interrupts vom Überlauf des Zeitgeber/Z{\"a}hlers 2 frei (ET2 = 1) oder nicht frei (ET2 = 0) \{\{nl\}\}nur bei 8032/52 \tn % Row Count 27 (+ 5) % Row 7 \SetRowColor{white} 7 & AEH & - & - \tn % Row Count 28 (+ 1) % Row 8 \SetRowColor{LightBackground} 8 & AFH & EA & Globales Interrupt-Freigabe-Flag (Enable ALL Interrupts). \{\{nl\}\}0 = es wird kein Interrupt zugelassen (alle gesperrt) \{\{nl\}\}1 = Interrupts je nach deren Freigabe zugelassen \tn % Row Count 36 (+ 8) \hhline{>{\arrayrulecolor{DarkBackground}}----} \SetRowColor{LightBackground} \mymulticolumn{4}{x{8.4cm}}{Das \seqsplit{Interrupt-Enable-Register} aktivier bzw. deaktiviert die verschiedenen Interrupts.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}----} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.72 cm} x{1.224 cm} x{0.864 cm} x{4.392 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{8.4cm}}{\bf\textcolor{white}{Interrupt-Priorit{\"a}tenregister (IP)}} \tn % Row 0 \SetRowColor{LightBackground} Bit & \seqsplit{Hexadresse} & \seqsplit{Kürzel} & Funktion \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} 1 & B8H & PX0 & Priorit{\"a}tsstufe des Interrupts von Anschluss /INT0 \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} 2 & B9H & PT0 & Priorit{\"a}tsstufe des Interrupts von Zeitgeber/Z{\"a}hlers 0 \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} 3 & BAH & PX1 & Priorit{\"a}tsstufe des Interrupts von Anschluss /INT1 \tn % Row Count 11 (+ 3) % Row 4 \SetRowColor{LightBackground} 4 & BBH & PT1 & Priorit{\"a}tsstufe des Interrupts von Zeitgeber/Z{\"a}hlers 1 \tn % Row Count 14 (+ 3) % Row 5 \SetRowColor{white} 5 & BCH & PS & Priorit{\"a}tsstufe des Interrupts des seriellen Ports \tn % Row Count 17 (+ 3) % Row 6 \SetRowColor{LightBackground} 6 & BDH & PT2 & Priorit{\"a}tsstufe des Interrupts von Zeitgeber/Z{\"a}hlers 2 \{\{nl\}\}{\emph{nicht im 80C31/51 implementiert, nur beim 80C32/52 und aufw{\"a}rts verfügbar}} \tn % Row Count 23 (+ 6) % Row 7 \SetRowColor{white} 7 & BEH & - & - \tn % Row Count 24 (+ 1) % Row 8 \SetRowColor{LightBackground} 8 & BFH & - & - \tn % Row Count 25 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}----} \SetRowColor{LightBackground} \mymulticolumn{4}{x{8.4cm}}{Das Interrupt-Priorit{\"a}ten-Register legt für die unterschiedlichen Interrupts deren Priorit{\"a}t fest. \newline 1 = hohe Priorit{\"a}t \newline 0 = niedrige Priorit{\"a}t} \tn \hhline{>{\arrayrulecolor{DarkBackground}}----} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4.408 cm} x{1.292 cm} x{1.9 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{Priorit{\"a}ten Reihenfolge}} \tn % Row 0 \SetRowColor{LightBackground} Quelle & Bit & Interrupt Adresse \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} (Hardware-) Reset & - & 0000H \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} Externer Interrupt 0 & IE0 & 0003H \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} Zeitgeber/Z{\"a}hler 0 Überlauf & TF0 & 000BH \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} Externer Interrupt 1 & IE1 & 0013H \tn % Row Count 7 (+ 1) % Row 5 \SetRowColor{white} Zeitgeber/Z{\"a}hler 1 Überlauf & TF1 & 001BH \tn % Row Count 9 (+ 2) % Row 6 \SetRowColor{LightBackground} Serieller Port & RI oder TI & 0023H \tn % Row Count 11 (+ 2) % Row 7 \SetRowColor{white} Zeitgeber/Z{\"a}hler 2 Überlauf oder externer Interrupt 2 \{\{nl\}\}nur bei 8032/8052 & TF2 oder IE2 & 002BH \tn % Row Count 15 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.72 cm} x{1.224 cm} x{0.864 cm} x{4.392 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{8.4cm}}{\bf\textcolor{white}{serielles Steuerregister (SCON)}} \tn % Row 0 \SetRowColor{LightBackground} Bit & \seqsplit{Hexadresse} & \seqsplit{Kürzel} & Funktion \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} 1 & 98H & RI & \seqsplit{Empfangs-Interrupt-Kennzeichnungsbit} \{\{nl\}\}Wird in Betriebsart 0 durch Hardware am Ende der für das 8. Bit vorgesehenen Zeit gesetzt. \{\{nl\}\}Bei den übrigen Betriebsarten wird RI in der Mitte des Stoppbits vorgesehenen Zeit. \{\{nl\}\}Dieses gilt für jedes serielle Empfangen, Ausnahme siehe Erl{\"a}uterung zu SM2. \{\{nl\}\}L{\"o}schen muss durch die Software erfolgen. \tn % Row Count 17 (+ 15) % Row 2 \SetRowColor{LightBackground} 2 & 99H & TI & \seqsplit{Sende-Interrupt-Kennzeichnungsbit} \{\{nl\}\}Wird in Betriebsart 0 durch Hardware am Ende der für das 8. Bit vorgesehenen Zeit gesetzt. \{\{nl\}\}Bei den übrigen Betriebsarten wird TI am Anfang des Stoppbits gesetzt. \{\{nl\}\}Dieses gilt für jedes serielle Senden. \{\{nl\}\}L{\"o}schen muss durch die Software erfolgen. \tn % Row Count 30 (+ 13) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{p{0.72 cm} x{1.224 cm} x{0.864 cm} x{4.392 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{8.4cm}}{\bf\textcolor{white}{serielles Steuerregister (SCON) (cont)}} \tn % Row 3 \SetRowColor{LightBackground} 3 & 9AH & RB8 & 9. Datenbit, das in den Betriebsarten 2 und 3 empfangen wurde. \{\{nl\}\}Ist SM2 in der Betriebsart 1 auf Null gesetzt, so stellt RB8 das empfangene Stoppbit dar. \{\{nl\}\}In der Betriebsart 0 wird RB8 nicht verwendet. \tn % Row Count 9 (+ 9) % Row 4 \SetRowColor{white} 4 & 9BH & TB8 & 9. Datenbit, das in den Betriebsarten 2 und 3 gesendet wird. \{\{nl\}\}Kann durch die Software gesetzt oder gel{\"o}scht werden. \tn % Row Count 15 (+ 6) % Row 5 \SetRowColor{LightBackground} 5 & 9CH & REN & Globale Empfangs-Freigabe (receive enable) wird per Software gesetzt, um den Datenempfang über den seriellen Port zuzulassen. \{\{nl\}\}1 = zugelassen \{\{nl\}\}0 = nicht zugelassen \tn % Row Count 23 (+ 8) % Row 6 \SetRowColor{white} 6 & 9DH & SM2 & Bit für \seqsplit{Multiprozessor-Datenübertragung} \{\{nl\}\}Es gibt die Datenübertragung in einem Multiprozessorsystem in den Betriebsarten 2 und 3 frei. \{\{nl\}\}ist SM2 in den Betriebsarten 2 und 3 auf Eins gesetzt (SM2=1), so wird RI nicht aktiviert, wenn das empfangene 9. Bit den Wert Null hat (RB8=0). \{\{nl\}\}Ist SM2 in den Betriebsart 1 auf Eins gesetzt (SM2=1), so wird RI nicht aktiviert, wenn kein gültiges Stoppbit empfangen wurde. \{\{nl\}\}In der Betriebsart 0 sollte SM2 = 0 sein. \tn % Row Count 43 (+ 20) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{p{0.72 cm} x{1.224 cm} x{0.864 cm} x{4.392 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{8.4cm}}{\bf\textcolor{white}{serielles Steuerregister (SCON) (cont)}} \tn % Row 7 \SetRowColor{LightBackground} 7 & 9EH & SM1 & Betriebsart \tn % Row Count 1 (+ 1) % Row 8 \SetRowColor{white} 8 & 9FH & SM0 & Betriebsart \tn % Row Count 2 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}----} \SetRowColor{LightBackground} \mymulticolumn{4}{x{8.4cm}}{Das serielle Steuer- und Status-Register (SCON) übernimmt die generelle Steuerung der seriellen Schnittstelle. Neben der Betriebsart der seriellen Schnitstelle, wird der Inhalt des 9. Daten-Übertragungsbit festgelegt, das beim Senden und Empfangen bestimmte Funktionen erfüllt. Es enth{\"a}lt neben der generellen Freigabe (REN) auch die beiden Interruptbits TI und RI.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}----} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.72 cm} p{0.72 cm} x{1.368 cm} x{4.392 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{8.4cm}}{\bf\textcolor{white}{SCON Betriebsarten (SM0/1)}} \tn % Row 0 \SetRowColor{LightBackground} SM0 & SM1 & \seqsplit{Betriebsart} & Funktion \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} 0 & 0 & 0 & E/A-Erweiterung, 8-Bit Schieberegister \{\{nl\}\}Baudrate: Taktfrequenz / 12 \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} 0 & 1 & 1 & 8-Bit UART \{\{nl\}\}Baudrate variable einstellbar \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} 1 & 0 & 2 & 9-Bit UART \{\{nl\}\}Baudrate: Taktfrequenz / 32 oder / 64 \tn % Row Count 10 (+ 3) % Row 4 \SetRowColor{LightBackground} 1 & 1 & 3 & 9-Bit UART \{\{nl\}\}Baudrate variable einstellbar \tn % Row Count 12 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}----} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.72 cm} x{0.864 cm} x{1.224 cm} x{4.392 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{8.4cm}}{\bf\textcolor{white}{Program Status Word (PSW)}} \tn % Row 0 \SetRowColor{LightBackground} Bit & \seqsplit{Kürzel} & \seqsplit{Hexadresse} & Funktion \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} 1 & P & D0H & Parity-Bit \{\{nl\}\}Anzahl 1 im Akkumulator \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} 2 & - & D1H & \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} 3 & OV & D2H & Überlauf (Overflow) \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} 4 & RS0 & D3H & Registerbank-Auswahl \tn % Row Count 7 (+ 1) % Row 5 \SetRowColor{white} 5 & RS1 & D4H & Registerbank-Auswahl \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} 6 & F0 & D5H & Flag 0 \{\{nl\}\}allgemein nutzbar. \tn % Row Count 10 (+ 2) % Row 7 \SetRowColor{white} 7 & AC & D6H & Hilfsübertragsbit für BCD-Operationen (Auxiallary Carry) \tn % Row Count 13 (+ 3) % Row 8 \SetRowColor{LightBackground} 8 & CY & D7H & Übertragsbit (Carry) \tn % Row Count 14 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}----} \SetRowColor{LightBackground} \mymulticolumn{4}{x{8.4cm}}{Das Program Status Word (Programstatusregister) enth{\"a}lt Informationen zur generellen Programmsteuerung.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}----} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.864 cm} p{0.864 cm} p{1.152 cm} x{4.32 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{8.4cm}}{\bf\textcolor{white}{Registerbank Auswahl (RS 0 / RS1)}} \tn % Row 0 \SetRowColor{LightBackground} RS1 & RS0 & Bank & Speicherpl{\"a}tze \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} 0 & 0 & 0 & 00H - 07H \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} 0 & 1 & 1 & 08H - 0FH \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} 1 & 0 & 2 & 10H - 17H \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} 1 & 1 & 3 & 18H - 1FH \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}----} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{1.584 cm} x{1.008 cm} p{0.72 cm} x{3.888 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{8.4cm}}{\bf\textcolor{white}{Zeitgeber/Z{\"a}hler-Betriebsart-Register (TMOD)}} \tn % Row 0 \SetRowColor{LightBackground} Bit & \seqsplit{Hexadresse} & \seqsplit{Kürzel} & Funktion \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \{\{nobreak\}\}1 | 5 & 89H & M0 & Timer-Modus \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \{\{nobreak\}\}2 | 6 & 89H & M1 & Timer-Modus \tn % Row Count 6 (+ 2) % Row 3 \SetRowColor{white} \{\{nobreak\}\}3 | 7 & 89H & C /T & Festlegung, ob Counter oder Z{\"a}hler \{\{nl\}\}0 = Zeitgeber (Timer) \{\{nl\}\}1 = Z{\"a}hler (Counter) \tn % Row Count 11 (+ 5) % Row 4 \SetRowColor{LightBackground} \{\{nobreak\}\}4 | 8 & 89H & Gate & 0 = Z{\"a}hlimpulse direkt zum Z{\"a}hler \{\{nl\}\}1 = Z{\"a}hlimpulse durch /INT0 bzw. /INT1 Pin an den Z{\"a}hler \tn % Row Count 16 (+ 5) \hhline{>{\arrayrulecolor{DarkBackground}}----} \SetRowColor{LightBackground} \mymulticolumn{4}{x{8.4cm}}{Das Zeitgeber/Z{\"a}hler-Betriebsart-Register (TMOD = Timer-Modus) ist für die grundlegenden Einstellungen der beiden Timer/Counter. Für die Festlegung in welchem Modus die Timer/Counter des Mikrocontroller betrieben werden. \{\{nl\}\}Ist C /T = 0 wird das Register bei jedem Maschinenzyklus inkrementiert (erh{\"o}ht). Z{\"a}hlrate 1/12 der Oszillatorfrequenz (ein Zw{\"o}lftel). \{\{nl\}\}Für die Aktivierung des Timers/Counters das Inbetriebnahme-Bit TR0 bzw. TR1 gesetzt sein. TR0 und TR1 sind im TCON.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}----} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.72 cm} p{0.72 cm} p{0.72 cm} x{5.04 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{8.4cm}}{\bf\textcolor{white}{Timer Modus (M1 / M0)}} \tn % Row 0 \SetRowColor{LightBackground} M1 & M0 & Modus & Funktion \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} 0 & 0 & 0 & 5 Bit Teiler (Low-Byte) und nachgeschalteter 8-Bit-Z{\"a}hler \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} 0 & 1 & 1 & Low- und High-Byte zu einem 16-Bit-Z{\"a}hler zusammengefasst \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} 1 & 0 & 2 & 8-Bit selbst nachladender Timer/Z{\"a}hler \{\{nl\}\}Low-Byte = Z{\"a}hler \{\{nl\}\}High-Byte = Nachladewert bei Überlauf \tn % Row Count 12 (+ 4) % Row 4 \SetRowColor{LightBackground} 1 & 1 & 3 & Timer bildet 2 unabh{\"a}ngige 8-Bit-Timer \tn % Row Count 14 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}----} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.72 cm} x{1.224 cm} x{0.864 cm} x{4.392 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{8.4cm}}{\bf\textcolor{white}{Zeitgeber/Z{\"a}hler-Steuerregister (TCON)}} \tn % Row 0 \SetRowColor{LightBackground} Bit & \seqsplit{Hexadresse} & \seqsplit{Kürzel} & Funktion \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} 1 & 88H & IT0 & Interrupt 0 \{\{nl\}\}Steuerbit für Flanken- oder Pegel-getriggerten Interrupt an /INT1 bzw. /INT0 \{\{nl\}\}0 = Interrupt wird ausgel{\"o}st {\bf{solange}} LOW-Pegel an /INTx anliegt. \{\{nl\}\}1 = bei einer Negativ-Flanke (H/L-Übergang) an /INTx wird ein Interrupt ausgel{\"o}st. \tn % Row Count 13 (+ 11) % Row 2 \SetRowColor{LightBackground} 2 & 89H & IE0 & Interrupt 0 \{\{nl\}\}Kennzeichnungsbit für externen Interrupt /INT1 bzw. /INT0\{\{nl\}\} Wird gesetzt (=1) bei einem Interrupt und gel{\"o}scht (=0) bei Ausführung des Interrupts.. \tn % Row Count 21 (+ 8) % Row 3 \SetRowColor{white} 3 & 8AH & IT1 & Interrupt 1 \{\{nl\}\}Steuerbit für Flanken- oder Pegel-getriggerten Interrupt an /INT1 bzw. /INT0 \{\{nl\}\}0 = Interrupt wird ausgel{\"o}st {\bf{solange}} LOW-Pegel an /INTx anliegt. \{\{nl\}\}1 = bei einer Negativ-Flanke (H/L-Übergang) an /INTx wird ein Interrupt ausgel{\"o}st. \tn % Row Count 32 (+ 11) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{p{0.72 cm} x{1.224 cm} x{0.864 cm} x{4.392 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{8.4cm}}{\bf\textcolor{white}{Zeitgeber/Z{\"a}hler-Steuerregister (TCON) (cont)}} \tn % Row 4 \SetRowColor{LightBackground} 4 & 8BH & IE1 & Interrupt 0 \{\{nl\}\}Kennzeichnungsbit für externen Interrupt /INT1 bzw. /INT0\{\{nl\}\} Wird gesetzt (=1) bei einem Interrupt und gel{\"o}scht (=0) bei Ausführung des Interrupts.. \tn % Row Count 8 (+ 8) % Row 5 \SetRowColor{white} 5 & 8CH & TR0 & Timer 0 \{\{nl\}\}Steuerbit zur Inbetriebnahme des Zeitgeber/Z{\"a}hlers 1 bzw. 0. \{\{nl\}\}0 = aus \{\{nl\}\}1 = an \tn % Row Count 13 (+ 5) % Row 6 \SetRowColor{LightBackground} 6 & 8DH & TF0 & Timer 0 \{\{nl\}\}Kennzeichnungsbit für Überlauf von Zeitgeber/Z{\"a}hler 1 bzw. 0. \{\{nl\}\}Wird jedesmal gesetzt (=1), wenn der Timer seinen h{\"o}chsten Wert erreicht hat und auf 0 zurückgesetzt wird. \tn % Row Count 22 (+ 9) % Row 7 \SetRowColor{white} 7 & 8EH & TR1 & Timer 1 \{\{nl\}\}Steuerbit zur Inbetriebnahme des Zeitgeber/Z{\"a}hlers 1 bzw. 0. \{\{nl\}\}0 = aus \{\{nl\}\}1 = an \tn % Row Count 27 (+ 5) % Row 8 \SetRowColor{LightBackground} 8 & 8FH & TF1 & Timer 1 \{\{nl\}\}Kennzeichnungsbit für Überlauf von Zeitgeber/Z{\"a}hler 1 bzw. 0. \{\{nl\}\}Wird jedesmal gesetzt (=1), wenn der Timer seinen h{\"o}chsten Wert erreicht hat und auf 0 zurückgesetzt wird. \tn % Row Count 36 (+ 9) \hhline{>{\arrayrulecolor{DarkBackground}}----} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.72 cm} x{1.224 cm} x{0.864 cm} x{4.392 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{8.4cm}}{\bf\textcolor{white}{Power Control Register (PCON)}} \tn % Row 0 \SetRowColor{LightBackground} Bit & \seqsplit{Hexadresse} & \seqsplit{Kürzel} & Funktion \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} 1 & 87H & IDL & Idle Mode Bit \{\{nl\}\}1 = aktivier \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} 2 & 87H & PD & Power Down Bit \{\{nl\}\}1 = aktiviert \{\{nl\}\}{\bf{Hat Vorrang vor IDL}} \tn % Row Count 7 (+ 3) % Row 3 \SetRowColor{white} 3 & 87H & GF0 & generelles Flag 0 (kann allgemein benutzt werden) \tn % Row Count 10 (+ 3) % Row 4 \SetRowColor{LightBackground} 4 & 87H & GF1 & generelles Flag 1 (kann allgemein benutzt werden) \tn % Row Count 13 (+ 3) % Row 5 \SetRowColor{white} 5 & 87H & POF & Power Off Bit \{\{nl\}\}1 = Ruhezustand \tn % Row Count 15 (+ 2) % Row 6 \SetRowColor{LightBackground} 6 & 87H & - & - \tn % Row Count 16 (+ 1) % Row 7 \SetRowColor{white} 7 & 87H & - & - \tn % Row Count 17 (+ 1) % Row 8 \SetRowColor{LightBackground} 8 & 87H & SMOD & doppelte Übertragsrate der seriellen Schnitstelle \{\{nl\}\}1 = normale Baudrate \{\{nl\}\}0 = halbe Baudrate \tn % Row Count 22 (+ 5) \hhline{>{\arrayrulecolor{DarkBackground}}----} \SetRowColor{LightBackground} \mymulticolumn{4}{x{8.4cm}}{Das Power Control Register (Energie-Steuerregister) beeinhaltet die Flags zur Steuerung des sogenannten Schlafzustandes (Idle) und des Power-Down-Modus. Die Steuerung der Energiesparoptionen ist sinnvoll bei autonomen, akkubetriebenen Applikationen. Im PCON ist auch das SMOD-Flag zur Steuerung der seriellen Schnittstelle.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}----} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}