10F222 ADRES as one more VAR?


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default No go for using ADRES :(

    Okay, I guess that explains why I couldn't get my program working, would have been nice to use ADRES.

    As far as the booleans, I cannot use them now without getting the "unable to fit variable" error.

    I currently use one word sized and one byte sized variable.

    When I look at the list file I see that R2 and R3 are not used. Does that mean I can do something like;
    Code:
    NewVariable  VAR   R2
    New approach, I set OPTION_REG.5 = 1 so that TMR0 would not increment and I am using that for my missing byte. It is working so far... but if I can use R2 or R3 that would be better because I wanted to try to use TMR0.

    Rich H

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    971


    Did you find this post helpful? Yes | No

    Default

    Looks like you can get by doing that. Try it out!!!

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    With Timer0 clock source set to external, and using TMR0 register as a variable, I would check to make sure TMR0 isn't incrementing when taking GP2 high/low.

    Some internal counters, when configured for external clocks, will increment if you're using the pin as an output & toggling the pin.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts