[net.micro] New Real Time Clock/Calendar Chip

jb@terak.UUCP (John Blalock) (07/30/85)

-------
Adding a Real Time Clock to a micro can be somewhat of a hassle, to say the
least.  The OKI 5832 is best interfaced thru a PIA, the National 58174 and
58274 chips have faster access times but still require wait states.  OKI,
however, has recently introduced a new RTC chip, the MSM6242RS, that is
designed to be directly interfaced to the sytem bus of Z80, 8080, 8085,
8086/8, 6800, 6502, etc. processors without the need for wait states.  It
has several neat features such as <30 microamps current draw (<10 microamps
in standby mode), +/- 30 seconds adjust, automatic leap year correction,
12/24 hour modes, and year/month/day/day of week in addition to hours/min/sec.

I have one running on my 4 MHz Z80 system now - extremely easy to interface!
The only problems were in setting the 12/24 hour mode correctly and sometimes
BUSY would never go low after once setting HOLD high.  Here are the fixes:
 To read the clock registers, you set the HOLD bit and wait for BUSY to go low.
 If it does't go low within 190 usec, reset HOLD and try again. (You'll fail on
 the first try only once per 36000 tries.)  The data sheet is not too clear on
 how to set the 12/24 hour modes.  To set 12-hour mode, output 01H, then 00H to
 Ctl Reg F.  To set 24-hour mode, output 05H, then 04H to Ctl Reg F.

If you need a RTC, check this one out. 

I have no connection with OKI Semiconductor, just a satisfied user of a good
part that I hadn't heard about until 4 days ago.  They should do a better
job of letting the world know about the 6242.

John Blalock, W7AAY

uucp:	 ...{amd,decvax,hao,ihnp4,seismo}!noao!terak!jb
phone:	 (602) 998-4800
us mail: CalComp, 14151 N. 76th St., Scottsdale, AZ 85260
         \\\\\\\
          -------> Formerly Terak Corporation

GUBBINS@RADC-TOPS20.ARPA (Gern) (07/31/85)

I had OKI send to me the rough data sheets on the 6242 when I called
to ask questions about the MSM58321 (note the '1' opposed to the 
MSM5832 chip).   OKI is the only company I know of that has a toll
free 800 number that you can call and the engineer of the chip is
happy to answer your questions and help you use his chip in your
application!!!   I was most impressed.

However, I chose to continue to use (once I got it working properly
after the phone call...) the MSM58321 (16-pin with on-chip auto-leap-
year).  The 6242 is a much faster chip, is 18-pin (I HATE 18-pin
chips...), is more expensive, and I can not get a low quanity supplier
of it.   Since I am set to control the clock/cal chip from the I/O
ports of my sound chips in my application anyway, the 58321 was my
perfect choice!   

I was most impressed with all the OKI clock/cal ICs, their support
and if you want a truely remarkable experience: walk into the OKI
front lobby in Silicon Valley in Sunnyvale and see their new building.
The very large and tall lobby is all stainless steel (well, it looks
like stainless steel, may not be...)!!!

Cheers,
Gern
-------