Menu

16f916 output/input issues

Help
2009-07-21
2013-05-30
  • Nobody/Anonymous

    I m using the 16f916 and for some reason the ports c.0,c.1,c.4 are not working as outputs and c.5 is not working as a input, but c.3,6,7 are working fine and I tried different chips to make sure it was not the chip itself?

     
    • Nobody/Anonymous

      i got part of it fingured out but not all. if I use this code:
      #chip 16F916, 4 'mhz
      #config OSC=INTOSC, MCLRE=off, WDT=off

      dir portc.1 out '  red
      dir portc.2 out ' grn
      dir portc.3 out '  red
      dir portc.4 out ' grn

      start:
      set portc.1 on ' red
      set portc.3 on ' red
      set portc.2 on ' grn
      set portc.4 on ' grn
      goto start

      the c.3 and c.4 work but c.1 and c.2 do not they stay low?

       

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.