No, I did not.
I ended up using the DS3231. This is a combo of a precsion oscillator
good to 2ppm over an industrial temp range. It is a RTC with date and
time down to the second.
It also has various squarewave output frequencies. Only powers of 2,
though.
I had been hoping for 1/1000 second to be one of the options, but the
closest I could come is 1/1024. I used that output (actually 8192Hz)
and fed that into the AVR counter/timer input. I then set it to
create an interrupt every 8th tick. I was able to get this to work
well for me.
Unfortunately for this bulletin board, it was used on raw AVR
hardware. If I were to use a BX, I would set the square wave to the
slowest setting, and have it trigger the external interrupt on the
rising or falling edge (probably the falling edge, with the internal
pullup enabled). If I needed more resolution than 1/1024th sec, then
I would have to use a higher freq (upto 32768Hz) and use a counter
within the interrupt to set a flag when it was time.
In the end I got it to work very very nicely. Very clean and
precise. BTW, the 3231 uses an I2C interface to read the RTC and set
the settings. The squarewave is a separate output of the 3231 chip.
You can see some of the code I generated for the 3231 using the Zx-24
platform which is a very similar device to the BX. Check on the
www.zbasic.net website in the user files. I also have some code for
other dallas RTC devices too.
-Tony
--- In b...@yahoogroups.com, "n0ure"
wrote:
>
> Tony, did you ever write some code for the 2404?
>
> John
>

(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )