pic 16f877a time problme

Discussion in 'Embedded Systems and Microcontrollers' started by emad shaaban, Apr 13, 2012.

  1. emad shaaban

    Thread Starter New Member

    Apr 10, 2012
    8
    0
    hi all
    when i use flowcode to make simple programe for flasing LED ,the programe work good in FLC and Proteus .but in real the Led is Steady on, i try to make the command of LED off above the time and ON after the timer the resulit is the LED is steady off
    note i use micro and mill second uints but i got the same resuilt.
    all the configuration bit was disable save HS ,and WRT(no diable option)
     
  2. chrisw1990

    Active Member

    Oct 22, 2011
    543
    41
    have you scoped the pin?
    i bet its flashing too fast.
    about 10hz is enough to be too fast.
     
  3. emad shaaban

    Thread Starter New Member

    Apr 10, 2012
    8
    0
    thank you very much fot your reply
    i solve it by changing the configuration bit (WRT = wrt_half) and it start to be okay , but i do not understand why,
     
  4. chrisw1990

    Active Member

    Oct 22, 2011
    543
    41
    by half? what value is this actually translated into?
    i would try set it to turn the write protection off, if you look in the datasheet, the wrt bits are used to set the write protection, by setting them, you protect the whole lot, so maybe you or it had accidentally enabled this?
     
Loading...