2 Replies Latest reply on Mar 11, 2012 11:46 AM by evgeniy.stenkin

    c7yc680013 (56 pin)

    evgeniy.stenkin

      Oddities in the work -
      Here is my code:

         

      #include "fx2.h"
      #include "fx2regs.h"

      void configure_chip(void)
      {
          OEB = 255;
          PB1 = 0;
      }

      void main (void)
      {
      configure_chip();
      PB0 = 1;
      }

         


      This code does not give a positive potential on the PB0 - why?

      If you do this:

         

      void main (void)
      {
      configure_chip();
      PB0 = 1;

         

      PB0 = 1;

         

      PB0 = 1;
      }

         


      then everything is fine .... : (