Skip to main content
This topic has been closed for replies.

2 replies

bhavin_shah10
Associate
May 17, 2011 8:16 AM UTC
Posted on May 17, 2011 at 10:16

Hi there!

I am new user of st72141.

In my program i have use one 16-bit register (speed_ref).

:

.Speed_ref

DC.W $2000. ; {HEX= 07D0}

My question is which 8-bit represent MSB bits.

{Speed_ref} or {Speed_ref+1}

Am i going right way by?

{speed_ref=07} and {speed_ref+1=D0}

or its other way around

Regards

BK
gaetano
Visitor II
May 17, 2011 8:16 AM UTC
Posted on May 17, 2011 at 10:16

Yes, your hypothesis is the right one!

Instead, if you used the compiler directive 'WORD' the assignment would be the opposite.

Regards,

Tanio