[x] Welcome at THunting.com!

A fun place to talk about Metal Detecting, Treasure Hunting & Prospecting. Here you can share finds and experience with thousands of members from all over the world

Join us and Register Now - Its FREE & EASY

THunting.com
Treasure Hunting & Metal Detecting Community
   
Advanced Search
*
Welcome, Guest! Please login or register HERE - It is FREE and easy.
Only registered users can post and view images on our message boards.
Did you miss your activation email?

Login with email, password and session length
Or Login Using Social Network Account
2
News:
Pages:  1 2 3   Go Down
Print
Share this topic on FacebookShare this topic on Del.icio.usShare this topic on DiggShare this topic on RedditShare this topic on Twitter
Tags:
0 Members and 1 Guest are viewing this topic.
Offline GoldDigger1950
The Old Man and the Soil
Global Moderator
Platin Member
*****

Just call me GD.
The Old Man and the Soil
Join Date: Jun, 2009
Thank you225

Activity
0%
Male
United States
Posts: 11219
Referrals: 12

47848.00 Gold
View Inventory
Windows 7/Server 2008 R2
Windows 7/Server 2008 R2
Firefox 35.0
Firefox 35.0

Awards

Garrett Groundhog ADS, Garrett Sea Hunter, Bounty Hunter Tracker IV, Bounty Hunter Pioneer 505,Minelab Eldorado Mk II, Tesoro Compadre, Tesoro Tiger Shark & A Few Home Brew Detectors
« Reply #10 on: February 08, 2015, 10:05:06 am »
Go Up Go Down

That chip has an abundance of analog to digital converters and is normally used for circumstances where you need to read or sense voltage levels. Because of that, the default mode is analog and you have to force it into digital mode by setting the ADCON0 register and then setting the ports to be tristated to outputs. I used to be a 3rd Parth Rep for Microchip and went to all of their conferences back in the early days of the company. The spec sheets have not really been fully inclusive of that information and we were expected to tell clients all about the full features. Normally, you would select the chip based on your needs not just because you have one.

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291280.html#msg291280




Logged

It's all about that moment when metal that hasn't seen the light of day for generations frees itself from the soil and presents itself to me.
Let's Talk Treasure!

Offline xavierTopic starter
Moderator
Platin Member
*****

From a rainy Brussels
Join Date: May, 2009
Thank you166

Activity
0%
Male
Belgium
Posts: 7339
Referrals: 0

32206.00 Gold
View Inventory
Windows 7/Server 2008 R2
Windows 7/Server 2008 R2
Chrome 40.0.2214.111
Chrome 40.0.2214.111

Awards
« Reply #11 on: February 08, 2015, 05:11:08 pm »
Go Up Go Down

Yes you are quite right about the chip selection. I have been looking on the net about clocks and pic 16f690, guess what no one has used it to make an LED clock so I think that I have spent all the time that I need to on this chip, time to move on.

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291297.html#msg291297


Xavier


Logged

So many questions so little time

Offline GoldDigger1950
The Old Man and the Soil
Global Moderator
Platin Member
*****

Just call me GD.
The Old Man and the Soil
Join Date: Jun, 2009
Thank you225

Activity
0%
Male
United States
Posts: 11219
Referrals: 12

47848.00 Gold
View Inventory
Windows 7/Server 2008 R2
Windows 7/Server 2008 R2
Firefox 35.0
Firefox 35.0

Awards

Garrett Groundhog ADS, Garrett Sea Hunter, Bounty Hunter Tracker IV, Bounty Hunter Pioneer 505,Minelab Eldorado Mk II, Tesoro Compadre, Tesoro Tiger Shark & A Few Home Brew Detectors
« Reply #12 on: February 08, 2015, 05:48:42 pm »
Go Up Go Down

A very cheap alternative is the PIC16F84 which can be had for just under a dollar on eBay.

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291300.html#msg291300




Logged

It's all about that moment when metal that hasn't seen the light of day for generations frees itself from the soil and presents itself to me.
Let's Talk Treasure!

Offline xavierTopic starter
Moderator
Platin Member
*****

From a rainy Brussels
Join Date: May, 2009
Thank you166

Activity
0%
Male
Belgium
Posts: 7339
Referrals: 0

32206.00 Gold
View Inventory
Windows 7/Server 2008 R2
Windows 7/Server 2008 R2
Chrome 40.0.2214.111
Chrome 40.0.2214.111

Awards
« Reply #13 on: February 10, 2015, 07:12:38 am »
Go Up Go Down

That wont be necessary GD, I finally nail'd it. It's still under test at the moment but it has not lost nor gain'd time since 01h00 this morning but I'll only know just how well it's working in a month, if the time is still correct then I'll be happy with it. 

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291396.html#msg291396


Xavier

There are 2 attachment(s) in this post which you can not view or download

Please register for viewing them.

Clock_1.JPG
Clock_2.JPG


Logged

So many questions so little time

Offline GoldDigger1950
The Old Man and the Soil
Global Moderator
Platin Member
*****

Just call me GD.
The Old Man and the Soil
Join Date: Jun, 2009
Thank you225

Activity
0%
Male
United States
Posts: 11219
Referrals: 12

47848.00 Gold
View Inventory
Windows 7/Server 2008 R2
Windows 7/Server 2008 R2
Firefox 35.0
Firefox 35.0

Awards

Garrett Groundhog ADS, Garrett Sea Hunter, Bounty Hunter Tracker IV, Bounty Hunter Pioneer 505,Minelab Eldorado Mk II, Tesoro Compadre, Tesoro Tiger Shark & A Few Home Brew Detectors
« Reply #14 on: February 10, 2015, 07:43:26 am »
Go Up Go Down

Was it the digital settings I suggested earlier?

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291399.html#msg291399




Logged

It's all about that moment when metal that hasn't seen the light of day for generations frees itself from the soil and presents itself to me.
Let's Talk Treasure!

Offline xavierTopic starter
Moderator
Platin Member
*****

From a rainy Brussels
Join Date: May, 2009
Thank you166

Activity
0%
Male
Belgium
Posts: 7339
Referrals: 0

32206.00 Gold
View Inventory
Windows 7/Server 2008 R2
Windows 7/Server 2008 R2
Chrome 40.0.2214.111
Chrome 40.0.2214.111

Awards
« Reply #15 on: February 10, 2015, 09:49:14 am »
Go Up Go Down

DUH I'm just going to have to admit pure and plain stupidity, the 16f690 can run at a maximum internal frequency of 8Mhz I use two timers, timer0 for the 7 segment refresh and timer two for the clock count. I had the internal timer set to 4.915232 Mhz (Gives a 60 hz in timer 2) I had a crystal of 19.660800 Mhz and that was the big problem, I cant figure out why I used that crystal  Idiot then the second problem was that in the timer count when the counter got to 59 min it went to 1 hour so I was losing 60 seconds every hour so now my code has when the min = 9 & mintens = 5 & sec = 60 change the count to the hour digit, now 1 hour is 60 min instead of 59 min. I guess that this is what you call beginners mistakes   

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291403.html#msg291403


Xavier


Logged

So many questions so little time

Offline Homefire
Global Moderator
Platin Member
*****

Join Date: Jan, 2009
Thank you662

Activity
0%
Male
United States
Posts: 15906
Referrals: 0

52360.00 Gold
View Inventory
Windows NT 6.3
Windows NT 6.3
Firefox 30.0
Firefox 30.0

Awards
« Reply #16 on: February 10, 2015, 10:01:46 am »
Go Up Go Down

    You all are way above my head.    Shocked

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291404.html#msg291404




Logged
Offline xavierTopic starter
Moderator
Platin Member
*****

From a rainy Brussels
Join Date: May, 2009
Thank you166

Activity
0%
Male
Belgium
Posts: 7339
Referrals: 0

32206.00 Gold
View Inventory
Windows 7/Server 2008 R2
Windows 7/Server 2008 R2
Chrome 40.0.2214.111
Chrome 40.0.2214.111

Awards
« Reply #17 on: February 10, 2015, 10:30:24 am »
Go Up Go Down

Simple really, some time ago you were going to get a kit to start learning how to program pic's....what happened?   

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291407.html#msg291407


Xavier


Logged

So many questions so little time

Offline Homefire
Global Moderator
Platin Member
*****

Join Date: Jan, 2009
Thank you662

Activity
0%
Male
United States
Posts: 15906
Referrals: 0

52360.00 Gold
View Inventory
Windows NT 6.3
Windows NT 6.3
Firefox 30.0
Firefox 30.0

Awards
« Reply #18 on: February 10, 2015, 10:37:38 am »
Go Up Go Down

Broke.   Higher Priorities.

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291408.html#msg291408




Logged
Offline GoldDigger1950
The Old Man and the Soil
Global Moderator
Platin Member
*****

Just call me GD.
The Old Man and the Soil
Join Date: Jun, 2009
Thank you225

Activity
0%
Male
United States
Posts: 11219
Referrals: 12

47848.00 Gold
View Inventory
Windows 7/Server 2008 R2
Windows 7/Server 2008 R2
Firefox 35.0
Firefox 35.0

Awards

Garrett Groundhog ADS, Garrett Sea Hunter, Bounty Hunter Tracker IV, Bounty Hunter Pioneer 505,Minelab Eldorado Mk II, Tesoro Compadre, Tesoro Tiger Shark & A Few Home Brew Detectors
« Reply #19 on: February 10, 2015, 10:41:03 am »
Go Up Go Down

The chip can use the internal timer and one of them is the same 32khz used by digital watches. For some odd reason, I believed that is what you were doing.

Linkback:

You are not allowed to view links.
Please Register or Login

http://www.thunting.com/smf/index.php/topic,59659.msg291409.html#msg291409




Logged

It's all about that moment when metal that hasn't seen the light of day for generations frees itself from the soil and presents itself to me.
Let's Talk Treasure!

Print
Pages:  1 2 3   Go Up
Jump to:  

Powered by SMF 1.1.19 | SMF © 2005, Simple Machines | Sitemap
Copyright THunting.com