Welcome, Guest. Please login or register.

Author Topic: Interfacing serial RTC chip with serial port  (Read 3442 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Interfacing serial RTC chip with serial port
« on: March 07, 2007, 07:31:37 PM »
I've found a Serial Interface Real Time Clock Module. I'm wondering if there's any way to interface it with the serial port on an Amiga. I might then be able to write a simple Blitz Basic app to read the time and date from the serial port and set the Amiga's clock.

Would anybody have any idea if this is possible?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Interfacing serial RTC chip with serial port
« Reply #1 on: March 07, 2007, 08:09:53 PM »
The battery on my A4000 was removed before I bought it, and I refuse to put a soldering iron anywhere near it to solder a lithium battery in.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Interfacing serial RTC chip with serial port
« Reply #2 on: March 07, 2007, 08:18:19 PM »
Quote
Tahoe wrote:
Right; so your on-board RTC is probably running just fine; you just need something to hold the time for you?

Correct.

Quote
Tahoe wrote:
Is the "SAVE" button greyed out in Prefs/Time? If not your RTC is working fine and you only need a battery.

Yes, but as I said I don't want to solder a bettery to the motherboard.

Quote
Tahoe wrote:
You could ofcourse also sync time with a internet based time source; your miggy would keep time until switched off..

I have done this, but I don't always want to connect to the Internet because it causes problems with WHDLoad.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Interfacing serial RTC chip with serial port
« Reply #3 on: March 07, 2007, 09:13:27 PM »
Quote
shoggoth wrote:
You'd be better of using the parallel port

With that chip, or a different one?

Quote
shoggoth wrote:
and use bit-banging.

I have no idea what that means :-)

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Interfacing serial RTC chip with serial port
« Reply #4 on: March 09, 2007, 11:29:20 AM »
@InTheSand
OIC, that's what I was planning to do with Blitz.

@Others who have suggested NNTP or soldering battery...
I've already explained why I don't want to do those.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Interfacing serial RTC chip with serial port
« Reply #5 on: March 09, 2007, 04:21:53 PM »
Are DI, DO and CLK the only lines which need to connect to the parallel port? And is it as simple as powering the chip and connecting those lines to the port?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Interfacing serial RTC chip with serial port
« Reply #6 on: March 10, 2007, 08:25:32 AM »
Great, thanks for the info!

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10