brentonw2004
New Member
Hello. I have been working on a car part that I was using a PIC 16F628 on, and Pic Basic Pro. I ended up needing an ADC so I switched to the 16F819. Now I cannot get my LCD or any serial communication to work. I think it is because of the timing. I tried to use the internal rc, but I could not get it to work. Now I am using a 20mhrz crystal and two 18pf capacitors. Here is how I have it set up:
pin 4 -> 2.2K -> 5v
pin 5 -> GND
pin 6 -> Serial port
pin 14 -> 5v
pin 15 -> 20mhrz -> 18pf -> GND
pin 16 -> 20mhrz -> 18pf -> GND
Here's my code:
DEFINE OSC 20
TRISA = %00000000
TRISB = %00000000
loop:
SerOut2 PORTB.0,9600,["Hello",10,13]
GoTo loop
I programmed it with a JDM programmer and ICPROG. I have tried pretty much every setting on the rc and haven't had any luck with any of them. Which one should you use? I am thinking HS, but I am not sure.
Also, this is a little off the subject, but how hard is it to get a 16f876 to work correctly. I have messed with the 819 for about two weeks and I am getting ready to give up on it. Is it easier to deal with?
One last question, does anyone have any advice on calibrating a pressure sensor and getting an actual reading out of it? Any advice on any of these would be greatly appreciated.
Thanks!
Brent
pin 4 -> 2.2K -> 5v
pin 5 -> GND
pin 6 -> Serial port
pin 14 -> 5v
pin 15 -> 20mhrz -> 18pf -> GND
pin 16 -> 20mhrz -> 18pf -> GND
Here's my code:
DEFINE OSC 20
TRISA = %00000000
TRISB = %00000000
loop:
SerOut2 PORTB.0,9600,["Hello",10,13]
GoTo loop
I programmed it with a JDM programmer and ICPROG. I have tried pretty much every setting on the rc and haven't had any luck with any of them. Which one should you use? I am thinking HS, but I am not sure.
Also, this is a little off the subject, but how hard is it to get a 16f876 to work correctly. I have messed with the 819 for about two weeks and I am getting ready to give up on it. Is it easier to deal with?
One last question, does anyone have any advice on calibrating a pressure sensor and getting an actual reading out of it? Any advice on any of these would be greatly appreciated.
Thanks!
Brent