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
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
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.
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?
![]()
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
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.
Bookmarks