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 3 of 4 | |||||
Author | Message | ||||
sparkey Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 819 |
to be honest i know the part of the code you are talking about but converting hex to binary left me a long time ago if i got out my school books i could prolly figure it out i just had my dinner and took my medication i have been awake for 42 hours and really not much chop atm sorry about that and the and refers to um a hex number in code that represents the value of the key its a little mixed up code there...from memory to be honest i relly havent done hex strokes and key notification for twenty years back in my tafe days i do know where one of my reference books is but i`m not even shure that has the answers "gerard would be the one to ask but have not seen him pop up any where for a fair time...///.../// but its definatley a hex notation ///try search ing for a hex to binary converter on the net ....///when it comes down to it i am a much better analouge teh than digital..../// technicians do it with least resistance |
||||
Bill.b Senior Member Joined: 25/06/2011 Location: AustraliaPosts: 226 |
refer to page 8 of the MMBasic manual 0-9 decimal &H - hex 0 - 16 or 0-9 ABCDEF &O - octal 0-7 &B - Binary 01 will will have to ask geoff the significance of the & symbol In the interests of the environment, this post has been constructed entirely from recycled electrons. |
||||
sparkey Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 819 |
thought they may be the case it was matt that asked me ....///.../// thanks for your in put i used to know all this stuff yeasrs ago but then i went into the electronic repar buisiness now i would not even touch a crt little bestow an lcd unless its a power problem and who in their right mind other than the bloke who only owns and repairs crt`s would actully bother to fix one the prices on brand new lcd`s is a far cry from the money u would save in the first place for the repoair put the money on a lcd most come with at least 3 year warrenty`s these days ..i refer them to ciggy lighters well we pretty much live in a disposable society these days any way i just bought my first 80 cm lcd tv it cost me 299 bucks ...///.../// technicians do it with least resistance |
||||
sparkey Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 819 |
well i finally have the "rtc " running it wasent turnig over the date i will post the 2 zip files i am using the only disadvantage is that the clock runs in 24 hour mode but thats not to be snezzed at it is on the SM1 board from don running the 8653 chip ...///.../// i think i am using gerards code but there have been so many posts of the code well this is working for me will zip up the files and post .../// heres a pic of the sm1 board i picked up to day i am waiting for the discreet components to arrive hope fully to morrow i have put 25 mm m3 bolts as stand offs as this will be my test rig for what ever i find to mod on it in addition i would also like to add that i am going to use the con 3 connections rather than the i/o pins as i dont favor the idea of using up these pins ...///.../// these are the files i use 2011-11-03_235023_rtc.zip technicians do it with least resistance |
||||
johnbig Newbie Joined: 23/06/2011 Location: AustraliaPosts: 21 |
Hi Sparkey the zip file is invalid. John Leate |
||||
sparkey Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 819 |
sorry about that yes ut seems that one of the files is blank i will fix it shortly please dont respond as i want to edut this pasge i just woke up ....///.../// this should work2011-11-04_091329_2011-11-01_170454_8563.zip technicians do it with least resistance |
||||
Bill.b Senior Member Joined: 25/06/2011 Location: AustraliaPosts: 226 |
Hi sparkey tye this code to convert to 12 hour format 310 BCDTEMP = RTCBuff(2) 311 GOSUB 11000 312 Hour_12 = decimal 313 if decimal >12 then 114 Hour_12 = decimal - 12 315 endif 316 if decimal =0 then 317 Hour_12 = 12 318 endif 319 hours$ = STR$(Hour_12) 440 t$ = hours$+":"+min$+":"+sec$ 445 TIME$ = T$ In the interests of the environment, this post has been constructed entirely from recycled electrons. |
||||
Bill.b Senior Member Joined: 25/06/2011 Location: AustraliaPosts: 226 |
Hi Sparkey it is a #//#?** not being able to edit postings!!!!! line 311 should be GOSUB 1000 In the interests of the environment, this post has been constructed entirely from recycled electrons. |
||||
sparkey Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 819 |
forgive me the ignorance but this code goes into the other code replacing the lines ....///.../// technicians do it with least resistance |
||||
Bill.b Senior Member Joined: 25/06/2011 Location: AustraliaPosts: 226 |
Yes In the interests of the environment, this post has been constructed entirely from recycled electrons. |
||||
sparkey Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 819 |
well this is the rtc files it seems to work although its midnight and i am not shure weather the clock is set to 12 or 24 hour mode but it does work...///.../// 2011-11-04_230826_rtc.zip i just set the time to 12:16:00....so if it turns over at lunchtime it will be presting 12 hour mode.... well have to wait till then...///.../// also it reads the day correctly its saturday now...thats what i enterd since ...///.../// also would like to add i did this with the battery fitted just st the correct time and date from the command line next run"setime ...follow the prompts " then hit enter.... then run the "read" program and every thing should display in front of you ...///.../// technicians do it with least resistance |
||||
sparkey Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 819 |
here is a pic of my blown up SM! board with the "rtc" components running ..isolated from the faulty cct of the "SM1" with my "EV " board mounted on top of it and hard wired vga video and a k-b sckt that i removed and cable tied up to the usb conn....the time clock is running and so there you have it a fully working maxi it has all the features working...///.../// the clock is still running in 24 hour mode will have to look into this but ...i`m tired and it wont be tonite..it could be that i have some of the code wrong and as i am running the "8563 chip it may only run in 24:00 mode i dunno ..././//.../// just a recent pic..... technicians do it with least resistance |
||||
sparkey Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 819 |
i am in the process of organizing a maxi/pic/audino and other micro controllers ::::::: fest :: ::however there are some down sides to this "" it will be the first of its kind and will be held in melbourne vic at a post code of 3049 "" it is a revamped hall with ammenties such as brand new toilets and fresh running water:: :there is parking for cars and close to the local supermarket if you should require any thing that you may need i will be providing trestle tables approx 20 or so also will be providing all these trestles with mains powered per trestle as i will not be providing any other hard ware as i am shure you can bring your own gear your self .... there will be a 5 dollar entry fee as the hall is quite expensive to hire due to its rebuild .... i will expect that all entrents will be have in a civil manner and the local police are very close at hand ... ...i will not tollerate abusive and uncool behaviour...adding to this i can organize professional security ... there will be free tea and coffe supplied and this also accounts for the 5 dollar entry fee ... i hope to have this around august in 2012 ...i unfotunatley regret that i cannot make the venue closer to central australia but as by june 2012 i will know from the forum statistics weather to go ahead and organize the "meet" also there are quite a few places to stay with the local motels offering a plentifull amount of stop over arrangements i may even to be able to organize a cheaper rate if the numbers are going to be high in attendence.... in addition there will be door prizes which wiil prolly be some of the latest maximite gear ...too be announced later as to what products are available at that time i hope i have coverd the bases here regards sparkey ...///.../// oh and for the critics i am not endevoring to make a buck out of this at all i just to cover costs..and bring together what i think that i will prolly organise once a yar ... and any funds left over will go into a managed account for the next one that i organize....///...sparkey...also i may even set up a computer with a donglee and some net working facilitys so that people can have internet access i have available a c few crak core net heads that can assist besides that i think i want to make this a special event and any hel on the day would be very much appreaciated...///children under 16 will be enterd as free as long as they are accompanyied by an adult ...//// technicians do it with least resistance |
||||
sparkey Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 819 |
ok so its a bad idea i just dug up a 8 way switch hub ...... technicians do it with least resistance |
||||
sparkey Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 819 |
honestly come june next year 2012 i will make my decision about the whole concept ..i know i said i was not going to supply any hard ware other than every trestle having a powerd site this still stands and with some help it may be that we can have a central pc with the adaptability to run "I2C" and "rj45" as planned but i still may invest in a donggle depending if it gets used for good purposes only i have a very nice pc which will be able to facilitate most needs i think ...///...///build it and they will come...///...///any administrators from this forum will be admitted free ....///...///and hot choclate well milo prolly for the chochlate drinkers sorry i forgot about the peops that drink hot choc any way ,,...///...// technicians do it with least resistance |
||||
sparkey Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 819 |
i just scored a paralell ink jet printer for 30 bucks it has four replacement car`ts and a serial adaptor ...i cant waight for thr "audino mega" board to become avaliable it has a "db 9 " conn on it..this will plug straight into it the problem i now have is to get the printer talking to the pic chip.... technicians do it with least resistance |
||||
sparkey Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 819 |
here`s a pic of my latest addition.to add to my collection.....lets have some fun HMMM wonder what i can create with this technicians do it with least resistance |
||||
sparkey Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 819 |
and here`s it with an lcd sheild... technicians do it with least resistance |
||||
donmck Guru Joined: 09/06/2011 Location: AustraliaPosts: 1313 |
did the existing code work sparkey? Cheers Don... https://www.dontronics.com |
||||
sparkey Senior Member Joined: 15/06/2011 Location: AustraliaPosts: 819 |
still works in progreess still admireing its elegance but will get round to it ..testing out a amplifier i build last night ..... technicians do it with least resistance |
||||
Page 3 of 4 |
Print this page |