14-bit number to 8-bit microkontroler?

Aug 23, 2006 3 Replies

How insert 14-bit number (14424) to 8-bit microcontroler? I have DS 5000T



32-16. He can't adres word, or dword. Thank you
Buiæ Bojan www.pulainzenjering.hr

Use two 8 bit locations, usually adjacent for ease.

On the subject of 'word' etc., the word size for that processor *is* 8 bits. The usage of 'word' to mean a specific number of bits is an abomination.

Cheers

PeteS

inz,

You need to implement multi byte functionality in software. To make a 16 bit counter with only 8 bit instructions: Rlow = Rlow+1 if Rlow == 0 then Rhigh = Rhigh + 1

In your case you'd have 2 registers, the low 8 bits and the upper 6 bits, with 2 bits unused.

I'm not familiar with the microcontroller you mention. The above is just pseudo-code.

-Dave

Try here :

formatting link

16 bit math routines for the '51 (includes the DS5000) M

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required