Menu

Timer help

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

    Edward LaBudde - 2009-03-01

    Hi all, newbie here, gave up on the LCD for now.  I basically copied this out of the help files.  It tells me that there is a syntax error in: InitTimer Osc, PS1_1/8, What is going wrong? 

    #chip 16F88, 8
    #config INTRC_IO

    #define Switch PORTA.0   

        dir Switch In
        DataCount = 0
        InitTimer Osc, PS1_1/2

        Start:
            ClearTimer 1
            Wait until Switch On
            StartTimer 1
            Wait until Switch Off
             StopTimer 1
       
            EPWrite(DataCount, TMR1H)
             EPWrite(DataCount + 1, TMR1L)

        Goto Start

     
    • Santiago

      Santiago - 2009-03-03

      Try this (for timer1):

      InitTimer1 Osc, PS1_1/2

       
    • Edward LaBudde

      Edward LaBudde - 2009-03-03

      Santiago, thank You!, You are so smart.  That works. 

      Keep looking at my posts, I need the help.  Please note the code was right out of the help file.

      Kent can you get this error fixed, to save others the hair pulling I went through (I don't have enough left to afford much more)?

      Regards, 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.