DS1216-E questions

Hardware questions and modifications

DS1216-E questions

Postby MikeModified » Tue Apr 01, 2014 2:58 pm

I got my PCjr yesterday (Thanks Hargle!) and started to play with it.

Six months ago I purchased a new Dallas clock chip (DS1216 on the tiny chip, big E on the circuit board) from Jameco (?) and installed it into a Tandy 1000. It worked perfectly. This morning I pulled it out of the 1000 and installed it into my jr using the instructions (and location) provided by M.Brutman and the provided software gives strange results.

I set the date via DOS: 04-01-2014
I type "clock": 04/01/19;4
I type "date": 04-01-2000
I type "testclk": 04/01/19;4
I type "date": 04-01-2000
I type "rdclock"
I type "date": 04-01-2062

Constantly, consistently repeatable; with the date set as "04-01-2014" from DOS, clock & testclk always show "04/01/19;4", DOS date always shows "04-01-2000" after clock or testclk is run and "04-01-2062" after rdclock is run.

I'm not sure what is wrong. Any thoughts?

Mike
MikeModified
 
Posts: 122
Joined: Sat Mar 15, 2014 5:10 pm
Location: Portland, OR

Re: DS1216-E questions

Postby MikeModified » Tue Apr 01, 2014 6:24 pm

"Next, use the DOS software to set the current date and time on the DS 1216E chip, and add the software to your AUTOEXEC.BAT file."

Better, perhaps: "Next, use CLOCK.COM to set the current date and time..." as, of course, using DOS to set the time doesn't work properly.

From the C source code:

This code contains a driver program for the DS-1216E SmartWatch real-time clock. The program can set and display the contents of the SmartWatch chip, and will also set the current MS-DOS date and time. The syntax is:

CLOCK [<MM/DD/YY>] [<HH:MM:SS>] [<DAY>]
Where:
MM/DD/YY: Standard date. The YEAR is optional - if not entered, the current year from the clock chip will be used. Otherwise, years from 80-99 are assumed to mean 1980-1999, and years from 00-79 mean 2000-2079. Note that you can use either slashes (/) or dashes (-) as the date separator.
HH:MM:SS: Standard time of day. If seconds are omitted the actual seconds value will be set to 0. Fractional seconds are always set to 0.
DAY: The day-of-week, from Sunday-Saturday. The syntax requires only that the first two chars of the day-name be entered, but additional characters are accepted (ex, TU, TUE, TUES, TUESD, TUESDA, or TUESDAY are OK).

Parameters may be entered in any order (Date, Time, or Day first). Any parameter which is not entered will be read from the time clock.

All fixed! Operator error!

Mike
MikeModified
 
Posts: 122
Joined: Sat Mar 15, 2014 5:10 pm
Location: Portland, OR


Return to PCjr Hardware

Who is online

Users browsing this forum: No registered users and 3 guests

cron