ENTERPRISE KLUB
2019. szeptember 7., 1055 Budapest, Nyugati tér 9. 14-19 óráig
Részletek
Welcome, Guest. Please login or register.


Author Topic: Internal RTC and 512KB Flash-ROM for Saint's memory expansions (Read 3384 times)

Offline gflorez

  • EP addict
  • *
  • Posts: 2605
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 51.0 Firefox 51.0
    • View Profile
Re: Internal RTC and 512KB Flash-ROM for Saint's memory expansions
« Reply #15 on: 2017.February.10. 13:35:44 »
Now I am going to solder the pins, but as Zozo has pointed, some pins go on different place on the Flash chip:

This is the SRam:
17335-0

And this is the Flash-Rom:
17337-1

-Pin 3, on SRAM is A14, on Flash-ROM is A15.
-Pin 29, on SRAM is /WE, on Flash-ROM is A14.
-Pin 31, on SRAM is A15, on Flash-ROM is /WE.

The pins must be rotated with three little leads.

Also /CE on pin 22 should be left free, as it goes to pin 19 of the GAL.

And at last, a cut must be made on Saint's board, at least in my version:

17339-2
« Last Edit: 2017.February.10. 13:48:34 by gflorez »

Offline gflorez

  • EP addict
  • *
  • Posts: 2605
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 51.0 Firefox 51.0
    • View Profile
Re: Internal RTC and 512KB Flash-ROM for Saint's memory expansions
« Reply #16 on: 2017.February.10. 15:47:59 »
Pins rotated. /CS for the Flash-Rom soldered from GAL, pin 19.

Time to test it.....

Offline gflorez

  • EP addict
  • *
  • Posts: 2605
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 51.0 Firefox 51.0
    • View Profile
Re: Internal RTC and 512KB Flash-ROM for Saint's memory expansions
« Reply #17 on: 2017.February.10. 21:41:10 »
Tested and working.

The next  task is to solder the RTC.
« Last Edit: 2017.February.10. 22:11:27 by gflorez »

Offline gflorez

  • EP addict
  • *
  • Posts: 2605
  • Country: es
  • OS:
  • Unknown Unknown
  • Browser:
  • Firefox 51.0 Firefox 51.0
    • View Profile
Re: Internal RTC and 512KB Flash-ROM for Saint's memory expansions
« Reply #18 on: 2017.February.11. 00:26:02 »
RTC soldered, but I think it is still not working.
« Last Edit: 2017.February.11. 00:29:23 by gflorez »

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13431
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 51.0 Firefox 51.0
    • View Profile
    • http://enterprise.iko.hu/
Re: Internal RTC and 512KB Flash-ROM for Saint's memory expansions
« Reply #19 on: 2017.February.11. 07:43:58 »
RTC soldered, but I think it is still not working.
What happened?

Offline gflorez

  • EP addict
  • *
  • Posts: 2605
  • Country: es
  • OS:
  • Unknown Unknown
  • Browser:
  • Firefox 51.0 Firefox 51.0
    • View Profile
Re: Internal RTC and 512KB Flash-ROM for Saint's memory expansions
« Reply #20 on: 2017.February.11. 09:53:50 »
If I reset the Ep, the time starts again  from 00:00:00 and, if I change to 10Mhz, the clock goes faster...

The ports, according to LGB ports listing, are:

0x7E   CMOS RTC/memory register select
0x7F   CMOS RTC/memory register read/write

I will read them to see if there is communication.

Also it can be that the ATF22vV10 is not properly programmed.
« Last Edit: 2017.February.11. 10:08:50 by gflorez »

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13431
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 51.0 Firefox 51.0
    • View Profile
    • http://enterprise.iko.hu/
Re: Internal RTC and 512KB Flash-ROM for Saint's memory expansions
« Reply #21 on: 2017.February.11. 10:10:51 »
The new RTC chips shipped in stopped sate (for power save), need to be initialised.
SET 142,8
:DATE
:TIME
:HWRITE
SET 142,0

Offline gflorez

  • EP addict
  • *
  • Posts: 2605
  • Country: es
  • OS:
  • Unknown Unknown
  • Browser:
  • Firefox 51.0 Firefox 51.0
    • View Profile
Re: Internal RTC and 512KB Flash-ROM for Saint's memory expansions
« Reply #22 on: 2017.February.11. 11:49:23 »
*** No hardware clock board or bad.

I have to re-check the connections and ATF programming.

Offline pear

  • EP lover
  • *
  • Posts: 772
  • Country: pl
  • Z80 only
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 51.0 Firefox 51.0
    • View Profile
Re: Internal RTC and 512KB Flash-ROM for Saint's memory expansions
« Reply #23 on: 2017.February.11. 13:20:03 »
Pear is making some measurements with the internal expansion headers.

This picture is to show how the second header is placed under the narrowing in the upper housing at the external expansion port. The red line marks the limit of the narrowing, about 7 mm over the main board.
I think I found the solution :)
The small L-shaped board.
I added signals /M1, /IORQ, /RESET and /INT.

Previously I thought about crimp IDC connector, but they are too high.

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13431
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 51.0 Firefox 51.0
    • View Profile
    • http://enterprise.iko.hu/
Re: Internal RTC and 512KB Flash-ROM for Saint's memory expansions
« Reply #24 on: 2017.February.11. 14:09:07 »
*** No hardware clock board or bad.

I have to re-check the connections and ATF programming.
Pin1 connected to +5V? (Motorola mode)

Offline gflorez

  • EP addict
  • *
  • Posts: 2605
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 51.0 Firefox 51.0
    • View Profile
Re: Internal RTC and 512KB Flash-ROM for Saint's memory expansions
« Reply #25 on: 2017.February.11. 15:05:09 »
I think I found the solution :)

A very clever approach. Then you will cut that higher ends of the pins, wouldn't you?

Pin1 connected to +5V? (Motorola mode)

Pin 1 of the Dallas chip not connected.

EXP2 is correctly connected,  I only draw +5 and GND from it.

But I have a doubt on the pin-out of EXP1, it can be I have swapped column A and B on that header.

In your web page , column B is near  the external connector or near Dave chip?.

------------------------

Edit: correct, B is at the outside.

« Last Edit: 2017.February.11. 15:32:39 by gflorez »

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13431
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 51.0 Firefox 51.0
    • View Profile
    • http://enterprise.iko.hu/
Re: Internal RTC and 512KB Flash-ROM for Saint's memory expansions
« Reply #26 on: 2017.February.11. 15:48:46 »
Pin 1 of the Dallas chip not connected.
This is a problem!
"MOT (Mode Select) – The MOT pin offers the flexibility to choose between two bus types. When
connected to VCC, Motorola bus timing is selected. When connected to GND or left disconnected, Intel
bus timing is selected. The pin has an internal pull-down resistance of approximately 20KΩ."

I already discovered at your MICROTEAM RTC Motorola mode needed when working with Z80.

Offline pear

  • EP lover
  • *
  • Posts: 772
  • Country: pl
  • Z80 only
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 51.0 Firefox 51.0
    • View Profile
Re: Internal RTC and 512KB Flash-ROM for Saint's memory expansions
« Reply #27 on: 2017.February.11. 16:08:46 »
A very clever approach. Then you will cut that higher ends of the pins, wouldn't you?
It's only a model. The pins will need to trim, because otherwise case will not close.

Offline gflorez

  • EP addict
  • *
  • Posts: 2605
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 51.0 Firefox 51.0
    • View Profile
Re: Internal RTC and 512KB Flash-ROM for Saint's memory expansions
« Reply #28 on: 2017.February.11. 17:06:22 »
 

If I connect /RD of the RTC to B19, the Enterprise starts to do odd things.
« Last Edit: 2017.February.11. 17:31:48 by gflorez »

Offline gflorez

  • EP addict
  • *
  • Posts: 2605
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 51.0 Firefox 51.0
    • View Profile
Re: Internal RTC and 512KB Flash-ROM for Saint's memory expansions
« Reply #29 on: 2017.February.11. 23:44:03 »
I have discovered an error on the ATF chip program, it needs PwrOn signal to work. Then I have put that signal on pin 11 and soldered that pin to GND.

Quote
  Name     RFC2;
    PartNo   00;
    Date     2015-12-20;
    Revision 01;
    Designer Engineer;
    Company  none;
    Assembly None;
    Location none;
    Device   g22v10;
    
    /* *************** INPUT PINS *********************/
    PIN 1   = !IORQ   ; /* IORQ */
    PIN 2   = !M1     ; /* M1 */
    PIN 3   = A7      ; /* A0 */
    PIN 4   = A6      ; /* A1 */
    PIN 5   = A5      ; /* A2 */
    PIN 6   = A4      ; /* A3 */
    PIN 7   = A3      ; /* A4 */
    PIN 8   = A2      ; /* A5 */
    PIN 9   = A1      ; /* A6 */
    PIN 10  = A0      ; /* A7 */
    PIN 11  = !PwrOn  ; /* power on */ /* put permanently to GND*/
    
    /* *************** OUTPUT PINS *********************/
    PIN 14  = !CS     ; /* enable buffer */
    PIN 23  = !CSRTC  ; /* enable RTC */
    PIN 22  = ASRTC   ; /* enable RTC address */
    PIN 19  = DSRTC   ; /* enable RTC data */
    
    VselRTC = IORQ & !M1 & A1 & A2 & A3 & A4 & A5 & A6 & !A7;
    VcsRTC  = VselRTC & PwrOn;
    
    /* *** CS *** */
    CS      = VcsRTC; /* ok */
    
    /* *** CSRTC *** */
    CSRTC   = PwrOn;
    
    /* *** ASRTC *** */
    ASRTC   = VselRTC & !A0;
    
    /* *** DSRTC *** */
    DSRTC   = VselRTC & A0;
    

But it still doesn't work.
« Last Edit: 2017.February.11. 23:52:06 by gflorez »