if I have a port that has only 4 bits, but I am writing 0xFF & 0xF to it. What will happen? Will it truncate the most significant 4 bits or what?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, that expression (masking with 0x0F) will take the bottom 4 bits from the value. Hopefully your port is connected to the 4 least significant bits of the bus – you’ll need to consult the hardware documentation.