miniMODUL-537
42
PHYTEC Meßtechnik GmbH 2001 L-006e_2
6.8.2
Program for SERIAL1
; Example of initialization of SERIAL1 for 19200 baud
; for 11.059 MHz system-clock frequency.
init: mov
S1REL,#238
; Reload value for 19200 baud
mov
S1CON,#92H
; Mode-adjustment and initialization
; of the flag RI1 ; and TI1, 8 data
bit,
; no parity 1 start bit, 1 stop bit
; Set TI1, erase RI1
init_end:
...
...
ch1_in:
; Subroutine for reading a character from SERIAL1
mov
a,S1CON
jnb
ACC.0,ch_in ; Wait until character received
anl
S1CON,#0FEH ; Reset RI1
mov
a,S1BUF
ret
; character in ACC
ch1_out:
; Subroutine for outputting a character
; Output character in ACC
push
ACC
w_out:
mov
a,S1CON
jnb
ACC.1,w_out ; wait until TI1 ready for transmission
anl
S1CON,#0FDH ; Reset TI1
pop
ACC
mov
S1BUF,a
ret
Содержание miniMODUL-537
Страница 1: ...A product of a PHYTEC Technology Holding company miniMODUL 537 Hardware Manual Edition November 1993...
Страница 6: ...miniMODUL 537 PHYTEC Me technik GmbH 1993 L 006e_2...
Страница 24: ...miniMODUL 537 18 PHYTEC Me technik GmbH 2001 L 006e_2 Figure 3 The terminals of the miniMODUL 537...
Страница 38: ...miniMODUL 537 32 PHYTEC Me technik GmbH 2001 L 006e_2...
Страница 52: ...miniMODUL 537 46 PHYTEC Me technik GmbH 2001 L 006e_2...
Страница 56: ...miniMODUL 537 50 PHYTEC Me technik GmbH 2001 L 006e_2...
Страница 58: ...miniMODUL 537 52 PHYTEC Me technik GmbH 2001 L 006e_2...
Страница 66: ...Published by PHYTEC Me technik GmbH 2001 Ordering No L xxxe_x Printed in Germany...