Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 17:42 24 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : sparkey`s spot

     Page 2 of 4    
Author Message
VK6MRG

Guru

Joined: 08/06/2011
Location: Australia
Posts: 347
Posted: 09:19am 01 Nov 2011
Copy link to clipboard 
Print this post

If you read through the post that I put on the forum last night you will see that I worked through it myself. And as I said in a few other posts, YOU need to read ALL the posts to get ALL the information! This is something that I too have had trouble with and I think I have learnt my lesson!

Its easier to ask forgiveness than to seek permission!

............VK6MRG.............VK3MGR............
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 09:25am 01 Nov 2011
Copy link to clipboard 
Print this post

so you still getting those ev board kit sets ...
technicians do it with least resistance
 
VK6MRG

Guru

Joined: 08/06/2011
Location: Australia
Posts: 347
Posted: 09:32am 01 Nov 2011
Copy link to clipboard 
Print this post

Sorry, ev kit sets?

I have ordered 2 MiniMaximite PCB's and 4 pre-programmed PIC32 chips from Silicon Chip, and I'm hoping that I've ordered the correct components from RS online to populate the MiniMaximites. RS have sent me some of my order, but I'm waiting for the rest to turn up. No rush as I'm still waiting for the Silicon Chip order to arrive.

I have also ordered 2 64PINLQFP break out boards that Geoff used in his article about the PIC32 chip in the March 2011 Silicon Chip Magazine. This is so I can design a Maximite Stamp PCB using the 64PINLQFP PCB as a prototype.


Its easier to ask forgiveness than to seek permission!

............VK6MRG.............VK3MGR............
 
camfab
Newbie

Joined: 10/09/2011
Location: Australia
Posts: 13
Posted: 09:48am 01 Nov 2011
Copy link to clipboard 
Print this post

"seem`s no body really tells any body just how to do some things well ::"

sorry sparkey but i couldnt disagree more! ive asked a few questions on this forum and have been given the answer or directed to it quite quickly.
maybe ive been asking easy questions tho! just remember that Edmund Hillary never had a roadmap!Edited by camfab 2011-11-02
Fre Sprky
///...///

 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 10:12am 01 Nov 2011
Copy link to clipboard 
Print this post

i know how it is i always like to remember the fact that i was once a newbie and its up to those who have the intell to pass it on in the long run takes a lot of "frustrating " work out of things....any way heres my ev running my rtc swhich i mounted together and well its been a blast actully filling in my time i...regards sparkey...///...///






and if you dont want to add the time readout at start up :::
:: then from the prompt :syntax:: ? time$ ..hit enter it should read out the correct time ...same can be done for the date just replace date instead of time...///...///
Edited by sparkey 2011-11-02
technicians do it with least resistance
 
VK6MRG

Guru

Joined: 08/06/2011
Location: Australia
Posts: 347
Posted: 10:38am 01 Nov 2011
Copy link to clipboard 
Print this post

Another thing to keep in mind Sparkey is, if you're given a fish, you'll eat for a day. But if you learn to fish, you can feed yourself!
I'm not the quickest to upload posts to the site, and as I said before I will upload my findings when I can. And I did!

Maybe you need to give people more time to answer your questions. Allot of people on this site are in different time zones, or working! I know it can be frustrating to be stuck on something, but have to wait for an answer. That's life, and it happens to us all.

Last night I had a few questions, but no one was online to help when I needed my questions answered. But as I said, after reading ALL the posts in some of the topics I found the answers I needed by myself! Which made me feel pretty stupid for asking in the first place?

Feel free to ask any questions, but give people time to give an answer before complaining about the lack of support given by the people of this forum!

We are all happy to help IF we can.

Its easier to ask forgiveness than to seek permission!

............VK6MRG.............VK3MGR............
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 11:01am 01 Nov 2011
Copy link to clipboard 
Print this post

also a nother foot note when setting time it should be in this
format ::: "12:34:00"

and for the date :: "02/11/2011"

note the syntax......

yes i do realise that but i`m pretty much a just newbie in basic and this means that i really dont understand the arcectchure that the way basic is structured ...i can quote you any dos problem... scored 419 out of 420 on my a+ harware ....i did not really have anything to do with basdic programming and was never taught but i have dos at my finger tips...not meaning to gloate either hope we can get along . was that 70 dollar price for ten kit sets ...altronics :say december some time :: well i`ll belive it when i have one in my hands i booked the first order in melb ...bu i`m not holding my breath i dont have any thing against you i hope that is how do you say "ditto" ...any way ewnough rag for now well its good to see were on the same side ....///...///


side view





ok just found a fault if you dont run the read prog for the "rtc" it wont update the time and date so its prolly a better option to run it in your "autorun file" other than that you can just do it when u need to " from promt run the read prog then every other time you want the time on your current "session " as i call it ..every time you power down ..dont panic your "rtc" is working for you keeping the stats ..just a matter of putting a finger in to let the "rtc " to allow a read and display it...///...///

on a nother topic how long is the expected battery life for the "rtc" batt ..there are a few things to take into account type of battery standard cheap dime battery and others like the one i am using is a lithium battery i am expecting around 3 to five years depending on current drain as i said few factors involved..generally i would expect that it draws only micro ampheres ...but i have not put a meter in series with it in well lets say "maxi off mode" but i still have a nother set of components and hopfully i will be getting another "SM1" board this week some time...never the less u could not put an exact time on the battery life ....regards sparkey...///

another thing to note is when you power up your maxi and run several command line commands ..its sort of got like an in built doskey function thanks geoff very handy...up and down arrow keys ....impressed ...///




just a little tit bit for you um with the "rtc" using a couple of the i/o pins seems to me that the duino cross and lcd sheild may be also utilizing these pins so there for the "rtc" mod may have to take a step back ...i mean attatching it to the tracks that were earlier published when connecting it to the con 3 hedder ...regards sparkey
if using the code from matt line: 500 reads if u r using the same code: 500 end..
change to :500 new ...this will stop the program from being left in the ram memory..possably you could load another program which will tag onto what was left there before and your program will not work if it indeed latches the two together...///...///

Edited by sparkey 2011-11-03
technicians do it with least resistance
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 04:55am 02 Nov 2011
Copy link to clipboard 
Print this post

can the "rtc be st to 12 hour mode ...///...///
technicians do it with least resistance
 
Bill.b

Senior Member

Joined: 25/06/2011
Location: Australia
Posts: 226
Posted: 05:11am 02 Nov 2011
Copy link to clipboard 
Print this post

Hi Sparkey

The DS1307 can be run in either 12-hour or 24-hour mode. Bit 6 of the hours register is defined as the 12- or 24-hour mode select bit. When high, the 12-hour mode is selected. In the 12-hour mode, bit 5 is the AM/PM bit with logic high being PM. In the 24-hour mode, bit 5 is the second 10 hour bit (20-
23 hours).



2011-11-02_151044_DS1307.pdf

regards Bill
In the interests of the environment, this post has been constructed entirely from recycled electrons.
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 05:18am 02 Nov 2011
Copy link to clipboard 
Print this post

ok well i`m not that cluey when it comes to this is there a pin i need to set high or low or is it in the software side of things ...///sparkey ..im not using the 1307 ..i`m using the 8563....Edited by sparkey 2011-11-03
technicians do it with least resistance
 
VK6MRG

Guru

Joined: 08/06/2011
Location: Australia
Posts: 347
Posted: 05:20am 02 Nov 2011
Copy link to clipboard 
Print this post

And while on the subject, I see a day can be entered.
Could the WRITE.BAS and READ.BAS files be altered to include a day and an option of 12 or 24 hour time?

Its easier to ask forgiveness than to seek permission!

............VK6MRG.............VK3MGR............
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 05:31am 02 Nov 2011
Copy link to clipboard 
Print this post

as i have mentioned i cannot even start to understand basic code the structure .and the archtecthure is a whole new world to me sorry but i missed basic ...
technicians do it with least resistance
 
Bill.b

Senior Member

Joined: 25/06/2011
Location: Australia
Posts: 226
Posted: 05:36am 02 Nov 2011
Copy link to clipboard 
Print this post

hi sometimes it is easier to decode 12 / 24 hour in code rather than use the
feature of the RTC.

The DAY byte ( byte 3) outputs a nubler 1 to 7 it is up to you how you use this
number. I gerneraly have 1 = to Sunday.

this is the code I use to give 12 hour output.
(this is not mmbasic but picaxe basic, the format is similar)

Hour_12 = hour
if hour >9 then
Hour_12 = hour - 6
endif
if hour >18 then
Hour_12 = hour - 18
endif
if hour >25 then
Hour_12 = hour - 24
endif
if hour =0 then
Hour_12 = 12
endif
if hour > 17 then
PERIOD$ ="pm"
else
PERIOD$ ="am"
endif
In the interests of the environment, this post has been constructed entirely from recycled electrons.
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 05:43am 02 Nov 2011
Copy link to clipboard 
Print this post

can you convert this to basic matthew... ///...///
technicians do it with least resistance
 
VK6MRG

Guru

Joined: 08/06/2011
Location: Australia
Posts: 347
Posted: 05:54am 02 Nov 2011
Copy link to clipboard 
Print this post

Well, I also have very limited Basic experience.
But it looks like a nice challenge.

Its easier to ask forgiveness than to seek permission!

............VK6MRG.............VK3MGR............
 
VK6MRG

Guru

Joined: 08/06/2011
Location: Australia
Posts: 347
Posted: 06:00am 02 Nov 2011
Copy link to clipboard 
Print this post

And just a side note from the DS1307 data sheet, A lithium battery with 48 mAhr or greater will back up the DS1307 for more than 10 years in the absence of power at 25 degrees C.
But how many of us with a RTC will have our Maximite turned off for 10 years?
Its easier to ask forgiveness than to seek permission!

............VK6MRG.............VK3MGR............
 
sparkey

Senior Member

Joined: 15/06/2011
Location: Australia
Posts: 819
Posted: 06:23am 02 Nov 2011
Copy link to clipboard 
Print this post

i would like to add that the code that bill.b suggests using bill.b is using a 1307 i am using the 8563 or what ever it is ...its different or am i looking at this in the wrong perspective what bill is sugessting is a straight foward conversion of code to implacate 12 hour read out...///...//
technicians do it with least resistance
 
Bill.b

Senior Member

Joined: 25/06/2011
Location: Australia
Posts: 226
Posted: 07:55am 02 Nov 2011
Copy link to clipboard 
Print this post

hi sparkey

the 8563 does not have 12/24 selection therefore you have to use code for the
12 hour readout. this has the advantage of being able to select 12 or 24 hour
display.
also byte 06h is the day of the week data and is 0 to 6 for sunday to saturday.

2011-11-02_175533_PCF8563.pdf
In the interests of the environment, this post has been constructed entirely from recycled electrons.
 
VK6MRG

Guru

Joined: 08/06/2011
Location: Australia
Posts: 347
Posted: 08:15am 02 Nov 2011
Copy link to clipboard 
Print this post

OK, a quick question.
&h1
Can you tell me what the & is. And also the h. I assume the 1 is hex 1, therefore dec 1.

Its easier to ask forgiveness than to seek permission!

............VK6MRG.............VK3MGR............
 
VK6MRG

Guru

Joined: 08/06/2011
Location: Australia
Posts: 347
Posted: 08:22am 02 Nov 2011
Copy link to clipboard 
Print this post

And would this mean that,
&H0 would be Sunday
&H1 Monday
&H2 Tuesday
&H3 Wednesday
&H4 Thursday
&H5 Friday
&H6 would be Saturday?
Sorry, I've never covered this type of thing, but the above seems logical.


Its easier to ask forgiveness than to seek permission!

............VK6MRG.............VK3MGR............
 
     Page 2 of 4    
Print this page
© JAQ Software 2024