Java and the RTC

Started by c04203420 in BasicX12 years ago 4 replies

So I was thinking about the battery powered clock thing but I had another idea. I cracked this up in Java today and it is very simple. ...

So I was thinking about the battery powered clock thing but I had another idea. I cracked this up in Java today and it is very simple. String formattedDate = new SimpleDateFormat("dd-MM-yy-hh-mm-ss").format(new Date()); This one liner will format the date very sweetly. It is then just a case of making the appropriate c


Re: Timer() loses time

Started by Chris in BasicX14 years ago 8 replies

Neil, Frank is correct, I misspoke. Com3 will not interfere with the RTC. I was thinking of something else. Are you...

Neil, Frank is correct, I misspoke. Com3 will not interfere with the RTC. I was thinking of something else. Are you perhaps incrementing your Time variable with a "rounded" Timer result? Doing so would cause the loss of time you are seeing. Chris


Faster!

Started by Tom Becker in BasicX11 years ago

Ever looked at your output on a scope and wished that the occasional one-tick glitch wasn't there? You might be able to get rid of it. If...

Ever looked at your output on a scope and wished that the occasional one-tick glitch wasn't there? You might be able to get rid of it. If you do not need the RTC, you can turn Timer0 off and still multitask, despite the loss of the 512Hz system tick. In fact, BX-24 code will run faster and more regularly if Timer0 is disabled. Your programming must, if the system tick is disabled, be...


Re: Keeping track of date and time

Started by Don Kinzer in BasicX13 years ago 2 replies

--- In basicx@basi..., davidsousamendes@h... wrote: > Is there any way of keeping track of date and time after pressing > the reset...

--- In basicx@basi..., davidsousamendes@h... wrote: > Is there any way of keeping track of date and time after pressing > the reset button? A calender and watch have worked for me. ;) I assume that your inquiry is about how to set the date and time so that the RTC represents the current date/time. One way to do so is to add an e


BX24 SPI CE

Started by geekfarmer in BasicX5 years ago 1 reply

I am new to SPI and am trying to connect a BX24 to a DS1305 RTC and am having trouble getting the CE to function active high. If I understand SPI...

I am new to SPI and am trying to connect a BX24 to a DS1305 RTC and am having trouble getting the CE to function active high. If I understand SPI on the BX24 correctly to configure the CE to be active high bit 4 of the configuration word should be 0. I have tryed 0 and 1 but the CE is always active low. Below is my code. What am I missing? Thanks. ublic Sub Main() 'Option Explicit 'Funct...


RTC on the BX-24P

Started by Bookwalter, Dan in BasicX12 years ago 15 replies

Does the real time clock on the latest version of the BX-24 still have 1.95 ms resolution ??? I really need it to be faster.... Dan...

Does the real time clock on the latest version of the BX-24 still have 1.95 ms resolution ??? I really need it to be faster.... Dan Bookwalter N8DCJ FOC 1707 Hi-Stat a Stoneridge Co. 345 South Mill St. Lexington, Ohio 44904 (419) 884-1219 Phone (419) 884-4172 Direct (419) 884-4196 Fax Dan.Bookwalter@Dan....


BasicX Coding Challenge

Started by n0ure in BasicX12 years ago

Coding Challenge: I have two extra Dallas DS2404 16dip RAM/RTC chips with crystal. I am a novice with the BasicX chip so I can use all the...

Coding Challenge: I have two extra Dallas DS2404 16dip RAM/RTC chips with crystal. I am a novice with the BasicX chip so I can use all the help I can get. I will mail, post paid chip and crystal to the two of this group that are willing to write and make available in this group well written and commented code for discovering, setting and reading the memory, close and control features