Cooking Timer Project


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by esmore View Post
    I will try that. And also this is my first time dealing with pics I have a question also about my set up does it need power to run to the pic? if so what leg its a pic16F819
    Err yes you need to supply power to the PIC to run it !

    5vdc required

    Have a read of the data sheet http://oap.sourceforge.net/datasheets/PIC16F819.pdf

  2. #2
    Join Date
    Nov 2010
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by malc-c View Post
    Err yes you need to supply power to the PIC to run it !

    5vdc required

    Have a read of the data sheet http://oap.sourceforge.net/datasheets/PIC16F819.pdf
    I look at the diagram pin 14 VDD is my 5volts so does that make pin 5 VSS the ground?

    Thank you for the data sheet

  3. #3
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by esmore View Post
    I look at the diagram pin 14 VDD is my 5volts so does that make pin 5 VSS the ground?

    Thank you for the data sheet
    Yes - Vss should go to GND and Vdd to +5v Without these connections your PIC won't run !

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


    Did you find this post helpful? Yes | No

    Default

    Also look in the manual, section "2.4. It=s Alive".

    This shows the basic/generic setup required. VDD, VSS, MCLR, OSC...
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Nov 2010
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    I was looking over my schematics

    on the lcd display it says its only one wire and it hooks up to the
    RB6/T1OSO/T1CKI/PGC pin is that right?



  6. #6
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    That's a crap schematic if you don't mind me saying so...

    1) MCLR is left floating - should be pulled high via a resistor between 1K and 10K.
    2) No supply lines to the PIC - as stated Vdd to +5 with Vss to GND
    3) No decoupling capacitor - Place a 0.1uf Capacitor across the supply lines as close to the PIC as possible
    4) IGNORE
    5) IGNORE
    6) No values for the pull down resistors - You need to state what value components are being used - again 1K - 10 K pull up / down resistors are the norm.
    7)IGNORE

    OK ignore some of those comments - I've juts worked out which way the tracks are running --- I'll wake up in a moment !!!


    Can you also state where the 5v is coming from and have you measured it to make sure it is 5v and not 6v or 3v or 8v dc. If you are not sure then use a 7805 regulator to ensure the voltage is as close to 5v dc.
    Last edited by malc-c; - 7th November 2010 at 09:42. Reason: spotted mistake

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


    Did you find this post helpful? Yes | No

    Default

    A big problem I see is the drawing only shows 16 pins on the MCU. the 16F819 has 18 pins at a minimum (PDIP). SSOP and QFN have a few more.

    MCLR... Like Malc said, it needs to be pulled HIGH. Unless it is set as an input then it can be connected as a regular switch. Assuming the switch on the drawing labeled RESET goes to MCLR then it is good as an input but it will not work as a reset. Being it is not in the code as an input I will guess it is intended as a chip reset.

    The LED can be connected as you have it if the configs have the OSC as internal. But we do not see the config settings.

    Being this is your first project I will recommend doing the "Hello World" for MCUs. Make an LED blink. That way you will know how to set everything up. Then build on that. Every time I start a new project I will do a "BLINKY" just to be sure I have the chip working.

    I suggest you read these
    http://www.picbasic.co.uk/forum/cont...o-your-Program
    http://www.picbasic.co.uk/forum/showthread.php?t=561

    See if you can make an LED blink on PORTB.4 at ~1/2 second intervals. Then we can work on getting your project sorted out. But it will not be a copy/paste from the site you linked to.
    Dave
    Always wear safety glasses while programming.

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