Skip to main content
Visitor II
March 26, 2010
Question

bidirectional GPIO on STM8?

  • March 26, 2010
  • 1 reply
  • 580 views
Posted on March 26, 2010 at 16:36

bidirectional GPIO on STM8?

    This topic has been closed for replies.

    1 reply

    will2Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:07

    After playing around with this some more, I found that initializing the Port E pins as open-drain outputs, I can still use PE7 as an input to watch when the LCD is finished processing an instruction.  I set the pin high, and then sit in a while loop while watching for the msb to clear in the input data register for port E.  Seems to be working fine now...