Jump to content

32614_1489253935

Members
  • Content Count

    54
  • Joined

  • Last visited


Reputation Activity

  1. Like
    32614_1489253935 reacted to bluehash in Error when install compiler for PRU   
    Is you date correct and up-to-date?
  2. Like
    32614_1489253935 reacted to igor in How i can understand about...   
    Look in the processor data sheet.
    Since it mentions GPIO - look in the GPIO section,
    check the table of register offsets, find the register at offset 0x100
    see what the 7th6th bit does.
     
    However this one is a little tricky - not listed in table.
    But see section 10.2.1.2 "Data Register Operation" of the LM4F120h5qr data sheet (probably similar section if different processor).
    It uses the low part of the address offset from portC base as a mask to select which data bits to read/write.
    So this should be a way to access bit 6 of port C.
     
    Edit: Addition - To understand the HWREG macro - search through the library source code (or the documentation) to find where
    it is defined, or search for examples.
     
    Edit: Correction - in the first paragraph I used bit numbering starting from 1 (as I tend to think in those terms),
    then in the second paragraph I used numbering starting from 0 (as the data sheet does).
    (So where I said 7th, and where the data sheet said 6th meant the same bit.  Was just using different reference.)
    I have corrected my message, sorry for any confusion.
×
×
  • Create New...