Baud Rate Establishing - Sanyo MBC-550 Series User Manual

Table of Contents

Advertisement

Baud Bate Establishing
^^kBaud rate can be changed by writing a new point into
^^counter 2.
Example of baud rate changing program
(4800 baud)
10 BPS = 4800.-REM BAUD RATE
20 RSBR=&H24:REM COUNTER 2
BPS EQU 4800: Baud rate
RSBR EQU 24H: COUNTER 2
RATE EQU 59658/((BPS/30)*l6) J30 RATE=59658/((BPS/30)*16)
40 AL = RATE AND 255
50 AH = (RATE/256) AND 255
60 OUT RSBR, AL:REM LSB
70 AL =AH
80 OUT RSBR,AL:REM MSB
Basic
i
i
i
i
i
MOV AX, RATE
OUT RSBR, AL :LSB
MOV AL,AH
OUT RSBR AL
:MSB
Assembler
i
i
i
i
i
i
i
i
i
NOTE: Sanyo Basic is able to handle baud rates up to
1200.
assembler.
Rates higher than 1200 must be accessed through
Default upon cold boot is 1200.
5-37

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents