Chapter 9: Message transfers

The current value monitor of the timers/counters (COM = 23(H))

[Format]

ËCommand

COM TADRL TADRH LL

LH

ËResponse

COM RSLT TADRL TADRH

LL

LH

DATA1

......

 

DATAN

ATTR1 ......

ATTRN

 

COM

= 23(H)

 

 

 

 

TADRL, H

= Timer and counter number (0000(H) to 03FF(H))

See page 9-21.

LL, H

= Number of data to read

 

 

 

DATA1 to N

= The current value data (read current value field of the timer and the counter)

ATTR1 to N

= The attribute data of the timer and the counter

 

[Function]

-Reads the current values and the attributes of the timers/counters identified by the starting number TADR and the number of data L.

-Up to 256 timers/counters can be read at a time.

-The current value data is read from the timer/counter's current range (b0000 to xxxxx ).

-The attributes are as shown below :

 

 

00(H)

Not in use

0A(H)

UTMR(BCD)

 

 

01(H)

MD

0B(H)

UTMR(BIN)

 

 

 

 

 

 

 

 

02(H)

CNT

0C(H)

DCNT(BCD)

9

 

04(H)

TMR

0D(H)

DCNT(BIN)

 

08(H)

DTMR(BCD)

0E(H)

UCNT(BCD)

 

 

 

 

09(H)

DTMR(BIN)

0F(H)

UCNT(BIN)

[Execution condition]

 

- Write enable mode

: Mode 0, mode 1 and mode 2

- PC operation status

: Stopping, operating

[Example]

-Reads the current values of TMR0000 and TMR0001.

ËCommand

23

00

00

02

00

Top number of

the timer and Number of data the counter

ËResponse

23

00

00

00

 

 

 

02

00

 

34

 

92

 

78

 

D6

08

0A

 

 

 

 

Top number of

 

 

 

 

 

 

 

 

 

The current

 

 

 

The current

 

DTMR

UTMR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

the timer and

 

 

 

 

Number of data

 

 

 

 

value of

 

 

 

value of

 

(BCD)

(BCD)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

the counter

 

 

 

 

 

 

 

 

TMR0000

 

 

TMR0001

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1234

 

 

 

 

5678

 

 

 

9-28