IDEC MicroSmart User Manual

Page 287

Advertising
background image

17: U

SER

C

OMMUNICATION

I

NSTRUCTIONS

« FC4A M

ICRO

S

MART

U

SER

S

M

ANUAL

»

17-9

Transmit Digits (Bytes)

After conversion, the transmit data is taken out in specified digits. Possible digits depend on the selected conversion type.

Example: D10 stores 010Ch (268)

(1) Binary to ASCII conversion, Transmit digits = 2

(2) BCD to ASCII conversion, Transmit digits = 3

(3) No conversion, Transmit digits = 1

Repeat Cycles

When a data register is designated to repeat, consecutive data registers, as many as the repeat cycles, are used for transmit
data in the same conversion type and transmit digits.

Example:

Data of data registers starting with D10 is converted in BCD to ASCII and is transmitted according to the designated repeat
cycles.

010Ch

D10

Binar y to ASCII conversion

“0”

(30h)

“1”

(31h)

“0”

(30h)

“C”

(43h)

Transmitted data

“0”

(30h)

“C”

(43h)

Lowest 2 digits

ASCII data

010Ch

D10

Decimal

“0”

(30h)

“0”

(30h)

“2”

(32h)

“6”

(36h)

“8”

(38h)

Lowest 3 digits

“2”

(32h)

“6”

(36h)

“8”

(38h)

BCD to ASCII

00268

value

conversion

Transmitted data

ASCII data

010Ch

D10

No conversion

SOH

(01h)

FF

(0Ch)

FF

(0Ch)

Lowest 1 digit

ASCII data

Transmitted data

000Ch

D10

0022h

D11

0038h

D12

Data register No.: D10

Transmit digits:

2

Conversion type:

BCD to ASCII

000Ch

D10

“1”

(31h)

“2”

(32h)

“3”

(33h)

“4”

(34h)

00012

Repeat 1

0022h

D11

Decimal value

00034

BCD to ASCII conversion

Repeat 2

ASCII data

(1) Repeat cycles = 2

000Ch

D10

“1”

(31h)

“2”

(32h)

“3”

(33h)

“4”

(34h)

00012

Repeat 1

0022h

D11

Decimal value

00034

BCD to ASCII conversion

Repeat 2

0038h

D12

00056

Repeat 3

“5”

(35h)

“6”

(36h)

ASCII data

(2) Repeat cycles = 3

Advertising