Herunterladen Inhalt Inhalt Diese Seite drucken

Siemens Simatic S5 PG 730 Systemhandbuch Seite 364

Inhaltsverzeichnis

Werbung

Farbgraphik PG 730
mov
bx,lut_adr_l
cld
mov
cx,16*3
mov
si,offset colors_0
stc
call
move_to_gspmem
dec
di
jnz
next_pal_0
mov
di,8
next_pal_1:
mov
bx,lut_adr_l
cld
mov
cx,16*3
mov
si,offset colors_1
stc
call
move_to_gspmem
dec
di
jnz
next_pal_1
mov
dx,lut_mask_h
mov
bx,lut_adr_l
mov
ax,init_pix_mask
mov
cx,1
stc
call
write_to_gspmem
;--------------------------------------------------------------------------------------------------- - ------;
; Init GSP-Port (PCLK = 25MHz, enable Video,
; disable Blinking.
; GSP then drives external Display (CRT),
; VGA drives internal Display
;--------------------------------------------------------------------------------------------------- - ------;
mov
dx,gsp_port_h
mov
bx,gsp_port_l
mov
ax,gsp_to_ext
mov
cx,1
stc
call
write_to_gspmem
;--------------------------------------------------------------------------------------------------- - ------;
; Fill GSP-Display-Memory with vertical Color-Bar
;--------------------------------------------------------------------------------------------------- - ------;
mov
ax,0
23 - 36
Systemhandbuch
;every palette has
;16*3 entries (R/G/B)
;setup HADDR-Reg.
;loop to load table 0-7
;do next 8 palettes
;setup HADDR-Reg.
;loop to load table 8-15
;point to lut-pixel-
;mask-register
;setup HADDR-Reg.
;point to gsp_port
;set gsp-port to drive
;external Display
;setup HADDR-Reg.
;1st value to fill
C79000-B8500-C073-01
;
;
;
;
;

Quicklinks ausblenden:

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis