07.10.2013 Aufrufe

3. Übersicht zum µC 8052 - No official entry point - HAW Hamburg

3. Übersicht zum µC 8052 - No official entry point - HAW Hamburg

3. Übersicht zum µC 8052 - No official entry point - HAW Hamburg

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

Prof. Dr. J. Reichardt<br />

Prof. Dr. B. Schwarz UART - CPLD 95108 - C <strong>8052</strong><br />

;------------------------------------------------------------------------------<br />

; Add constant (typeless) numbers here.<br />

;-----------------------------------------------------------------------------typeless_number<br />

EQU 0EDH ; assign 0ED HEX<br />

typeless_num1 EQU typeless_number - 8 ; evaluate typeless_num1<br />

;------------------------------------------------------------------------------<br />

; Provide an LJMP to start at the reset address (address 0) in the main module.<br />

; After a reset the program counter PC is loaded with 0000HEX .<br />

;------------------------------------------------------------------------------<br />

CSEG AT 0 ; absolute Segment at Address 0<br />

LJMP start ; reset location (jump to start)<br />

;------------------------------------------------------------------------------<br />

; CODE SEGMENT--Reserves space in CODE ROM for assembler instructions.<br />

;-----------------------------------------------------------------------------code_seg_name<br />

SEGMENT CODE<br />

RSEG code_seg_name ; switch to this code segment<br />

;------------------------------------------------------------------------------<br />

; Insert your assembly program here. <strong>No</strong>te, the code below is non-functional.<br />

;-----------------------------------------------------------------------------start:<br />

ORL IE,#82H ; enable interrupt system (Zeitgeber 0)<br />

SETB TR0 ; enable Zeitgeber 0<br />

repeat_label: MOV A,data_symbol;<br />

haw hamburg<br />

FACHBEREICH ELEKTROTECHNIK<br />

UND INFORMATIK<br />

© B. Schwarz 3-30

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!