Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 29, 2024, 03:45:53 15:45


Login with username, password and session length


Pages: [1]
Print
Author Topic: problem with 16f877a  (Read 3499 times)
0 Members and 1 Guest are viewing this topic.
jeanninemtv
Senior Member
****
Offline Offline

Posts: 311

Thank You
-Given: 57
-Receive: 25


« on: June 08, 2007, 01:21:53 01:21 »

hi mates

i have problems with this chip, i program a 877 and it works, then i change the headers and add the lines for sut down the analog comparators, and it works on sim. but when i burn pic 877a  it works crazy...

have you expèrienced this kind of trouble?

Logged
Ahmad_k
SCG Moderator
Hero Member
*****
Offline Offline

Posts: 747

Thank You
-Given: 169
-Receive: 1289



« Reply #1 on: June 08, 2007, 05:55:04 05:55 »

Upload your code to see if there is a problem. But the program should work perfectly if you disable the analog comparator
Logged
Parmin
Hero Member
*****
Offline Offline

Posts: 582

Thank You
-Given: 494
-Receive: 133


Very Wise (and grouchy) Old Man


« Reply #2 on: June 08, 2007, 08:31:04 08:31 »

Hi jeanine

once I get a batch of bad crystal and all my program goes funny.

What symptom you see? what do you mean by works crazy?

Par.
Logged

If I have said something that offends you, please let me know, so I can say it again later.
Rego
Senior Member
****
Offline Offline

Posts: 498

Thank You
-Given: 0
-Receive: 320


The power is back


« Reply #3 on: June 08, 2007, 01:26:42 13:26 »


i once have a burner that works on 16f877a and make a strange things on 877a...

which burner u use ?
an upload ur code for testing....
Logged

Smiley ....THE POWER IS BACK.... Smiley

....REGO....
jeanninemtv
Senior Member
****
Offline Offline

Posts: 311

Thank You
-Given: 57
-Receive: 25


« Reply #4 on: June 09, 2007, 03:52:39 03:52 »

i am using jdm programmer, following all the indications... and pgm to ground while programming..

but i dont know why , for example, lcd works strange ... but if i use the same code with 877 

' previously changing device and commenting cvcon   ....'
and works fine in 877

the matter is that i have four 877a in stock and with this problem
Logged
frasenci
Translator
Active Member
***
Offline Offline

Posts: 171

Thank You
-Given: 142
-Receive: 84


« Reply #5 on: June 09, 2007, 12:47:12 12:47 »


 i program a 877 and it works, then i change the headers and add the lines for sut down the analog comparators, and it works on sim. but

You are doing 2 simultaneous edits a time.
Try one by one , i.e. , first only changing header and so.

Double check the definition files for each device , 877 and 877A in your programmer software,.... headers, I am willing to expect only a software error. ( fuses ? )

As far as I know , there is NO functional difference between this 2 devices but Enhanced Flash Memory ( hence the " A " )

What are tose "lines" you are adding ? what do they instruct ?
Maybe you should listen to Amhad_k/Rego and share the code....

Good luck !

Greetings
Francisco

Logged
Vague
V.I.P
Junior Member
*****
Offline Offline

Posts: 51

Thank You
-Given: 695
-Receive: 29


« Reply #6 on: June 09, 2007, 02:22:46 14:22 »

Have you checked this data sheet which lists the differences between the chips.
http://ww1.microchip.com/downloads/en/DeviceDoc/39591a.pdf
The 877A seems to be more noise sensitive than the 877, so check your power supply decoupling and don't just leave unused inputs floating.
If you post your code we could all have a look at it.
Good luck
Logged
Parmin
Hero Member
*****
Offline Offline

Posts: 582

Thank You
-Given: 494
-Receive: 133


Very Wise (and grouchy) Old Man


« Reply #7 on: June 12, 2007, 11:52:26 23:52 »


the matter is that i have four 877a in stock and with this problem

If all four of them works funny, then it is time to check the peripheral devices like Voltage input, decoupling capacitor, dry joints, Oscillator frequency etc.

If you program works before, it should not have reason not to work again.
Most of the time it works bad is the peripheral are not working right.

Par.

Logged

If I have said something that offends you, please let me know, so I can say it again later.
chyelim
Junior Member
**
Offline Offline

Posts: 81

Thank You
-Given: 714
-Receive: 134


« Reply #8 on: June 13, 2007, 02:15:48 02:15 »

Hi, which language you are using to write your code. Check the schematic also, the fuses must check and see if it is HS, RC, XT or others ?? If you use crystal 20mhZ is must be HS. At last check the schematic for the CRYSTAL, crystal must put near with the OSC pin, if put the distance of the crystal is too far from the PIC then also will cause problem. So feel free to ask if it is still can't work. I've met before the faulty like that and these steps actually solve my problems and I hope will be help on your problems also !! Good Luck friend !!
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC