Blinky on Lab-X1 twice as fast on 16F877 as on a 18F4550


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: Blinky on Lab-X1 twice as fast on 16F877 as on a 18F4550

    Quote Originally Posted by Demon View Post
    Test 2, set all ports on 16F877 as output:

    Code:
    TRISA = 000000
    TRISB = 000000
    TRISC = 000000
    TRISD = 000000
    TRISE = 000000
    
    PORTA = 000000
    PORTB = 000000
    PORTC = 000000
    PORTD = 000000
    PORTE = 000000
    No difference, still blinking at twice the expected rate...


    Robert
    Don't you have to make one of the External Oscillator pins an Input in the TRISx Register? I'm on the road and can't look at the Data Sheet.

  2. #2
    Join Date
    Aug 2011
    Posts
    455


    Did you find this post helpful? Yes | No

    Default Re: Blinky on Lab-X1 twice as fast on 16F877 as on a 18F4550

    On those old chips like the 16F877, OSC1 and OSC2 aren't part of PORTA.

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,170


    Did you find this post helpful? Yes | No

    Default Re: Blinky on Lab-X1 twice as fast on 16F877 as on a 18F4550

    Quote Originally Posted by mpgmike View Post
    Don't you have to make one of the External Oscillator pins an Input in the TRISx Register? I'm on the road and can't look at the Data Sheet.

    Pretty sure I saw that on USART pins.

    Robert

Similar Threads

  1. 4 x 4 Keypad on Port B (18F4550 with Lab X1)
    By Demon in forum Code Examples
    Replies: 7
    Last Post: - 21st April 2015, 07:08
  2. 50mS counter on Timer0 (18F4550 on Lab X1)
    By Demon in forum Code Examples
    Replies: 0
    Last Post: - 16th April 2015, 03:07
  3. convert from 16F877 to 18F4550
    By starwick in forum General
    Replies: 4
    Last Post: - 15th May 2013, 18:36
  4. Lab X1 and 16F877 examples for beginners
    By Demon in forum Code Examples
    Replies: 6
    Last Post: - 8th January 2012, 04:19
  5. A/D on 16F877. How fast can I go?
    By atomski in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 8th April 2004, 06:51

Members who have read this thread : 1

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