How to convert a decimal value to 7-bit ASCII code and ASCII with even parity? Please use 1234 as an example.
There is no easy way of remembering ASCII codes Go through ASCII table and make the conversions I am adding parity bit on left side of the 7-bits. If you want to add on right side, you can do so. I am providing explanations.. 1 -> 49 -> 0110001 Parity bit is 1 So, 1 in 8-bit ASCII is 10110001 2 -> 50 -> 0110010 Parity bit is 1 So, 2 in 8-bit ASCII is 10110010 3 -> 51 -> 0110011 Parity bit is 0 So, 3 in 8-bit ASCII is 00110011 4 -> 52 -> 0110100 Parity bit is 1 So, 4 in 8-bit ASCII is 10110100 In binary: 10110001 10110010 00110011 10110100
Get Answers For Free
Most questions answered within 1 hours.