Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20613

BASCOM-AVR : 3 digit bcd? : REPLY

$
0
0
[quote:ee79125e0e]In the past with assembly I use the routine bin2bcd16 for that propose. [/quote:ee79125e0e] You can use [code:1:ee79125e0e]Dim Number As Word Dim Tempw As Word Dim Hundreds As Word Dim Tens As Byte Dim Units As Byte Number = 876 Hundreds = Number / 100 Tempw = Number Mod 100 Tens = Tempw / 10 Units = Tempw Mod 10[/code:1:ee79125e0e]

Viewing all articles
Browse latest Browse all 20613

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>