Unable to undersand bit representatin

Hii
i am writing byte 0x7f through serial port of arduino and what i am getting on my logic anlyzer is like this


it is getting a bit confusing becase the bit representation is actually 1111 1110 whic 0xFE

but it should be 0111 1111.

anyone have any explaination for this?

Please use the flag button to ask the moderator to move this to a more appropriate forum category.

Also, please take some time to read the "How to get the best out of this forum" post, and add the required information to the post.

LSB first?

even considering lsb first, it is turning out to be 1110 1111 which is 0xEF , but logic anylyzer is showing it as 0x7f :face_with_peeking_eye:

How so?

(Why is this still in "installation and troubleshooting"?)

Looks fine to me. First LOW (0) is the start bit followed by the LSB (1). 7 1's and a 0 which is 0x7F when LSB is first.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.