Discussion in "Project Help" started by    eddieprice    Jan 12, 2018.
Fri Jan 12 2018, 04:32 PM
#1
I am using a 16F84A for the first time and am having trouble with the oscillator. I am using a 4 MHz xtal with 22pf capacitors as shown in the PIC16F84A datasheet. I have used MPLAB IDE V8.91 to write the program. The simulation works fine, but the circuit doesn't. I have a small didgital oscilloscope and I would assume that I should be able to observe a square wave across the xtal - but there is nothing. This is my configuration code:-
__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC
Any suggestions would be much apprciated.
Fri Jan 12 2018, 06:49 PM
#2
Sometimes the Configuration word has to be programmed separately.
Check your programming software to make sure the
Configuration word is being set correctly.

Check the reset pin is high after a short delay.
Check all your connections again.. and carefully.

Write a simple flashing LED program, does it work using
the R/C oscillator ?

FYI.. the 16F84A is now very old, and expensive, due to rarity value.
It is messy to program in assembly and has too little memory
to do much in C.
Consider moving to a newer device.



[ Edited Sat Jan 13 2018, 02:56 AM ]

Get Social

Information

Powered by e107 Forum System

Conversation

ExperimenterUK
Mon Dec 03 2018, 06:17 PM
Please post questions in the forum. The chat box is for chat
Mon Dec 03 2018, 07:43 AM
help!me!
help! I don't understand busy flag!
Sun Dec 02 2018, 09:01 PM
ile
hello
Mon Nov 12 2018, 06:58 AM
Pavan_user
i have seen your replica of I2C programming using AT89C51 but i am unable to understand the "ack_bit" variable usage ...looks like it is always 1...can you elaborate how acknowledgment is working....
bgk3678
Tue Nov 06 2018, 03:36 PM
kindly any one give solution for my problem
ExperimenterUK
Mon Nov 05 2018, 10:48 PM
Pins high is the normal state. You need a program to set them low
mayengbam
Sun Nov 04 2018, 06:41 PM
hello, i am niranjoy, alll the port of my 8051 is always high, even i erase all the program. why is it so happen and what is the problem. any one please help me!
Sun Nov 04 2018, 03:16 PM
BASAVARAJ g kudamble
hi I am interfacing GSM 300 to 8051 microcontroller to receive message from mobile
ExperimenterUK
Sat Sep 29 2018, 07:28 PM
Please post questions in the forum.
Sat Sep 29 2018, 12:26 PM
Ashfaq Ch
hi i have some AT89C51RC microcontrollers already programed. some one help us to how to download from AT89C51RC and after study and edit all corractions reload to AT89C51RC controller

Downloads

Comments

mauste
Thu Dec 13 2018, 01:52 PM
sifirsekiz
Wed Dec 12 2018, 01:37 PM
cadetjeff
Fri Dec 07 2018, 10:11 AM
crak0axel
Sun Dec 02 2018, 01:12 AM
AbuHishaam
Thu Nov 29 2018, 03:43 PM
Evgen87
Thu Nov 29 2018, 10:44 AM
akshaykulkarni
Mon Nov 26 2018, 05:18 AM
atalnet
Fri Nov 16 2018, 07:44 AM

Online

Guests: 44, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38028
Newest member: mauste
Forum Activity
sifirsekiz Avatar
Posted By sifirsekiz
Thu Dec 13 2018, 04:31 PM
sifirsekiz Avatar
Posted By sifirsekiz
Wed Dec 12 2018, 01:50 PM
Hi guys I have max30100 pulse sensor need to measu...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Nov 19 2018, 01:11 AM
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Nov 15 2018, 06:48 PM
Unfortunately I have no experience of LabView,but ...
katherineamt Avatar
Posted By katherineamt
Mon Nov 12 2018, 03:22 PM
I have never used LabView and I have to implement ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Nov 12 2018, 01:21 AM
wimac Avatar
Posted By wimac
Sun Nov 11 2018, 04:03 PM
bgk3678 Avatar
Posted By bgk3678
Sun Nov 11 2018, 07:25 AM
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 06 2018, 06:10 PM
bgk3678 Avatar
Posted By bgk3678
Sun Nov 04 2018, 02:52 PM