Pic16F876 problem oscillating


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2006
    Posts
    747

    Default Pic16F876 problem oscillating

    Hi,
    I wrote a program and wanted to run it on the pic16F876. Is there any special features needed to deactivate ?
    My crystal is not even oscillating. I put the Vdd and the 2 Vss as the specsheet including MCLR to high with a resistor. Is that enough to make it oscillate, assuming it has a crystal and capacitor ?


    DEFINE OSC 20 'use external 20mhz crystal

    DEFINE LCD_DREG PORTB ' Set LCD Data port
    DEFINE LCD_DBIT 4 ' Set starting Data bit (0 or 4) if 4-bit bus
    DEFINE LCD_RSREG PORTB ' Set LCD Register Select port
    DEFINE LCD_RSBIT 1 ' Set LCD Register Select bit
    DEFINE LCD_EREG PORTB ' Set LCD Enable port
    DEFINE LCD_EBIT 0 ' Set LCD Enable bit
    DEFINE LCD_BITS 4 ' Set LCD bus size (4 or 8 bits)
    DEFINE LCD_LINES 2 ' Set number of lines on LCD
    DEFINE LCD_COMMANDUS 2500
    DEFINE LCD_DATAUS 250
    DEFINE CHAR_PACING 2000

    Pause 1000 ' Wait 1 second

    TRISB=0
    loop:
    lcdout $FE,1, "Number ", dec 55
    pause 500

    goto loop
    end

  2. #2
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default

    I just tried the pic16F877a, same problem

    I use a Pic16F88 changed the Vss Vdd and cystal and caps, it works with the F88, so the hardware is good
    Last edited by lerameur; - 5th January 2007 at 01:27.

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


    Did you find this post helpful? Yes | No

    Default

    Did you set the CONFIG options?

    In particular, HS oscillator mode?
    <br>
    DT

Similar Threads

  1. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  2. Hardware problem or what ?
    By Steve S. in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 4th March 2007, 21:39
  3. PicBasic Pro Math Problem??
    By Glen65 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th March 2006, 04:36
  4. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22:59
  5. PORTA.PinNo = 1 ' problem
    By frank small in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th May 2004, 14:30

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