PIC16F88 senior design


Closed Thread
Results 1 to 40 of 72

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    New Hampshire USA
    Posts
    298

    Smile welcome

    Hi AlaskanEE,

    Welcome to the forum.
    Quote Originally Posted by AlaskanEE
    I'm a circuits electrical engineer and thus have never worked with programming or microcontrollers
    You picked the right microcontroller for an analog guy. The PIC devices have comparators, voltage references, A to D converters, etc.. You are going to love these microcontrollers. A perfect fit with the analog world.
    Quote Originally Posted by AlaskanEE View Post
    So the 16F88 doesn't have it's own internal oscilating crystal. Is there any way to get around creating an external oscilating circuit or is that a must?
    You may have based this on what Dave correctly said:
    Quote Originally Posted by mackrackit
    External oscillating circuit is a must. The data sheet gives several examples. I like the crystals with built in caps, one part to do the job and the 20Mhz is cheap.
    The only (out-side the PIC) components needed for the "External oscillating circuit", are a simple three terminal ceramic resonator or a crystal with two capacitors to ground.
    Some of the serial stuff needs a more stable oscillator than the drifty one internal to the PIC. The one in the PIC is okay for a lot of projects.

    Don’t give up on the forum, you are an equal member. Keep asking questions. That’s what it is here for. When a person comes along with a similar question, they won’t have to ask. Don’t forget to search for your question / answer before posting. Have fun. Learn.
    -Adam-
    Ohm it's not just a good idea... it's the LAW !

  2. #2
    Join Date
    Apr 2007
    Posts
    21

    Default

    Sorry skimask I was just trying to step gengerly in the forum since I'm new, but was trying to get my point across without ticking anyone off. I know it came off pansy, but I was playing it safe. I misunderstood what you were saying about the internal oscilator. I had skimmed the data sheet and accidentally lumped the statement "the PIC16F88 CAN be set to 20MHz" in with the preceeding paragraph saying that the PIC's internal oscilator can be set to multiple frequencies. So when you said that the DEFINE OSC command doesn't set anything to 20MHz I was confused and the sentance "so the 16F88 doesn't have an internal oscilator" should have had a question mark cause I was asking. Also I was just trying to let everyone know what I'm doing and show the code I was using so that they could comment on what I had done, if it would work or not. I wasn't trying to get everyone to write my code for me and I'm sorry for my lack of clarity on that point. Again sorry for the miscommuniactions and lack of clarity. Also thanks Adam for the suport, I just blew this up too quickly, was getting frustrated with the programming. Chalk it up to experience I guess.

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    I should have been a little more clear. If you want something reliable, external oscillator is a must. Being that serial communications are involved. The internals work fine but sometimes the timing will get a little off.

    The oscillator you choose will need to be defined in the *.inc file for the chip you are using along with the other fuses. In the *.bas file you tell PBP what the oscillator speed is for timing. These are the same yet different.

    You will find a line in the *.inc file something like this.

    __config _XT_OSC & _WDT_ON & _PWRTE_ON & _BODEN_ON & _LVP_OFF & _CP_OFF

    Look at the data sheet and it will tell you what each one does.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. RX TX modules - intermitent communication
    By ruijc in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 11th June 2009, 01:13
  2. pic16f88 & voltage
    By rdxbam in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 17th February 2009, 10:14
  3. Ghange code from PIC16F877A to PIC16F88
    By savnik in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th March 2008, 17:09
  4. Replies: 8
    Last Post: - 7th December 2006, 16:42
  5. PIC16F88 problem with TOGGLE command?
    By russman613 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th September 2006, 00:31

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