Help with an 16f876a


Closed Thread
Results 1 to 5 of 5
  1. #1
    gusanoloco's Avatar
    gusanoloco Guest

    Unhappy Help with an 16f876a

    Hi to all,
    i was working on a program and i had it running ok on an 16f628 but i need a
    little more output pins and have migrated to an 16f876a and from now i cant
    do work anything
    i have tried this code with anything connected to pic (well, there is a
    cristal, condensers, reset resistor an a led on portc2)

    DEFINE OSC 4
    trisc.2=0
    ProgramStart:
    high portc.2
    pause 10000
    low portc.2
    GOTO ProgramStart

    and this don't work
    what i'm doing wrong?

    Cheers Juanjo

  2. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Assuming you are using a 4 MHz crystal:

    Have you set "XT OSC" when programming the device?

    if so

    Do the capacitor values match your crystal?

    One of the most common problems is: the oscillator does not start.

    rgds

  3. #3
    gusanoloco's Avatar
    gusanoloco Guest


    Did you find this post helpful? Yes | No

    Thumbs up

    Hello again, problems are solved, some changes on define sentences and everything is up again

    Anyway thanks for the attention

    Regards.

  4. #4
    Naslund's Avatar
    Naslund Guest


    Did you find this post helpful? Yes | No

    Smile Need help

    Hi.

    I’m also trying to go from a 628 to an 876A.

    Could someone give me an example of working pbp2 code that makes
    PortA.0-3 output
    PortB.1-5 output
    PortC.0-3 input
    PortC.4-7 output
    All digital.

    I’m trying to set the TRISX but it won’t work.
    Is it some DEFINE that has to be set?
    I liked the simple 628….

    Regards
    David

    I’m using
    Pbp 2.42
    PM assembler 4.04

  5. #5
    4Lewis's Avatar
    4Lewis Guest


    Did you find this post helpful? Yes | No

    Default What changed

    Hello:

    I am having similar problems, what did you change in the code to make it work?

    ''
    Hello again, problems are solved, some changes on define sentences and everything is up again

    Anyway thanks for the attention

    Regards.''

Similar Threads

  1. Problem with 16F877A but not with 16F876A
    By savnik in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 16th May 2008, 14:18
  2. 16f876a Pwm
    By Hainkm in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th December 2007, 17:33
  3. 16F876A Configuration
    By RFEFX in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 29th November 2006, 18:30
  4. Pwm 16f876a
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 19th September 2006, 06:35
  5. EPIC Programmer - Works for all chips but the 16F876A
    By 4Lewis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 12th April 2006, 23:59

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