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
How insert 14-bit number (14424) to 8-bit microcontroler? I have DS 5000T
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 :
Have something to add? Share your thoughts — no account required.
Ask the community — no account required