During this journey of learning, a few people have spoken to me about this, and in one case (I can't remember which chip it was), I had an issue configuring a two-byte register. It turned out that the datasheet said one thing, but in reality, four of the bits were backasswards. My frustration was through the roof, because I *thought* I was doing everything correctly, but being pretty new to the game, was ready to deskpalm my face.

I don't remember exactly what led me to reversing the bits, but I can definitely understand what you're saying here even though my experience was a lot more mild than yours was.

Lesson was (and is again re-inforced) to never take a datasheet at face value, and if one isn't getting proper results even though they're certain their code is right, the docs may not be completely representative of reality.


In reply to Re^6: Given my Raspberry Pi work, Happy Pi day Perlmonks! by stevieb
in thread Given my Raspberry Pi work, Happy Pi day Perlmonks! by stevieb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.