62 Threads found on edaboard.com: 8 Bit Binary To Bcd
I have problem in converting 26 bit binary to bcd using PIC 16F782 using assembly language.
I need to convert eg 2FAF080 hex to 50 000 000 dec using 4 registers casade together..
which mean 4 bytes. actually my application is to make use of timer0 as a counter to count the input freqency and store them in a 4 byte register.. (...)
Microcontrollers :: 01.06.2005 22:07 :: scdoro :: Replies: 1 :: Views: 1727
I searched in internet and find code for converting 8 bit and 10 bit numbers
So you got the answer, isn't it? I presume you know how to delete lines of code.
ASIC Design Methodologies and Tools (Digital) :: 03.05.2013 06:33 :: FvM :: Replies: 4 :: Views: 592
Using Couleur's Technique (BIDEC), a binary number (most significant bit, MSB) first is shifted and processed, such that the bcd equivalent is obtained when the last binary bit is clocked into the register.
The basic rule is: if a 4 or less is in a decade, shift with the next clock pulse; if 5 or greater (...)
PLD, SPLD, GAL, CPLD, FPGA Design :: 26.09.2005 04:32 :: svicent :: Replies: 8 :: Views: 5047
8 bit or 16 bit?
here is an 8 bit routine:
;* "bin2bcd8" - 8-bit binary to bcd conversion
;* This subroutine converts an 8-bit number (temp) to a 2-digit
;* i.e 0x15 becomes 0x21
;* result in (...)
Microcontrollers :: 09.03.2011 18:58 :: ctownsend :: Replies: 1 :: Views: 2785
can anyone share me code that converts an 8-bit binary to bcd.
im using the Altera Quarus II compiler and programming into the Altera DE2 board.
my intention is to convert output of a counter (8-bits) into bcd and then display it on the 7-segment.
both the counter and bcd-to-7 segment (...)
PLD, SPLD, GAL, CPLD, FPGA Design :: 23.02.2013 08:34 :: bhan1992 :: Replies: 1 :: Views: 603
Hey guys, I'm using a pic16F690 and I need assembly code for to convert an 8 bit binary to bcd and bcd to binary. I have to use the w register. Also, I only want to display numbers from 0 - 99, how do I write a default or error message in mplab? Thanks for the help :)
Check there are tons of code of th
Microcontrollers :: 09.08.2013 04:02 :: burt007 :: Replies: 7 :: Views: 866
It is something wrong with your program. It works uncorrect (maybe i do something wrong, i don't know).
I have a program converting 17 bit binary to 5 digit bcd (up to 99 999).
Here is it:
int TenK, Thou, Hund, Tens, Ones;
unsigned int num;
// operates on global variables:
// set num[0
Microcontrollers :: 08.10.2003 09:51 :: Alexander Prad :: Replies: 7 :: Views: 9391
GAL chip:LIke GAL16V8.etc
use google to find such imformation
Microcontrollers :: 01.06.2004 10:08 :: alphi :: Replies: 7 :: Views: 1680
i want to know how to convert binary to bcd or decimal in assembly
i want a code
you can use simble method for converting 8 bit binary number into decimal equivelt stored in 3 memory locations
code for 8051 family( let r0 contain the binary number and r1,r2,r3 contain decimal equavelent) (...)
Microcontrollers :: 05.09.2006 17:51 :: khaled_shaheen :: Replies: 9 :: Views: 38732
Maybe it helps you.
unsigned cha? rez;
void Bin_bcd_18(int val)
rez = (val%1000) / 100;
rez = (val%100) / 10;
rez = val % 10;
Microcontrollers :: 09.12.2006 22:42 :: En_Serg :: Replies: 4 :: Views: 4047
a newby needs help--using 16f874a , assembly . i am having trouble converting binary held in two 8 bit registers to bcd 3digit (0 to 999). help !
thanks more than i can say
Microcontrollers :: 10.12.2007 07:00 :: rolg :: Replies: 3 :: Views: 2338
you should be able to do the transformation by first doing a mapping. Use the truth tables and the graphical method for each output bit.
Many years ago there were commercial ICs for this. Try looking through an old TTL data book. They will have diagrams of the logic inside the chips. 74185 is one example.
The 74185 turns ou
Microcontrollers :: 30.07.2005 23:17 :: flatulent :: Replies: 3 :: Views: 4804
A binary to two-digit bcd converter
Input = 7 bit,
binary count = 00000000-1100011
Output Required = 4bit + 4bit (=8 bits for two digit)
Output count = 00,01,02,03,.....99
bits need = 100*8 = 800 bits
Use ROM is 2^7 x 8 = 1024 (...)
Electronic Elementary Questions :: 08.12.2006 22:21 :: Project_maker :: Replies: 3 :: Views: 890
are you planning on displaying in decimal format or using binary form(i.e. one bit each in one 7 segment display).....
well if i use decoder like 7447 then its input will be 4 bit and output of 8 breaking the 16 bit output in 4 bit make them bcd again ...
Electronic Elementary Questions :: 19.07.2007 08:21 :: MSRA :: Replies: 12 :: Views: 3836
I have searched the forum but couldn't find what i wanted exactly..
Say i have an output from an 8-bit binary counter "95" .. I want to display it on 7-segment displays on a spartan 3E FPGA board..
What is the solution of this problem even if i got the bcd conversion, how can I display it on 7-segments?
Thanks for your concern..
ASIC Design Methodologies and Tools (Digital) :: 12.06.2010 09:12 :: b bin b :: Replies: 0 :: Views: 1162
Hello i am having these verilog code for 16 bit binary to bcd conversion . I am not getting the algorithm or method used for it
I have uploaded file for it.
ASIC Design Methodologies and Tools (Digital) :: 02.01.2012 03:36 :: harshmane :: Replies: 0 :: Views: 2041
how can i make voltmeter with ADC0808 without micro controller
this is my project in my collage !!!
can anyone help me ?!!
thx in advance :!:
Electronic Elementary Questions :: 31.05.2012 00:04 :: Ghostknight2010 :: Replies: 3 :: Views: 514
Maybe some of these exampless will be of any use to you:
5 Software Applications 5-1 . . . . . . . . . . . . . . . . .
5.1 Integer Calculation Subroutines 5-2 . . . . . . . .
5.1.1 Unsigned Multiplication 16 x 16-bits 5-2 . . . .
5.1.2 Signed Multiplication 16 x 16-bits 5-7 . . . . . .
5.1.3 Unsigned Multiplication 8 x
Microcontrollers :: 04.04.2006 04:06 :: IanP :: Replies: 3 :: Views: 2254
and find Hex/Dec Converter /LCD .. by Jacek Bogusz ..
24-bit binary to decimal(bcd) .. by Manoj R. Thakur ..
Microcontrollers :: 05.09.2006 21:02 :: IanP :: Replies: 3 :: Views: 1835
I need working assembly routines for -
32 bit x 32 bit integar multiplication
32 bit / 32 bit integar division
32 bit binary to bcd conversion
12 Packed Digits bcd to binary conversion
These routines I need for MSP430 (...)
Microcontrollers :: 21.04.2007 14:23 :: kumar :: Replies: 0 :: Views: 1183
Hi there. I haven't the foggiest on the best way to do this in ASM. What I need is to convert a hex number to the hex representation of the decimal number. For example:
2Eh (It iss equal to 46d)
I need to end up with the byte in hex because of how I send the byte to the screen by converting each nibble into i
Microcontrollers :: 04.05.2009 20:55 :: SavEagle :: Replies: 5 :: Views: 2082
OK not a BIG deal u can use Micrcontroller in between 8-bit parallel data & three 7-segments display, just u need to program the microcontroller thatz it . . .
Microcontrollers :: 07.11.2010 02:46 :: hameeds01 :: Replies: 5 :: Views: 1326
I trying to implement this methode of binary to bcd conversation: It uses the shift 3x -> add + 3 if grather than 5 -> shift 1x methode.
PLD, SPLD, GAL, CPLD, FPGA Design :: 07.02.2012 15:22 :: Kepsz :: Replies: 7 :: Views: 1051
mmmm... how many digits do you need?
alas, how many bytes is your number stored?
don't forget, that the microcontrollers has all it's data in binary form, it could be 8 bit integer number, 16 bit integer number, 32 bits integer, or even 32 bit float number.... (too many)
Microcontrollers :: 23.03.2012 13:06 :: Kurenai_ryu :: Replies: 5 :: Views: 762
Here is my understanding about what you've wrote , tell me if it is correct : you want display a decimal number on seven segment but your number is binary and you need to convert it into decimal right ?
If my consideration is right you can go through many of the available binary to 7 segment integrated circ
ASIC Design Methodologies and Tools (Digital) :: 23.04.2013 20:45 :: vveerendra :: Replies: 3 :: Views: 370
In your previous post you mentioned GAL16V8.
Do you still have to use it?
Its application can be conversion from input buttons 1, 2, 3,...9 to their 7-segment codes and then using modulo-7 counter shift them into 28-bit shift register and display this 28-bit register as 4 x 7-segmant.
Can you use a small microcontroller?
Would be quite easy t
Digital Signal Processing :: 20.03.2005 21:39 :: IanP :: Replies: 6 :: Views: 2239
8051 bit MASKING:
I have to use same PORT (SAY P1) for bcd to 7-Segments and other for four different Switches.
My Question is:
How to mask bitS/PINS which does not cause any effect to other pins when i have to acces PORT for bcd to 7 -Segment
Please Clear me concept of bit Masking (...)
Microcontrollers :: 22.05.2009 08:38 :: karan123 :: Replies: 4 :: Views: 2677
I wanted to use a 27c256 EPROM as a binary to bcd converter. Basically the 16 bit binar number is the address while a 8 bit bcd in the output. Simple enough. But I don't know how to produce a bin or hex file which would load the wanted data in the EPROM.
Please note that this is a part (...)
Hobby Circuits and Small Projects Problems :: 12.01.2010 14:36 :: blitzkreig :: Replies: 1 :: Views: 2505
16 bit hex to bcd @
Many codes available @
Microcontrollers :: 17.02.2010 12:20 :: amraldo :: Replies: 6 :: Views: 2839
I suppose you meant ADC's output!
Indeed it is not trivial, specifically when converting the 8-bit binary to 10-bit bcd!
But converting the 10-bit bcd to 7-segment is easy, using for example IC-4511 or 7447!
A Truth table is one way, perhaps on a PROM!
Analog Circuit Design :: 21.05.2010 17:38 :: wsalem :: Replies: 1 :: Views: 1030
i am using pic16f72 with 8 bit
ADC ie max FF h = 255 decimal steps .
Now if i want to display ( 00.0
Microcontrollers :: 09.04.2011 08:47 :: spiba :: Replies: 2 :: Views: 558
The '163, 'LS163A, and 'HC163 are 4-bit binary counters. For your application you need decade counters, example: '160, '162, 'LS160, 'HC162.
---------- Post added at 17:38 ---------- Previous post was at 17:27 ----------
Electronic Elementary Questions :: 21.06.2011 12:38 :: mister_rf :: Replies: 107 :: Views: 8034
Hello! Was wondering if anyone could help give an overall idea of how to implement a tach with a 16F628 in asm.
As of now, I have four 7-segments hooked up and multiplexed with a TMR2 interupt to update each digit at about 6ms. (just reduced it down till it didn't flicker) I have a halleffect sensor i would like to hook up to RA4 to count wi
Microcontrollers :: 20.10.2011 15:30 :: diegotheslinger :: Replies: 2 :: Views: 420
Hi every one,
I am using ADC0808, microcontroller 89C51, and 16X2 Alpha-numeric LCD to display the sensed data using sensors connected to ADC0808.
1) what will be the data formate of output of ADC, is it binary or bcd?
2) what should be the data output of 89c51 that is acceptable for LCD?
3) what i
Microcontrollers :: 11.11.2011 04:26 :: Qaisar Azeemi :: Replies: 10 :: Views: 718
In theory for this project you may use one IC 4 bit binary full adder and one IC quadruple 3 lines to 1 line multiplexer. The result of the multiplexer to be applied to a bcd to 7 segment decoder and address multiplexing to be implemented with push buttons.
In practice we may use for example two IC dual 4-line to 1-line (...)
Analog Circuit Design :: 09.03.2012 09:27 :: mister_rf :: Replies: 24 :: Views: 2152
What do I search on Google?
Dear, just use your thread title. Or "full adder".
Analog Circuit Design :: 23.03.2012 08:00 :: erikl :: Replies: 3 :: Views: 1006
P1. Draw the circuit diagram of a 4-bit adder which can add 4-bit binary numbers and
display the result on a 7-segment display. Assume that the sum results can never exceed
the number 9. Furthermore design an overflow detection circuit which will light up an
l.e.d. when the sum exceeds 9.
P2. Using two 74LS83A adders, modify the (...)
Electronic Elementary Questions :: 22.03.2012 14:08 :: chrisdb3st :: Replies: 0 :: Views: 420
Say you are using 8 bits. Then a value can occupy a range from zero to 255.
Say zero represents 0V, and 255 represents 5V. Then you can use a simple proportion to translate any value to a voltage.
To model this in electrical terms, each analog voltage is derived by sending 5 volts through resistors of different values.
Similarly each bit is weig
Digital Signal Processing :: 24.09.2012 16:37 :: BradtheRad :: Replies: 3 :: Views: 492
I am trying to set up a a 4-bit binary counter to rest at count ten.
Since I didn't have LS390' I had to create a condition rest clock made from an AND gate chip.
First I used one gate to get triggered when Qc and Qa where active. However when I do this it only
Analog IC Design and Layout :: 23.03.2013 20:19 :: Zanderist :: Replies: 2 :: Views: 259
For an 8-bit register of PIC16F84 the data read in, is a binary number from a bcd dip switch but the bits read in are not in a uniform order (bit order is different). How to converted to a decimal value in binary format, like 54 = 00110110, but the order read in is 10110010.
What is the (...)
Microcontrollers :: 05.01.2005 14:57 :: emax0198 :: Replies: 2 :: Views: 519
What programming/HDL language are you using?
Are those decimal numbers? If it's decimal, is it stored as binary or bcd? You may need to do integer division, like this in C: 652585432/100000
PLD, SPLD, GAL, CPLD, FPGA Design :: 09.05.2005 13:05 :: echo47 :: Replies: 7 :: Views: 1307
i need a bit of code that takes bcd from the RS232 port and converts it in to binary and displays it on PORT B with 8 leds.
This needs to be simple for a newbe like me.
is there any one that could help with this
Microcontrollers :: 14.06.2005 11:50 :: ahmet2004 :: Replies: 2 :: Views: 620
This is my first post to this forum, so bear with me. I'm working on writing assembly code for a R/C microturbine tachometer. I'm very new to this so, I really could use some help. I'm using the PIC 16F84A micro controller chip, compling the language with MPLAb IDE v 7.30 and assembling the data with Mplasm. I'm having a problem displayi
Hobby Circuits and Small Projects Problems :: 16.05.2006 21:13 :: desmop :: Replies: 2 :: Views: 1546
hello genius guys
well now i am making a XCESS-3 calculator .the only problem i am facing is HOW TO DRIVE SEVEN SEGMENT DISPLAY
i am using 7447 seven segment display ic.How this ic can be used.
how i connect my output from calculator (binary form) to this 7447 ic.
plz reply soon
thz in advance
Digital communication :: 01.07.2006 12:44 :: installer2001 :: Replies: 1 :: Views: 2500
Please explain more clearly what you mean by "hex" and "decimal". Do you want to convert an ASCII string such as "12FC3B" into another ASCII string "1244219"? Or something else?
byte1=0x02; byte2=0x77; byte3=0x2F; (02772F) to be converted in decmail(2585343)
I am looking for a routine in c.
Microcontrollers :: 19.09.2006 07:46 :: ravi_p :: Replies: 4 :: Views: 1784
Hi, having a problem working out the following:
If a 12 bit DAC has a full scale voltage of 10V and uses binary coded input, what is the full scale output ; output voltage of an input code of 111100001111 and finally the voltage resolution?
any help would be much appreciated.
Electronic Elementary Questions :: 20.05.2009 09:57 :: Tino1210 :: Replies: 3 :: Views: 827
Does anyone know how to design 16-bit up counter using verilog HDL?
from the binary output produced, it need to be converted into bcd. Then the decimal number will be display at 7-segment. Does anyone know the step/flow should be done for this experiment?
PLD, SPLD, GAL, CPLD, FPGA Design :: 23.09.2010 10:21 :: fikrul :: Replies: 0 :: Views: 1915
Can any one post the viva questions and answers for digital electronics lab.
The experiments are
1.half adder and full using NAND
2.binary to gray code converter
3.gray to binary code converter
4.bcd to Excees3 code converter
5.binary adder/subtractor and bcd adder using IC 7483
6.Magnitude comparator (...)
Electronic Elementary Questions :: 17.10.2010 11:09 :: atchutharam :: Replies: 6 :: Views: 10374
I want to make a circuit that controls about 60 Leds. The number is flexible, but my target is 60. I only need one on at a time, because the "On" Led will move from left to right, then back. I know I can use 555+4017s to count up, and I've designed this schematic50232 based on cascading 4017s. This schematic doesn't go up to 60 ou
Hobby Circuits and Small Projects Problems :: 26.10.2010 13:15 :: russellito :: Replies: 18 :: Views: 2945
The output from ADC is a binary number in the range 0 - 255 (Decimal).
Convert this number to three digits (bcd), 4 bit nibbles.
Use these three digits one by one, to convert it to ASCII just add 48 (decimal).
Send this to the LCD display. Use appropriate order of these ASCII codes to display correct value.
Microcontrollers :: 18.10.2011 14:52 :: ark5230 :: Replies: 1 :: Views: 565