IDEC MicroSmart User Manual

Page 295

Advertising
background image

17: U

SER

C

OMMUNICATION

I

NSTRUCTIONS

« FC4A M

ICRO

S

MART

U

SER

S

M

ANUAL

»

17-17

Receive Digits

The received data is divided into a block of specified receive digits before conversion as described below:

Example: Received data of 6 bytes are divided in different receive digits. (Repeat is also designated.)

(1) Receive digits = 2

(2) Receive digits = 3

Conversion Type

The data block of the specified receive digits is then converted according to the designated conversion type as described
below:

Example: Received data has been divided into a 2-digit block.

(1) ASCII to Binary conversion

(2) ASCII to BCD conversion

(3) No conversion

Repeat Cycles

When a data register is designated to repeat, the received data is divided and converted in the same way as specified, and
the converted data is stored to consecutive data registers as many as the repeat cycles.

Example: Received data of 6 bytes is divided into 2-digit blocks, converted in ASCII to Binary, and stored to data registers
starting at D20.

(1) Repeat cycles = 2

“1”

(31h)

“2”

(32h)

“3”

(33h)

“4”

(34h)

2 digits

“5”

(35h)

“6”

(36h)

2 digits

2 digits

1st block

2nd block

3rd block

“1”

(31h)

“2”

(32h)

“3”

(33h)

“4”

(34h)

3 digits

“5”

(35h)

“6”

(36h)

3 digits

1st block

2nd block

0012h

ASCII to Binar y conversion

“1”

(31h)

“2”

(32h)

00012

ASCII to BCD conversion

“1”

(31h)

“2”

(32h)

000Ch

Hexadecimal value

3132h

No conversion

“1”

(31h)

“2”

(32h)

0012h

D20

Repeat 1

0034h

D21

ASCII

to Binary conversion

Repeat 2

“1”

(31h)

“2”

(32h)

2 digits

1st block

“3”

(33h)

“4”

(34h)

2 digits

2nd block

Advertising