IDEC MicroSmart User Manual

Page 291

Advertising
background image

17: U

SER

C

OMMUNICATION

I

NSTRUCTIONS

« FC4A M

ICRO

S

MART

U

SER

S

M

ANUAL

»

17-13

2. Check that TXD is selected in the Type box and click Port 1 in the Port box. Then, click Insert.

The Data Type Selection dialog box appears. You will program source operand S1 using this dialog box.

3. Click Constant (Hexadecimal) in the Type box and click OK. Next, in the Constant (Hexadecimal) dialog box, type

02 to program the start delimiter STX (02h). When finished, click OK.

4. Since the Transmit instruction dialog box reappears, repeat the above procedure. In the Data Type Selection dialog box,

click Variable (DR) and click OK. Next, in the Variable (Data Register) dialog box, type D10 in the DR No. box and
click BCD to ASCII to select the BCD to ASCII conversion. Enter 4 in the Digits box (4 digits) and 2 in the REP box
(2 repeat cycles). When finished, click OK.

5. Again in the Data Type Selection dialog box, click BCC and click OK. Next, in the BCC dialog box, enter 1 in the Cal-

culation Start Position box, click ADD for the Calculate Type, click BIN to ASCII for the Conversion Type, and click
2 for the Digits. When finished, click OK.

Advertising