TMR1 external LP xtal setup check


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Code:
    HIGH PORTB
    TOGGLE PORTB
    What those do is read PORTB, takes the value and turns it into a pin number, then toggles that pin.

    As the value of the PORT changes, so does the PIN that's being toggled.
    <br>
    DT

  2. #2


    Did you find this post helpful? Yes | No

    Default

    indeed... i replaced portb with portb.0 and it now seems to work...

    I used a stopwatch to time the LED and it was slightly over... I timed it 10 times and each one came back within 0.1 second of the same value so i've worked out a preload for TMR1...

    I'm going to have a play with your (DT's) instant interupts, i need to use interupts now coz i'm dealing with HS serial coms...


    Thanks Darrel

Similar Threads

  1. Replies: 1
    Last Post: - 28th January 2010, 22:15
  2. Replies: 2
    Last Post: - 7th October 2009, 00:06
  3. 16f877A and tmr1 external crystal question
    By comwarrior in forum General
    Replies: 3
    Last Post: - 13th July 2009, 00:40
  4. Code check -- button not working
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 2nd March 2006, 22:43

Members who have read this thread : 0

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

Posting Permissions

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