Menu

How to set the direction of I/O on a F509

Help
2009-02-01
2013-05-30
  • Edward LaBudde

    Edward LaBudde - 2009-02-01

    Hi all, the PIC virgin is back!  I have successfully wrote a simple program for a 16F88.  I am now trying to port it to a 12F509.  When attempting to compile I get errors saying that you can not set the direction of I/O pins in 12 bit devices.  The data sheet shows they are bi-directional.  I have tied portb and GPIO names for the ports , but the error message is the same.  Is this feature not supported by GCBasic?

    Can anyone help, Thanks, Ed.

     
    • Edward LaBudde

      Edward LaBudde - 2009-02-02

      Never Mind!  Found it in the bowels of the help messages.

      'movlw b'11001111'
      'option

      Ed.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.