The Godfather talking
You think I am funny guy huh?
Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 05, 2016, 03:27:34 03:27


Login with username, password and session length


Pages: [1]
Print
Author Topic: Pic 16f628 problem  (Read 2571 times)
0 Members and 1 Guest are viewing this topic.
mick the mend
Active Member
***
Offline Offline

Posts: 113

Thank You
-Given: 109
-Receive: 100


« on: July 21, 2008, 09:38:18 21:38 »

Has anyone any idea why I am getting 2v on most pins of a pic16f628 and nothing else? ie. no data or clock on anything even though the code seems to work if I use proteus or flowcode. I am using A TOP2004 programmer which works fine with other chips and different code.
The code was created and compiled with Flowcode.

Cheers

Mike
Logged
Parmin
Hero Member
*****
Offline Offline

Posts: 544

Thank You
-Given: 357
-Receive: 126


Very Wise (and grouchy) Old Man


« Reply #1 on: July 22, 2008, 01:09:48 01:09 »

need more info

What have you done last?
Did the programming verifies ok?
Did you use Analog?  if not did you turn analog off?
did you set the fuse correctly to the oscillator type?

There are a lot of things you may have done wrong, but we definitely cannot guess for you.
So give more concise info.
Logged

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

Posts: 23

Thank You
-Given: 29
-Receive: 26


« Reply #2 on: July 22, 2008, 02:20:50 02:20 »

This is a piece of a message at Microchip forum:
"Im not sure if anyone uses the top2004 programmer. but i recently bought one and COULD NOT get it to program my pic16f628a chips properly! I would load my hex file into the buffer and then program it to the pic but when i put it in the circuit - nothing would happen. BUT..."
Read the full post here: http://forum.microchip.com/tm.aspx?m=304900

Regards.
Logged
TomJackson69
V.I.P
Active Member
*****
Offline Offline

Posts: 221

Thank You
-Given: 23
-Receive: 63


« Reply #3 on: July 22, 2008, 03:23:19 03:23 »

Hello Mick,

What do you think you are doing? Reading your post on topic "Event sequencer " you said you don't know how to program, not even a bit.

http://www.sonsivri.com/forum/index.php?topic=13910.0

"..............................................
Hi all you PIC people
I wnder if some kind soul can help me?
I have a project on the go which involves 10 sequencial  logic level outputs with presetable times on each of the output pins
I imagine it would be very easy to do with a PIC chip if you know how. Unfortunately I don't know even basic programming so I was hoping that someone would take up the challenge.
I don't know what the times are yet so I would need very simple instructions as to how to set and change them.
Once the correct times are set they never need changing
I have access to a PIC programmer so have no problem with the hardware
No doubt I could learn how to do the programming, I simply don't have the time.

Thanks for any help

Mike
"................................................................

Well, you don't even know a basic of prgraming plus YOU DON'T HAVE TIME to LEARN then you come here for other people do a 100% work for you? I think that is too much for asking. I think you should spend time to learn, design circuit, learn how to program then if you have problem; you state clearly what your problem are and prove your work than, I think more peoples will help you.

I can help you with the "Event sequencer " if you show your work.

I think zokij gave you the best solution because you only want to be able to change the times.

You may feel offenced but, this is my constructive suggestion.

Regards,

Tom
Logged

Con Rong Chau Tien
cengiz_ayten
Newbie
*
Offline Offline

Posts: 7

Thank You
-Given: 3
-Receive: 0


« Reply #4 on: November 18, 2008, 01:09:18 01:09 »

Has anyone any idea why I am getting 2v on most pins of a pic16f628 and nothing else? ie. no data or clock on anything even though the code seems to work if I use proteus or flowcode. I am using A TOP2004 programmer which works fine with other chips and different code.
The code was created and compiled with Flowcode.

Cheers

Mike


Hi Mike. You must check your code. 16f628 pins are comes as an analog inputs. If you want to use them as digital I/O pins You must use "CMCON" register.  If you write in to CMCON register "7", then all of pins work as digital I/O.
Regards.
Logged
tAhm1D
Senior Member
****
Offline Offline

Posts: 336

Thank You
-Given: 103
-Receive: 180



« Reply #5 on: December 18, 2008, 05:09:13 17:09 »

Hi Mike,
Follow what cengiz_ayten has said. If you use all the i/o pins as digital i/o, please disable comparator by putting b'111' or 0x07 to CMCON Register during initialising phase in your code. Then use TOP 2004 Programmer. Top 2000 Programmer can program Pic 16F628 but can create problem with Pic 16F628A.
Top Series Programmer from China are not very reliable. You may try to construct one easily. You can follow Free Oshonsoft software and sketch from its WebSite and can construct one with very nominal cost.

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