Real time clock help

Started by Christian Wentz in BasicX14 years ago 2 replies

Hi all, I'm interested in using the bx-24 for one of my projects, but i didn't see in the documentation anything specific...

Hi all, I'm interested in using the bx-24 for one of my projects, but i didn't see in the documentation anything specific regarding the RTC. What resolution does this RTC have? how processor intensive are RTC commands? thanks, Christian __________________________


More RTC

Started by omtispr in BasicX13 years ago 3 replies

First thanks Tom Becker for your answer to our question but your solution don't sound logic to us and we are so sorry o said that....

First thanks Tom Becker for your answer to our question but your solution don't sound logic to us and we are so sorry o said that. we know very well the DS1307 rtc chip because we use the chip in designs before. why if the bx-24 have a rtc we have to add more components to the de


Generating a RTC-based interrupt

Started by arhodes19044 in BasicX12 years ago 12 replies

I need to have the BX-24 generate its own interrupt. I already am using the WaitForInterrupt() on pin 11, so I need to have the BX-24 ...

I need to have the BX-24 generate its own interrupt. I already am using the WaitForInterrupt() on pin 11, so I need to have the BX-24 generate its own interrupt. Essentially I want to update a display every second. I want it to coincide with the RTC full second (not at a fractional second). Probably I need to have a loop check the a RTC r


RTC

Started by Anonymous in BasicX13 years ago 11 replies

Has the BX-24 a real RTC? I have tried to program using PutTime() and PutDate() but every time I re-run, it forgets the stored...

Has the BX-24 a real RTC? I have tried to program using PutTime() and PutDate() but every time I re-run, it forgets the stored data. How is Done? Please help.


Started by omtispr in BasicX13 years ago 1 reply

HY OUR QUESTION TODAY IS THAT WE NEED TO RUN THE RTC PERMANENT OR BATTERIES. CAN I USE A 3.6V BATTERY AND IF IS BETWEN GROUND AND...

HY OUR QUESTION TODAY IS THAT WE NEED TO RUN THE RTC PERMANENT OR BATTERIES. CAN I USE A 3.6V BATTERY AND IF IS BETWEN GROUND AND PIN 21 THE CONECTION. CURIOS IN A PROGRAM WE PROGRAM THE RTC WITH PUTTIMESTAMP AND IF YOU RUN THE PROGRAM AND PRINT THE VALUE YOU GET THE RIGHT VALUE


RTC

Started by c04203420 in BasicX12 years ago 7 replies

What would be the best way to keep the real time clock synchronized? Am i right in saying the bx-24 rtc has to be reset each time it is ...

What would be the best way to keep the real time clock synchronized? Am i right in saying the bx-24 rtc has to be reset each time it is powered on an if so what would be an option for keeping the clock powered. A small battery perhaps?


Dallas DS1302 RTC problem

Started by mrrmckenzie in BasicX12 years ago 3 replies

I have 4 new DS1302 chips and 4 new 32khz watch crystals intending to make a persistent RTC for my BX35 project. Problem is that after ...

I have 4 new DS1302 chips and 4 new 32khz watch crystals intending to make a persistent RTC for my BX35 project. Problem is that after finally connecting all the stuff together on a breadboard and programming up a simple test routine I do not get healthy results. One of the DS2302's will count up the seconds register but appears to take from 4 to 8 (variable


MULTIPLE PROGRAMS TRANSFERRED FROM EEPROM

Started by lgharriman in BasicX14 years ago

I was wondering if it is possible to have several programs stored in EEPROM and call up each one individually and transfer its...

I was wondering if it is possible to have several programs stored in EEPROM and call up each one individually and transfer its contents to the basicx-24 chip. i have found an external rtc with 128k eeprom on it and both communite with the i2c protocol. I am already addressing an RTC


How do I set the date and time of the BasicX-24 RTC?

Started by taber0015 in BasicX9 years ago 1 reply

I just recieved my BasicX-24 development kit and am having some problems setting the RTC. I've loaded the serial 2x16 LCD demo and it...

I just recieved my BasicX-24 development kit and am having some problems setting the RTC. I've loaded the serial 2x16 LCD demo and it works great! The problem I've having is at the end of the LCD demo the display shows the default date and time. Now I have changed the LCD demo code by adding PutDate and PutTime, but it doesn't seem to be working. The PutTime command wont compile correct...


Dallas DS2404

Started by n0ure in BasicX12 years ago 3 replies

Anyone have any BASICX code for this RTC/MEM ? JC

Anyone have any BASICX code for this RTC/MEM ? JC


DCF77

Started by wimn.rm in BasicX12 years ago 14 replies

I need to measure incoming pulses of 100 and 200 milliseconds. The PulseIn in not suitable for this, it's rangs is to short. Before I start...

I need to measure incoming pulses of 100 and 200 milliseconds. The PulseIn in not suitable for this, it's rangs is to short. Before I start doing difficult things with the rtc I will ask if someone has another bright idea how to do a simple pulswidth measurement of pulses of this lenght.


Re: RTC

Started by Art Church in BasicX13 years ago 2 replies

What is the expected accuarcy of the BasicX Real Time Clock ? - I am currently adjusting register.RTCtick upwards by 1 every second...

What is the expected accuarcy of the BasicX Real Time Clock ? - I am currently adjusting register.RTCtick upwards by 1 every second and getting quite close which is 99.8% I am assuming that this will be dependant on the actual crystal and may vary by unit. ...or I have something else go


Re: RTC

Started by Art Church in BasicX13 years ago

Thanks. Made those changes. Based on your comments I am now looking at where I use timer and perhaps could use RTCtick instead as I...

Thanks. Made those changes. Based on your comments I am now looking at where I use timer and perhaps could use RTCtick instead as I basically take timer back to to a integer of milliseconds for my purposes.The same should apply there too I would think. Art -----Original Message--


Re: RTC

Started by Art Church in BasicX13 years ago 1 reply

Thanks Don & Tom I have pulseouts of 0.001 which is within the 1.95 ms range. I have changed them to 0.0001 to see if this made...

Thanks Don & Tom I have pulseouts of 0.001 which is within the 1.95 ms range. I have changed them to 0.0001 to see if this made a differance. It did. For the last hour it seems pretty much right on. This is a copy of relevant code the 0.00001 were 0.001. I have


Keeping track of date and time

Started by David Sousa Mendes in BasicX8 years ago 49 replies

Hello fellows On an old thread, someone suggested the use of DS1302 as an external RTC... Is there any new/better chip on the market or do you...

Hello fellows On an old thread, someone suggested the use of DS1302 as an external RTC... Is there any new/better chip on the market or do you still think this is the best way to keep track of date and time? Regards David M. ------------------------------------


Serial Binary Counter and Shift Registers

Started by David Sousa Mendes in BasicX12 years ago 5 replies

Hello I'm working with an anemometer which sends pulses every time it makes a complete tour. I was thinkin about using the CountTransitions...

Hello I'm working with an anemometer which sends pulses every time it makes a complete tour. I was thinkin about using the CountTransitions function... The thing is I will have to count transistions during 5 seconds or so and meanwhile, my program would be stopped as well as the RTC As a solution, I'm trying to bring back some of the digital lectures I had during University


Code for ds1302 or ds1307

Started by nuepatrick in BasicX13 years ago 1 reply

Hello, I am looking for some sample code that will work with the basicx. I understand that the chip has an onboard RTC. I...

Hello, I am looking for some sample code that will work with the basicx. I understand that the chip has an onboard RTC. I would like to use an external chip that can be supplied by a supercap or battery, even when the power is off. Any help would be apperic


BX-24 with ds1302

Started by neilgrey in BasicX14 years ago 3 replies

Hi folks: I've built a circuit which uses a BS2 connected to a DS1302 RTC. For several reasons i've decided to replace the...

Hi folks: I've built a circuit which uses a BS2 connected to a DS1302 RTC. For several reasons i've decided to replace the BS2 with the BX-24. However when reviewing the docs for the BX-24 I noticed there are some restrictions on the SHIFTIN, SHIFTOUT instructio


RTC Chip

Started by p_dubinsky in BasicX13 years ago 6 replies

Does anyone know of a serial interface (SPI, i-Wire, etc), real time clock chip that returns milliseconds? I don't need date but I...

Does anyone know of a serial interface (SPI, i-Wire, etc), real time clock chip that returns milliseconds? I don't need date but I do need fractional seconds, ideally milliseconds. TIA, Paul


A Code Challenge

Started by Tom Becker in BasicX12 years ago 19 replies

A common task is timestamping and logging an event. I propose a simple challenge: what is _the_ elegant code that produces an 8-byte ASCII...

A common task is timestamping and logging an event. I propose a simple challenge: what is _the_ elegant code that produces an 8-byte ASCII string in the form "HHMMSShh" (hh is _hundredths_ of a second) from a current BX-24 RTC value? Any takers? Tom