Jump to content
Sign in to follow this  
Caesar

Reading input using TM4C1294XL

Recommended Posts

Hi, I would like to know if TM4C1294XL is capable to read 3.25V as a HIGH state voltage?

 

I tried a to use GPIOPinRead to read HIGH state voltage, however it doesn't recognize that voltage level as a HIGH state

 

Your help will be much appreciated.  :)

Share this post


Link to post
Share on other sites

Hi everyone, it turns out that was actually a misunderstanding in using the GPIOPinRead API function

 

I thought GPIOPinRead would return a value of 1 if it reads HIGH level

 

but it turns out that it will actually return a value of 2^(pin_number) when it reads a HIGH.

 

Sorry for causing trouble to you guys 

 

:)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...