Using a new PIC part no. for the first time is always such an adventure.


Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    Mar 2005
    Location
    Madison, WI, USA
    Posts
    20

    Default Using a new PIC part no. for the first time is always such an adventure.

    I need to provide 32 logic outputs based on a serial transmission from a PC so I chose a PIC16F747. Serial output (status) from the PIC is also read by the PC. The 16F747 it would seem was a good choice. Up until now, I have been successfully using a PIC16F628A to do the same thing just with too few outputs for this project.

    I am confident that the circuit board is correct. The PIC has duplicate Vdd and Vss which I have tied together and placed a .1u axial ceramic cap across. It is setup for ICSP and I have verified the existence of code and configuration in flash memory.

    I cannot as yet get the PIC to blink an led on one or two of the pins. This is my initial way of checking for intelligent life in these little buggers. Since I am using the internal RC clock and I have no circuit traces on the board to support an external oscillator it is pretty difficult to see if there is a clock signal.

    As an alternative test, I changed the configuration word to provide internal Osc with Focs/4 out on pin OSC2. When I use my logic probe (in pulse mode) to check OSC2 the pulse indicator appears to remain lit rather than pulsing which I don't understand unless the signal there is so fast that the probe indicator is flashing too fast for me to detect. (Yes I could use my old beater scope but it is borderline unreliable and a bear to set up.)

    I have searched around in the documentation and have not found the default speed at which the internal RC oscillator runs. If it is remarkably fast, then what I am seeing at OSC2 in the test might make sense. In any case I need to know what this default is. Does anybody know what the default internal RC osc. speed is?

    Secondly, as I have found with the 16F628A that the comparator module has to be specifically set OFF or PortA pins will misbehave. Are there any other modules which start by default which prevent any of the I/O pins from functioning as strictly I/O?

    Attached are 3 photos of the board, the configuration as read from the PIC after programming, and the PicBasic code listing.
    Attached Images Attached Images     
    Attached Files Attached Files

Similar Threads

  1. Presetting Configuration Fuses (PIC Defines) into your Program
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 82
    Last Post: - 15th December 2013, 09:54
  2. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  3. newbe looking for PIC advice
    By Mad Professor in forum General
    Replies: 3
    Last Post: - 27th May 2009, 07:56
  4. Can a PIC PIC a PIC?
    By afbecker in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd January 2008, 19:55
  5. Linx RF -> HSERIN time delay / time critical app...
    By batee in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th October 2004, 15:04

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