5 text, 1 introduction – Matrix Orbital PK162-12 User Manual

Page 21

Advertising
background image

Description

This command sets the RS-232 port to a non-standard baud rate. The
command accepts a two byte parameter that goes directly into the mod-
ules baud generator. Use the formula, speed =

CrystalSpeed

8×DesiredBaud

1 to cal-

culate the [speed] for any baud rate setting. The speed can be anywhere
from 12 to 2047 which corresponds to a baud range of 977 to 153,800
baud. Setting the baud rate out of this range could cause the display to
stop working properly and require the Manual Override jumper to be set.

Remembered

Always

Examples

Crystal Speed

8 Mhz

speed =

crystalspeed

8 ∗ DesiredBaud

1

speed = 74.07 1

speed =

8, 000, 000

8 13, 500

1

speed = 73.07

LSB = 0x4A (rounded)

MSB = 0x00

Inteded Baud Rate: 13,500 baud

Actual Baud Rate:

8,000,000

8(73+1)

=13,675

Percent Difference: 1.8%

NOTES

Results from the formula are rounded down to the nearest whole number (73.07 =
73).

This formula becomes less acurate as baud rates increase, due to rounding.

Place the speed result backwards into the formula to receive the actual baud rate.
(Baud =

CrystalSpeed

8(speed+1)

)

The actual baud rate must be within 3% of the intended baud rate for the device to
communicate.

5 Text

5.1 Introduction

The PK162-12 is an intelligent display module, designed to reduce the amount of code necessary to

begin displaying data. This means that it is able to display all characters and strings that are sent to it, which
are defined in the current character set. The display module will begin displaying text at the top left corner

Matrix Orbital

PK162-12

17

Advertising