kgavionics
Full Member level 3
- Joined
- Jun 12, 2012
- Messages
- 167
- Helped
- 7
- Reputation
- 14
- Reaction score
- 11
- Trophy points
- 1,298
- Location
- Alberta.Canada
- Activity points
- 2,482
Hello guys
I have built a break-out board based on the keyboard encoder 74c923 hooked up to an Arduino UNO (AVR-GCC using Atmel studio 7), which sends a BCD digit each time I press on a key! All is working fine, but I can't figure out how to store the 3 digits into an 8 bit variable!
In the picture attached, the number 123 is stored in 3 memory locations (each digit is stored in a memory location) and I want to store the entered number in a single memory location (binary).
I can easily convert binary to BCD, but I'm struggling to do it the other way around!
Can someone give me a heads-up how to convert from BCD to Binary please?
Thank you in advance!
I have built a break-out board based on the keyboard encoder 74c923 hooked up to an Arduino UNO (AVR-GCC using Atmel studio 7), which sends a BCD digit each time I press on a key! All is working fine, but I can't figure out how to store the 3 digits into an 8 bit variable!
In the picture attached, the number 123 is stored in 3 memory locations (each digit is stored in a memory location) and I want to store the entered number in a single memory location (binary).
I can easily convert binary to BCD, but I'm struggling to do it the other way around!
Can someone give me a heads-up how to convert from BCD to Binary please?
Thank you in advance!