Discussion:
how to join two 4 bit nuumber to 8 bit number
(too old to reply)
indrajit
2008-04-03 17:40:11 UTC
Permalink
hi  i am having format ( two eight bit) data , but the data is only 4 bit , i want to join them into eight bit data.......it is not possible with join numbers
MikeS81
2008-04-03 19:40:11 UTC
Permalink
Hi indrajit,
how would you join your two numbers? Can you show us your two numbers and your expected result?
Mike
indrajit
2008-04-04 02:40:09 UTC
Permalink
hi mike              let us usume two numbers (00001111) and (00001010) ok i want to join this as (10101111).i want to shift the second data into 4 positions and join to the first number.
Dennis Knutson
2008-04-04 03:40:11 UTC
Permalink
Shift the second data and do a logical or.
You posted to the digital I/O board and not one of the programming forums and don't mention what language you are using. If LabVIEW, use the Logical Shift function.
indrajit
2008-04-04 13:40:09 UTC
Permalink
thanku for ur kind information , before your msg i done it ....any how thanks a lot.................
Loading...