Enterprise Forever

:UK => Hardware => Topic started by: Zozosoft on 2014.February.25. 23:28:18

Title: 6Mhz and more...
Post by: Zozosoft on 2014.February.25. 23:28:18
The hw design of the Enterprise is originally ready for 6MHz model. The most important evidence about it is the option bit in the Dave (at port BFh), set the Dave sound frequency divider for the 4 or 6 Mhz system.
Very strange - why was 6Mhz machine not released?
Originally only 3 modifications needed:
-Z80B instead of Z80A
-12MHz crystal instead of 8MHz
-modify one bit in the EXOS code, for setting right frq for Dave

Unfortunately the Enterprise company made later a big mistake with the EXDOS: the WD disk controller does not have an own clock generator, it uses the system clock from the machine instead. So with 6MHz model the EXDOS cannot work...
I think this is because of cost reduction... but make some additional work when want to make a Turbo Enterprise.

See the schematic. (http://enterprise.iko.hu/schematics/EP64-1~1.jpg)
The 8MHz System Clock come from U18 Pin 12, need to cut this output line. Unfortunately it is hard to access, the best way is removing U18 and restoring it after cutting.
[attach=1]
[attach=2]
[attach=3]

Next: cut the System Clock from the Expansion Connector then connect the A23 pin to original 8MHz clock at the U18 pin12.
[attach=4]
[attach=5]
[attach=6]
[attach=7]

Then a new clock source is needed, 5V TTL compatible oscillator is the easiest solution, can be piggyback on U8, GND and VCC pins connected to the IC GND and VCC pins.
The clock output goes to the U18 pin 1 which are the input for the new System Clock.
[attach=8]
[attach=9]
[attach=10]

Replacing CPU to Z80B is optional, most of Z80A CPUs work on 6MHz. Try it and if it doesn't work then replace it. (I have never replaced it for 6MHz!)

The 7.12MHz turbo is a cheaper trick because no new clock generator is needed, using the 14M Video Clock!
All same as above, just instead of the oscillator output, connect the U37 Pin 10 (Video Clock) to U18 Pin 1 as System Clock. Many Z80A work at 7.12MHz but it is more possible that it needs to be replaced.

On some motherboards some problem can be found with the video memory on turbo speed, then short circuit R12. On higher speed (10MHz :-) ) also needs removing C7.
In 128K machines there also might be a problem with the internal 64K expansion, then short circuit R151. It will be good up to 7.12MHz CPU, but for 10MHz new super fast SRAM expansion should be bought from Saint :ds_icon_cheesygrin:

It is a good idea to add Turbo Switch because not all the games are better at faster :-)
Very ugly solution :oops: just add directly a switch to the clock lines: one input from U18 pin 12 (8MHz) another from the new clock generator or the Video Clock, and output go U18 pin 1. It is worked to me for many years in many machines :oops:
The next lesson will be: how to build electronic switch with 74LS157 IC :-)

Final words about the replacement of Z80: buy least 10MHz model (Z84C0010), but don't order it from China! Previously I wrote my experiences, the Chinese sellers sold relabeled old and slow Z80 CPUs :-(
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2014.February.26. 11:14:43
There is a schematic for 74xx157 as switch. You can see it on the last photos.
[attachimg=1]
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2014.February.26. 11:36:40
Some other modification: with EXOS 2.3+ possible detect with phantom bad segments, especially on a turbo speed. This because the data bus don't have pull-up resistor inside the machine then it is floating. Some external devices for example the MICROTEAM EXDOS card have a onboard pull-up resistors then when using the machine with this card the problem solved.
I don't fix it the phantom segment detection in my RAM test module, because it is a good sign of floating databus problem! It is can make problem with many games which are using IM2 interrupts but not using complete IM2 table. If at the IRQ not FFh coming from the data bus (because the floating) the game will be frozen...

The best way solve the problem add pull-up resistors to the mainboard, at U7 (74LS245) data bits at Pin 2 to 9, +5V at Pin 20:
[attach=1]
Title: Re: 6Mhz and more...
Post by: jltursan on 2014.February.27. 20:33:03
Thanks Zozo, right in time!. Although I'm very busy lately, I'm already planning my next spare time with my upgraded EP64 and overclocking was the first in my list :-)

I'll read it more carefully. Need to double check the 74xx157 installation and 10Mhz details, not sure at all about how to get this speed.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2014.February.27. 21:08:17
For the 10MHz you need:
- 10MHz Z80, part number Z84C0010PEG/PEC
- 20MHz 5V TTL crystal oscillator, for example this. (http://www.ebay.co.uk/itm/20-000MHz-20MHz-Crystal-Oscillator-Osc-5V-HCMOS-TTL-/200719707484?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item2ebbd3ad5c)
- fast memory expansion from Saint
- fast EPROM/Flash ROM chips for EXOS/EXDOS/other ROMs, below than 100ns recommended
- 74F157 for a switch

Cuts and wiring see previously. R12 needed to short circuited and C7 removed.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2014.February.27. 21:28:22
157 installation: you can see on the photos, and schematic.
it is piggyback on the onboard multiplexer (157 or 158), pin 8, 15 and 16 connected to the onboard IC, these are the GND and VCC pins.
Other pins are "floating" in the air.
Pullup resistor added between pin 1 and 15. Pin 5 connected to U18 pin 12 (8MHz), Pin 6 to oscillator output (Turbo Clock), Pin 7 to U18 pin 1 (System Clock).
I added a connector for the switch, because the switch glued to the case under the keyboard. The connector will be good if needed to remove motherboard from the case.
Connector pin 1 at the 157 pin 1, connector pin 2 to GND.

If you use two circuits switch then you can made a Turbo LED: replace the power LED with bi-color LED (3 pins type), one color conected to the power led pins, second color controlled with the switch.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2014.February.27. 21:38:53
First I thought Dave needed a heat sink. But now I looked at it after running a few hours at 10MHz, it is only about a hand temperature! I think about 40 celsius.
And the Z80s are cold! :-) at only room temperature. CMOS rulez :-D
Title: Re: 6Mhz and more...
Post by: jltursan on 2014.February.28. 11:20:31
Great, thanks again!. what about the onboard RAM, I have saint's expansion but also old 64kb in my ep64.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2014.February.28. 11:27:23
Onboard RAM accessing controlled by Nick and using fixed timing. Only some adjust needed this the short circuited R12 and removed C7. If it is with 150ns ICs then will work with 10MHz.
Title: Re: 6Mhz and more...
Post by: jltursan on 2014.February.28. 19:32:30
Great, need to check them tho, I'm not sure about their speed.
I suppose the 10Mhz mod is compatible with slower Mhz CPUs just replacing the 20Mhz xtal, isn't it?, I'm asking that because I'm not sure about the 10Mhz Z80s I already have, they come from China and although they work fine replacing standard ones, if they're fakes they indeed can fail running at higher speeds :-(

About the ROMs, I've just ordered 10 W27C512-45 (http://cgi.ebay.es/ws/eBayISAPI.dll?ViewItem&item=121133839515) pieces. They're cheap and I hope being 45ns, they would be enough fast! ;-)
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2014.February.28. 19:46:14
Yes, you can use any slower crystal for slower CPU speed. For a 7.12Mhz CPU not needed additional oscillator just use the Video Clock as System Clock.
Title: Re: 6Mhz and more...
Post by: jltursan on 2014.June.19. 11:09:55
Well, it's done!

[attach=1]

Notice the green led, I followed Zozo's suggestion and replaced the original led by a bicolor one, it's very handy to know when you're in turbo mode!

I'm still suffering the RAM segments bad detection; so I'll need to add the pullup resistor array...

Thanks Zozo!
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2014.June.19. 14:05:04
Quote from: jltursan
Well, it's done!
:smt038

CPU still the original or replaced? (Many Z80A can run on 7.12Mhz :-) )

This is the 032383 S/N machine? I will update notes at inventory (http://enterprise.iko.hu/inventory.htm) :-) When adding the pullup resistor can you view the motherboard ISSUE?
Title: Re: 6Mhz and more...
Post by: jltursan on 2014.June.19. 15:24:50
Yes, the machine is the 032383 S/N one.
The CPU is still the original, it doesn't get very hot :). I'm waiting for some thermal pad, then I'll add a heatsink just to be safe.
EXOS eprom was changed after severe unstabilities. Using the above W27C512 solved the problem. And finally, I also needed to replace (again!) the EXDOS controller EPROM by another W27C512, burning twice the EXOS 1.3 file. Without this new EPROM, EXDOS card behaved very strangely, the floppy was, from time to time, rattling the heads :shock:

About my EP64, where can I check the issue? (btw, can't check Nick & Dave revisions as there's a heatsink glued to them)

And given your photo, the pullup resistors are 4K7Ohm?

Some more pics:

(http://i.imgur.com/lMVtTYDl.png) (http://imgur.com/lMVtTYD)

I've piggybacked 157 over U9; but you can also see a DIP14 socket over U8, I've also installed this to be able to mount a new oscillator and try with different speeds, specially if I finally replace the CPU with a CMOS one.

(http://i.imgur.com/oDt6MMcl.png) (http://imgur.com/oDt6MMc)

Also, I managed to cut U18 trace without desoldering the chip, just a small sharp cutter is needed :)

All in all, it was an easy mod (no memory or CPU worries :smt023)

Next: Saint's super interface and who knows...maybe the floppy HD mod?. I'm also interested in coding some assembler
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2014.June.19. 15:40:22
Quote from: jltursan
About my EP64, where can I check the issue?
It is written on the motherboard bottom side at the modulator :-)
From top view: check the monitor connector, if all pins are present then it is ISSUE 6.
If some pins are missing, then check the company name at the left side of the mb. If it is ENTERPRISE then it is ISSUE 5, if FLAN then it is ISSUE 4.
Title: Re: 6Mhz and more...
Post by: jltursan on 2014.June.19. 16:24:20
Issue 5 then :smt045
Title: Re: 6Mhz and more...
Post by: jltursan on 2014.June.27. 19:22:41
I'm going to try to fix the RAM segment failures. Just to be sure, the pullup resistors are 4K7?
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2014.June.27. 20:39:21
Quote from: jltursan
 Just to be sure, the pullup resistors are 4K7?
Yes.
Title: Re: 6Mhz and more...
Post by: jltursan on 2014.September.11. 11:09:27
Btw, just a quick update, I'd finally used a 16Mhz oscilator, looks like the 20Mhz was too much for my enterprise. Running at 10Mhz the computer was fine; but some floppies stutter a lot and even a few of them doesn't load at all (I suposse they need to be formatted and written at this speed). Also a lot of games shown sync artifacts and, of course, the ones working fine run too fast :-D
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2014.September.11. 11:28:02
It is need more wires and switches: build a multi-trubo system.
My machine can run on 4, 6, 7.12, 10 MHz speeds, can be selectable with switchs.

Which EXDOS card are you using?

For a higher CPU speed I recommend replace the old 74LS ICs to 74HCT, EPROM to fast CMOS one or Flash ROM, and if the WD are old 1770 then replace with 1772.
WD1772 PH 02-02 have a "enhanced digital data separation" then it is more reliable about disk reading.
And with 1772 chip can be used fast floppy step rates, then the drive will work faster and quiet.
Title: Re: 6Mhz and more...
Post by: jltursan on 2014.September.11. 11:59:47
Indeed, I followed your suggestions and mine can run at normal/turbo speed selectables with a switch and with a multicolor led :). Do you have a pair of oscillators (12Mhz & 20Mhz)? :shock:

My EXDOS card is the original one:

(http://i.imgur.com/CJmS9Yg.jpg) (http://imgur.com/CJmS9Yg)

The EPROM is already replaced; but other ICs are unchanged. The 1772 is pin compatible with the 1770?, maybe I can try with that...
Also, what about the 3 x 7438, how they can be replaced by faster ICs?
Title: Re: 6Mhz and more...
Post by: IstvanV on 2014.September.11. 12:07:07
Quote from: jltursan
Also a lot of games shown sync artifacts and, of course, the ones working fine run too fast :-D
Try my Freescape ports like Castle Master, Total Eclipse and others. These games can always make use of the extra CPU speed. :) But the sound will only be correct at 4 and 6 MHz, above that the pitch will be too high.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2014.September.11. 12:08:22
Quote from: jltursan
The 1772 is pin compatible with the 1770?
Yes.
Quote
Also, what about the 3 x 7438, how they can be replaced by faster ICs?
These not important to replace, used as line driver on floppy cable.
Data bus driver (U3) and address decoding ICS (U5,6,7,8,9) are the important.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2014.September.11. 12:10:55
Quote from: IstvanV
These games can always make use of the extra CPU speed.
Also try the Race Ace: the computer cars are synchronized with the video interrupt, only your car got a super speed! :ds_icon_cheesygrin:
Title: Re: 6Mhz and more...
Post by: jltursan on 2014.September.11. 12:29:57
Thanks istvanV & Zozosoft for the suggestions!. That freescape ports looks like a great candidate to test the speed :twisted:
I also want to try the VIC-20 emulator, it would be great to speed up the emulation close to the real VIC speed.

Quote
These not important to replace, used as line driver on floppy cable.
Data bus driver (U3) and address decoding ICS (U5,6,7,8,9) are the important.

Mmm; so I'll try to socket the controller and U5-9 and replace them with their faster HCT equivalents. I need to be careful with that, the EXDOS controller is by now, my most valuable piece of Enterprise software :)
Btw, in a spanish forum, we're trying to clone the EXDOS controller: Controladora de disco para Enterprise (http://www.retrowiki.es/fororw/viewtopic.php?f=679&t=31209)
It's only in spanish, sorry. Also, the forum engine is a bit retrictive and links are not shown to unregistered users :(; but I'll be happy to give you all details about the development.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2015.April.08. 23:33:30
Two 4 speed (4/6/7.12/10 MHz) machines for Prodatron:
[attach=1][attach=2]
[attach=3][attach=4]
[attach=5][attach=6]
Title: Re: 6Mhz and more...
Post by: Ep128 on 2015.April.10. 00:13:27
Two 4 speed (4/6/7.12/10 MHz) machines for Prodatron:
(Attachment Link) (Attachment Link)
(Attachment Link) (Attachment Link)
(Attachment Link) (Attachment Link)

... and where the LED with 4 colours is? ;-)
Title: Re: 6Mhz and more...
Post by: lgb on 2015.April.10. 11:44:37
How CPU clock is switched? Can be controlled from software, or some kind of actual switch?
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2015.April.10. 13:14:09
Just two simple switchs, which make a 2 bits selection on the 74F153.
Title: Re: 6Mhz and more...
Post by: lgb on 2015.April.10. 14:14:40
Ok then, another white spot for me: It seems designers of EP already thought about the "turbo", namely 6Mhz, as Dave can be configured for that to have timings intact. However I always felt it's not a good solution as softwares can have the bad habit to write  their thought-to-be-correct value to the corresponding Dave port. As far as I know, for other solution (like 7.12MHz, derived from ~14Mhz pixel clock of Nick, I suppose) do not have this problem and Dave can be left in its "usual" state (as it would be for 4Mhz machine) but still having the right timings for sound, etc. Is it true? Because if it's 7.12Mhz is much more useful and "compatible" (well, of course there can be other problems like software can require 4MHz CPU clock to work correctly, etc) than the 6MHz planned mode by the designers.
Title: Re: 6Mhz and more...
Post by: IstvanV on 2015.April.10. 14:56:37
As far as I know, for other solution (like 7.12MHz, derived from ~14Mhz pixel clock of Nick, I suppose) do not have this problem and Dave can be left in its "usual" state (as it would be for 4Mhz machine) but still having the right timings for sound, etc. Is it true?

No, it also overclocks both the DAVE chip and the Z80, which always runs at half the clock frequency of DAVE. In this case, even with the 12 MHz bit set, the pitch of the sound generators is too high by about 3 semitones, and the 1 Hz/50 Hz (not video)/1 kHz interrupts are generated at higher frequency as well.
Title: Re: 6Mhz and more...
Post by: lgb on 2015.April.10. 14:58:50
Z80, which always runs at half the clock frequency of DAVE

Ah, thanks.
Title: Re: 6Mhz and more...
Post by: gflorez on 2016.December.13. 18:07:20
One of the two Z80As removed with zero victims....
Title: Re: 6Mhz and more...
Post by: gflorez on 2016.December.14. 11:56:22
What a mystery!

On the Enterprise mainboard, a  track from Z80 pin3(A13) to pin B10 on the Cart Bay is provided, but cut on two places.

Then, a black lead has been welded directly at final production. Why?



(There is an error on the cartridge bay pinout at Zozo's information web page (http://enterprise.iko.hu/pinouts.htm), B10 should be A13, not A12.)
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2016.December.14. 12:24:34
track from Z80 pin3(A13) to pin B10
To B7. (B1 are the upper left)

Why?
Good question, I also want to know the answer!

On ISSUE3 boards are hand cutted these, on later boards cut done on the PCB producing films.

Quote
(There is an error on the cartridge bay pinout
:oops: :oops: :oops: Two A12... Now fixed.
Title: Re: 6Mhz and more...
Post by: gflorez on 2016.December.14. 17:10:20
Good question, I also want to know the answer!

Maybe some sort of unknown interference forced them to modify the plans. Like the glitches found by Bruce Tanner  on the signals, while testing his modern oscilloscope.
Title: Re: 6Mhz and more...
Post by: gflorez on 2016.December.20. 17:44:21
I have successfully modified one of my EPs following Zozo's hints.

This is the tasks list:

-Installed a "programmable in situ" 128K AMD FlashRom with a switch to select between the two 64K banks. The last version of EXOS has been programmed on the two banks.

-Un-welded the original Z80A clone and installed a Z84C0020 on a socket.

-Followed the overclocking procedure in this same thread, that implies:
     -Separated the processor clock signal from the system clock frequency.
     -R12 short-circuited
     -C7 opened
     -Added a pull-up resistor array on the Z80 data bus.
     -Installed a 20Mhz clock crystal to drive the processor.
     -Installed a 74LS157 to select between 8Mhz and 20Mhz(halved frequency on the Z80) while the computer is running.
     -Put a switch to make the selection.
     -One of the commutations of the switch has been also used to select the colour of the main power Led.  

This EP had already a 1MB Saint Ram expansion installed, and the task remaining to me is to remove the two 7805 regulators and install instead two 2A Traco-power that I am still waiting.

Once closed I hope not have to re-open this computer ever again...
Title: Re: 6Mhz and more...
Post by: geco on 2016.December.20. 19:00:46
Congrat :) I could not do it myself.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2016.December.20. 19:20:30
Great work!
    -Installed a 74LS157 to select between 8Mhz and 20Mhz(halved frequency on the Z80) while the computer is running.
It is working for you with 74LS? For me the LS only enought for 7.12 MHz (14 MHz system clock), for the 10MHz (20MHz system) needed to use 74F. As I recomended here. (https://enterpriseforever.com/hardware/6mhz-and-more/msg37513/#msg37513)
Title: Re: 6Mhz and more...
Post by: ergoGnomik on 2016.December.20. 19:33:46
/OFF

Hi gflorez,

Excuse me, for looking a bit like I'm talking down to you. I really don't want to anger you or hurt your feelings in any way, but could you please give a thought to using solder (https://en.oxforddictionaries.com/definition/solder) instead of weld (https://en.oxforddictionaries.com/definition/weld)? Somehow it really disturbs me. Unless it is a common joke I never knew.

/ON
Title: Re: 6Mhz and more...
Post by: gflorez on 2016.December.20. 19:52:10
/OFF

Hi gflorez,

Excuse me, for looking a bit like I'm talking down to you. I really don't want to anger you or hurt your feelings in any way, but could you please give a thought to using solder (https://en.oxforddictionaries.com/definition/solder) instead of weld (https://en.oxforddictionaries.com/definition/weld)? Somehow it really disturbs me. Unless it is a common joke I never knew.

/ON


Sorry, as a not native English writer, I thought that the two words mean the same....


Edit: By the way, in Spanish the two English meanings are joined on the same word, "soldar, soldadura", but when there are several possible English words to choose I tend to use the most different word (from Spanish) to not fall in the error of creating a new "Spanglish" word....
Title: Re: 6Mhz and more...
Post by: gflorez on 2016.December.20. 19:59:13
Great work!It is working for you with 74LS? For me the LS only enought for 7.12 MHz (14 MHz system clock), for the 10MHz (20MHz system) needed to use 74F. As I recomended here. (https://enterpriseforever.com/hardware/6mhz-and-more/msg37513/#msg37513)


I am only connecting the card, so it doesn't pass the flashing letters, (not having a keyboard) but it returns and go from the slow letters to the fast letters without problem.

I will buy tomorrow the 74F chips, thanks.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2016.December.20. 20:39:24
I am only connecting the card, so it doesn't pass the flashing letters, (not having a keyboard) but it returns and go from the slow letters to the fast letters without problem.

I will buy tomorrow the 74F chips, thanks.

If it is working, then not needed replace it. When I tried it, system totaly don't run on the 10MHz with the LS chip. But probably because I used 20-30 years old 74LS from spares, and you used new one.

About the words: in Hungarian are also different: forraszt (solder), hegeszt (weld).
Title: Re: 6Mhz and more...
Post by: pear on 2016.December.20. 20:44:14
About the words: in Hungarian are also different: forraszt (solder), hegeszt (weld).
The Polish also: lutowanie (soldering) and spawanie (welding).
Title: Re: 6Mhz and more...
Post by: gflorez on 2016.December.20. 20:52:55
It's a miracle that we can understand the others....
Title: Re: 6Mhz and more...
Post by: Ep128 on 2016.December.21. 00:42:41
The Polish also: lutowanie (soldering) and spawanie (welding).

:smt041
Title: Re: 6Mhz and more...
Post by: gflorez on 2016.December.23. 11:28:16
I have made some tests.

Some times the Fast Memory Check returns errors on some segments, but I have installed the array of pull-up resistors on the data bus.

On 10Mhz frequency the mouse pointer only moves vertical.


May I change the 74LS157 to a 74F157?
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.January.26. 13:48:50
I have changed the 74LS157 for a 74F157, but still the EnterMice doesn't work on 10Mz mode. I will try modifying the delays on the driver.

Also, I will overclock my old EP just to make comparisons.
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.January.28. 09:26:53
Now, one more 10Mz Enterprise exists....

Thanks Zozo for the detailled information.
Title: Re: 6Mhz and more...
Post by: geco on 2017.January.28. 12:58:16
:smt041 :smt041 :smt041
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.January.30. 15:47:42
I have increased the delays of the reading routine of the Mouse driver. Now EnterMice works with EGI and SymbOS while on 10Mhz mode.

Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.January.30. 16:12:04
I have increased the delays of the reading routine of the Mouse driver.
Where is the latest driver?
Quote
SymbOS while on 10Mhz mode.
? SymbOS don't use MOUSE.XR, it is have built in driver. And it is already worked for me in 10MHz :oops:
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.January.30. 16:47:37
I know, only was making a list of the mouse programs that work on 10Mhz.

There isn´t still a new Mouse driver version, I was only tweaking the delays on my working disassembly.

The EnterMice versions(:HELP MOUSE) give erroneous numbers on 10Mhz. I will try to fix it.

You can use it, but it is not definitive. It is version 1.10D, beta.
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.July.10. 12:29:34
I've been thinking on a sort of variable processor clock source, like other computers have. Then, with a dial and sometimes a display, the computer can be totally freezed or overclocked easyly.

Something like this will suit perfectly the Enterprise turbo hack, because actually only the source frequency is changed by the selector.
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.July.11. 00:31:04
I mean something like this module (http://www.ebay.com/itm/1KHz-to-33MHz-Adjustable-Oscillator-Module-LTC1799-/400292172818), but with the trimming potentiometer externalized to adjust the Processor clock on demand.

(http://www.ebay.com/itm/1KHz-to-33MHz-Adjustable-Oscillator-Module-LTC1799-/400292172818)

(http://i.ebayimg.com/images/g/XQUAAOxycmBSuoJW/s-l1600.jpg)

The best would be a similar module but with a display to exactly select the frequency.

Over-clock capable, but also under-clock.....
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.July.11. 09:24:47
My dream is a programable oscillator. It is also will be good for Turbo EXDOS where needed 8,9.6,10,13.33333,16MHz.

I looked lot of, but not found any digitaly programable thing :-(
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.July.11. 11:27:29
Yes, something like this for the Apple IIe (http://www.callapple.org/uncategorized/fast-chip-iie-first-look/).

[attachimg=1]

But we don't need more than a configurable clock.(or two....)
Title: Re: 6Mhz and more...
Post by: BruceTanner on 2017.July.11. 12:11:50
A wild idea :shock:: 16550 serial chips have a programmable baud rate generator with an output signal (called /BAUDOUT if I remember correctly) - I wonder if a modern version of the 16550 (with higher max clock input than the original) could be used? It would have to default to something usable on power-up of course!
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.July.11. 14:15:24
Thanks Bruce. It is a very good idea. I have also asked pear for some aid, he is thinking about an easy  micro-controler solution.
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.July.11. 23:38:08
I have also found this chip (http://datasheets.maximintegrated.com/en/ds/DS1077.pdf):

They say on the Datasheet:  The DS1077 is a dual-output,   programmable,   fixed-frequency   oscillator   requiring   no   external components for operation. 

But I think that Pear is thinking on a powerful micro-controler doing itself the oscillator task.
Title: Re: 6Mhz and more...
Post by: pear on 2017.July.12. 07:25:03
Nice chip but as new is available only version DS1077LZ-40+ (4,87-66,6 kHz MHz).
In addition, the microcontroller will anyway.
The DS1077 costs as much as the entire microcontroller.
I will try to do all programmatically.
The PIC18F14K22 has an internal clock of 64MHz (the processor cycle is 4 tacts). Maybe it is enough...
Always can look for another microcontroller.
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.July.12. 09:03:49
Sorry, the top frequency of the DS1077LZ is in Mhz, not Khz, but I understand you want to do it simpler.

And comunicating the DS1077LZ with the microcontroller is a lot more work.
Title: Re: 6Mhz and more...
Post by: pear on 2017.July.12. 09:14:50
You're right. It's MHz, an error is on TME site.
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.July.12. 10:04:58
Now let's see what specs are needed:

For the Z80 we need the frequency to be double than nominal, i. e. for a 4Mhz stock processor we need 8Mhz from the oscillator, for a 6Mhz we need 12Mhz, and so on. Actually the top frequency of a turbo machine is 10Mhz, but may be Zozo could find some way to increase it, so I think we can't stop on the 20Mhz needed. (I already have 20Mhz Z80's installed on my two Enterprises, waiting for a hack...) .

Then, for the Exdos card is easier, because we don't need double frequencies, only the given 8,9.6,10,13.33333,16MHz

Also it could be funny to be capable of under-clock the processor....
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.July.12. 10:21:41
Also it could be funny to be capable of under-clock the processor....
Once I tried it. Will be good for some games, for example Tombs of doom :ds_icon_cheesygrin:
Title: Re: 6Mhz and more...
Post by: pear on 2017.July.12. 10:31:37
Well. I read some documentations.
The DS1077 has only a divider (range 2..1025). With a basic frequency of 40MHz you will get only 3 values of the set you are interested in (8,10 and 13.33 MHz).
My idea already I verified because the divisor only is not enough to get all the values.
I stayed with PIC (I already ordered). With a set frequency of 64MHz, I am able to generate a signal with a fundamental frequency of 16 MHz (and divided by subsequent integers). This gives us only two values from the set (16 and 8 MHz).
Therefore, you will need an additional multiplier.
I found a programmable PLL circuit ICS501 that can multiply the frequency.
This combination gives you all the value we have (and many others).

Base frequency Fb=16 MHz

16,00 MHz = Fb * 1/1
13,33 MHz = Fb * 5/6
10,00 Mhz = Fb * 5/8
 9,60 MHz = Fb * 6/10
 8,00 MHz = Fb *1/2
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.July.12. 11:02:14
Can it do 20Mhz=5/4 or greater? (let's say 40Mhz=5/2)
Title: Re: 6Mhz and more...
Post by: pear on 2017.July.12. 11:12:46
Available multipliers are 4, 5, 6 and 8. Dividers from 1 to 65536.
Max 16 MHz * 8 = 128 MHz
Min 16 MHz / 65536 = 244 Hz ;)
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.July.12. 13:57:24
Very versatile, it could also be used in other projects.

Looping the loop with some ideas: The divider can be done with a rotating encoder, and the multipliers with four illuminated buttons. And a five or six characters segment screen to see the resulting frequency.... And more buttons with already defined frequencies or presets..... And... only one output frequency may be insufficient.... etc.

But wait, were not we talking about doing something simple....?
Title: Re: 6Mhz and more...
Post by: pear on 2017.July.12. 14:25:55
Simple is always just an idea.
When it comes to detail, it starts to complicate.
The layout for now (in my head) consists of four main components:
- microcontroller,
- PLL,
- LED display (3 digits),
- encoder (with button).
Is that a lot ?
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.July.12. 14:59:57
One button is perfect, as there are only four multipliers, they can be selected sequentially. Or also be used for presets if, for example the button is pressed for more than two seconds, the saved frequencies  could be selected by the encoder.

A lot of things can be done later when programming.


One important thing, the last frequency has to be remembered on start-up to not force the user to select the frequency each time the computer is turned on.
Title: Re: 6Mhz and more...
Post by: pear on 2017.July.12. 17:45:57
Easy to do, the microcontroller has an EEPROM.
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.July.12. 18:42:14
Yes, but to not stress the memory so early, before saving the last value, first test if it is the same that was stored on the EEPROM.
Title: Re: 6Mhz and more...
Post by: pear on 2017.July.13. 06:39:51
I can store last value after power off :D Magic :cool:
Title: Re: 6Mhz and more...
Post by: pear on 2017.July.13. 09:39:24
Before I start.
Will there be need a second clock output for other chips/circuits (NICK, DAVE, other) ?
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.July.13. 10:19:45
Yes, two outputs makes the device much more versatile.

And surely Zozo wants to tweak the Z80 and the EXDOS at the same time....
Title: Re: 6Mhz and more...
Post by: pear on 2017.July.13. 10:34:34
What will be the dependency between the main clock and the extra one ?
Or they have to be completely independent ?
I would prefer the first option.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.July.13. 11:27:06
The original setup:
One 8MHz System Clock on the motherboard. This going to the Nick chip which is generate the 4MHz CPU clock (which is delayed when video memory accessed). This 8MHz also going out on the expansion connector and used by the EXDOS as clock for WD chip.

At the turbo Enterprise one or more new System Clock generators added: 12MHz , 14.xxxMHz (using Video Clock), 20Mhz (4/6/7.12/10MHz CPU). These are switchable.
The original System Clock line cutted from the expansion connector, and the original 8MHz wired out for keep the disk controller working.

On the Turbo EXDOS using the original 8MHz from the machine, and 3 new clock added: 10MHz/13.333MHz/16MHz or 10MHz/9.6MHz/16MHz. Values depend from 1.2MB drive used in 300 or 360 rpm mode.
10MHz -> "Turbo DD", using 13 sectors 1040K on 80 tracks disk (1170K with 90 tracks). This is my first Turbo EXDOS hack, later added the HD hack:
13.333MHz -> using HD disks in 300 rpm mode ("Enterprise jumpered") 1.2MB drive
16MHz -> using HD disks in 1.44MB drive (22 sectors possible = 1760K on 80 tracks)

Then discovered the Turbo EXDOS can solve the non "Enterprise jumperable" 1.2MB drives problem, which are running on 360 rpm. Then the 13.333 crystal replaced with 9.6MHz -> can use normal DD disks. For the HD mode the 16MHz used.
(At this situation these drive can not handle the "Turbo DD" disks, for these needed add another extra clock: 12MHz...)


Only problem with the HD disks: the 4MHz Z80 not enought fast for the data transfer, the machine also need to be run on Turbo.
Soo, if the Turbo EXDOS for HD also need a Turbo Enterprise, then will be good ide if the internal Turbo card can supply both clocks! If both software controlled then the EXDOS can switch Turbo on CPU when needed (using HD disks).

Summary, the "Dream Turbo Card" have a two independent clock output, one for the machine System Clock, and one for the EXDOS. Both software controllable on I/O port, and current setting can be readed.
For the System clock need external push button input, for speed select (during game you can not enter command for select the speed). For example the System Clock speeds are 4/8/12/16/20MHz (2/4/6/8/10MHz Z80)
Speeds for EXDOS 8/9.6/10/12/13.333/16MHz

If this "Dream Turbo Card" can be done, then not need modify EXDOS card, just need to use proper WD chips for the HD mode (WD1772 PH 02-02).
Title: Re: 6Mhz and more...
Post by: pear on 2017.July.13. 11:58:56
Thanks Zozo :)
Actually this is not a very complicated task.
For starters I will try with this microcontroller that has just arrived today :)
Later I will have to look for a "bit" larger, with more available ports.
But it can be done.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.July.13. 12:16:30
One more question: the "frozen free" CPU clock switching.
The SMD Team Turbo Card (http://gafz.enterpriseforever.com/Galery/Bovitmenyek/Picture/SDM_Turbo~1.jpg) do it. But the IC types erased for the copy protection...

My low cost turbo don't "frozen free" :-( With modern CMOS CPU, and with 74F153 (as clock switch) and good quality switches are almost working the frozen free switching, but not always.

Probably the CPU don't like spikes on the clock signal.

Do you have a idea for it? Or probably the software controlled clock generator made the clock switching without spikes?

(My idea for discover the SMD turbo: remove the ICs, and test in IC tester, until find the right types... but if only you not have any better idea!)

WD1772 don't have a problem with clock switching.

And the most important extra feature: the Turbo LED :ds_icon_cheesygrin:
My idea using RGB LED (can be placed to the power led place), and using colors from the Enterprise logo: 2MHz blue, 4MHz green,6MHz yellow,8MHz orange,10MHz red.
Title: Re: 6Mhz and more...
Post by: pear on 2017.July.13. 12:51:55
The main clock will come from a programmable PWM generator (the recommended fill for clock is 45/55).
I do not know how to behave a PLL at switching the multipliers.

One LED for two clocks ?
The small LED display will be better.
Title: Re: 6Mhz and more...
Post by: pear on 2017.August.14. 16:00:58
Test board in development.
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.August.14. 17:25:22
Great!

What do that double holes around the Pic?
Title: Re: 6Mhz and more...
Post by: pear on 2017.August.14. 17:57:24
In case, if I want to change the destination of the port in the microcontroller, just enough cut the path between the pads, and connect other signal.
For example, as in the picture.

PS. I have already ordered the test board.
Title: Re: 6Mhz and more...
Post by: Tutus on 2017.August.14. 21:33:55
:smt038 :smt038 :smt038
Title: Re: 6Mhz and more...
Post by: geco on 2017.August.15. 08:41:58
looks cool :smt041
Title: Re: 6Mhz and more...
Post by: pear on 2017.August.22. 16:22:28
I have not started the tests yet, but have already changed the concept.
If the generator couldn't cause the processor frozen, then the frequency switching must be synchronous.
In other words, I have to control the phase of the current clock and another during switching.
The use of PLL, especially only one, completely prevents it.
We need 4 basic frequencies, from which we can get all the combinations needed (exclusively using divisors)  40, 9.6 (or 19.2), 16 and 12 MHz.
The first will come from a 40MHz integrated generator.
The 16MHz clocking will be available from the PIC microcontroller.
Other frequencies from integrated generators or single-transistor quartz circuits (cause I have not found an integrated 19.2 or 9.6 MHz generator).
Title: Re: 6Mhz and more...
Post by: pear on 2017.August.22. 17:05:53
After optimization I need only 2 clocks: 40 and 48 MHz. The final cost goes down :)
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.August.22. 18:35:43
Optimization ----->38 minutes, a new record.....

Sorry five minutes more, but still a record....
Title: Re: 6Mhz and more...
Post by: pear on 2017.August.22. 19:04:26
It was a sudden thought. A spark ;)
Title: Re: 6Mhz and more...
Post by: pear on 2017.September.06. 16:39:44
All tools are now complete.
Now "just" the time and I can start.
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.September.06. 18:49:34
Good looking analyzer. I am tempted, but I don't know how to use it....
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.September.06. 20:25:41
Nice square waves!
Title: Re: 6Mhz and more...
Post by: pear on 2017.September.06. 20:34:08
Because it is an analyzer, not an oscilloscope :)
Exactly maps the times of the edge, but the shape of the signal is predetermined.
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.10. 17:34:43
Intensive course of the VHDL and the first approach to the turbo generator project.
On board two generators 40 and 48 MHz with CPLD Xillinx XC9572.
Two channel output. Synchronized reset, separated output enablers.
At now not synchronized clocks. Output frequency is switched by 3-bit vectors.
Frequencies:
System channel: 20/16/12/8/4 MHz. CPU clock has system clock with divide by 2.
EXDOS channel: 16/13,33/12/10/9,6/8 MHz.
Code: VHDL
  1. library IEEE;
  2. use IEEE.STD_LOGIC_1164.ALL;
  3. use IEEE.STD_LOGIC_ARITH.ALL;
  4. use IEEE.STD_LOGIC_UNSIGNED.ALL;
  5.  
  6. entity turbo is
  7.   port (rst: in  STD_LOGIC;
  8.         enSYS: in std_logic;
  9.         enXDS: in std_logic;
  10.         clk40: in  STD_LOGIC;
  11.         clk48: in  STD_LOGIC;
  12.         selSYS: in  STD_LOGIC_VECTOR (2 downto 0);
  13.         selXDS: in  STD_LOGIC_VECTOR (2 downto 0);
  14.         clkSYS: out  STD_LOGIC;
  15.         clkCPU: out  STD_LOGIC;
  16.         clkXDS: out  STD_LOGIC);
  17. end turbo;
  18.  
  19. architecture Behavioral of turbo is
  20. component div2
  21.   port (clkin : in  STD_LOGIC;
  22.         rst : in  STD_LOGIC;
  23.         clkout : out  STD_LOGIC);
  24. end component;
  25.  
  26. component mod3
  27.   port (clkin: in std_logic;
  28.                           rst: in std_logic;
  29.         clkout: out std_logic);
  30. end component;
  31.  
  32. component mod5
  33.   port (clkin: in std_logic;
  34.                           rst: in std_logic;
  35.         clkout: out std_logic);
  36. end component;
  37.  
  38. component mux8
  39.   port (en: in STD_LOGIC;
  40.         sel: in STD_LOGIC_VECTOR (2 downto 0);
  41.         D0,D1,D2,D3,D4,D5,D6,D7: in STD_LOGIC;
  42.         Q : out STD_LOGIC);
  43. end component;
  44.  
  45. signal clk24: std_logic;
  46. signal clk20: std_logic;
  47. signal clk16: std_logic;
  48. signal clk13: std_logic;
  49. signal clk12: std_logic;
  50. signal clk10: std_logic;
  51. signal clk9: std_logic;
  52. signal clk8: std_logic;
  53. signal clk4: std_logic;
  54. signal clkS: std_logic;
  55.  
  56. begin
  57.   C24: div2 port map (clk48,rst,clk24);
  58.   C20: div2 port map (clk40,rst,clk20);
  59.   C16: mod3 port map (clk48,rst,clk16);
  60.   C13: mod3 port map (clk40,rst,clk13);
  61.   C12: div2 port map (clk24,rst,clk12);
  62.   C10: div2 port map (clk20,rst,clk10);
  63.   C9: mod5 port map (clk48,rst,clk9);
  64.   C8: div2 port map (clk16,rst,clk8);
  65.   C4: div2 port map (clk8,rst,clk4);
  66.   MST: mux8 port map (enSYS,selSYS,clk8,clk12,clk16,clk20,'0','0','0',clk4,clkS);
  67.   MSYS: clkSYS <= clkS;
  68.   MCPU: div2 port map (clkS,rst,clkCPU);
  69.   MXDS: mux8 port map (enXDS,selXDS,clk8,clk9,clk10,clk12,clk13,clk16,'0','0',clkXDS);
  70. end Behavioral;
  71.  
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.December.10. 18:32:27
It looks good... Needs very few  code to work.

Next you can apply the clocks to the real hardware to see the effect. At first, try to tweak the stock Z80A CPU, Zozo says that some of them can be put up to 7Mhz without problems.
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.10. 18:41:18
For now, I used 28 out of 72 macrocells. The synchronization of switching will take a few more.
I hope that there will be enough to the address decoder for RTC and the internal RAM extension.
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.December.10. 20:25:09
Aha! you mean to follow the original plan of adding internal Ram, Rom, RTC and turbo, all at once on a little expansion card...
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.11. 06:22:59
Yes :) clocks, RAM and RTC.
I still think about FlashROM. It may be crowded.
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.11. 09:55:50
Is there any programm for EP which use a NV RAM inside a RTC chip ?
I could use it for store of Turbo Card configuration.
Then be could control the clocks programmatically straight from the EP.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.December.11. 12:01:40
Is there any programm for EP which use a NV RAM inside a RTC chip ?
Some bytes used for test presence of RTC chip. (write and read back)

Quote
I could use it for store of Turbo Card configuration.
Then be could control the clocks programmatically straight from the EP.
Good idea!
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.11. 12:06:57
Which of them ?
At the start or at the end of those 112 bytes ?
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.December.12. 21:37:43
Which of them ?
0Fh
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.13. 06:22:05
Thanks :)

Yesterday I was looking a bit and I was expecting that rather the beginning is checked.
RTC chips have different memory capacities. The last address can be 3Fh or 7Fh.

I also spent a lot of time writing the mod 3 divider in VHDL.
This is not as simple task as it seems.
Especially if the output clock is to be synchronized with the input and the duty cycle should be 50%.
When two conditions are met, the third one is lost.
I have to learn a lot.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.December.13. 11:33:54
Yesterday I was looking a bit and I was expecting that rather the beginning is checked.
RTC chips have different memory capacities. The last address can be 3Fh or 7Fh.
Yes, I've written about it there. (https://enterpriseforever.com/hardware/real-time-clock-with-a-msm6242b/msg42550/#msg42550)

Just an idea: put the turbo registers to FFh, FEh, etc...
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.14. 08:21:32
Small steps forward :)

The checklist:
Clock segment
* divider mod 2 done
* divider mod 3 done
* divider mod 4 done
* divider mod 5 done
* divider mod 12 done
* clock mux 8/1 done
* clock selector with phase synchronizer
* control circuit
* display
* management firmware
* address decoder

RTC segment
* battery backup (clock settings & ROM pages config)
* double buffer for local access
* address decoder

ROM segment
* address decoder with configurable memory pages

RAM segment
* address decoder
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.17. 14:58:23
The first draft with maximum possible dimensions (155x76 mm or 6"x3").
The RTC optional will be DS12885 in SMD case or DS12887 with built-in battery.
The CPLD will probably have to be in an SMD enclosure (I need to a lot of pins).

I'm thinking about choosing the display: 3-digit LED 7-segment, or LCD 2x16 characters. In both cases, you need to cut a hole on the display.
The encoder knob will also be on top the housing.

The big square hole on the center of PCB is for new, bigger radiator for NICK.
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.December.17. 22:03:06
These are very good ideas, the Nick chip square hole, and  the two RTC options on the same space.

What I don't understand is what do you mean with "a hole on the display". Where do you want to put the display and knobs?

155x76mm is an amazingly big area. You could even add all the EXDOS controller with the Gotek inside...
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.18. 06:25:31
Thank you for your comment. This is the design stage when the assumptions can still be improved.

The hole is a hole :)
Somewhere you will need to place a display with information about the current status of all functions:
- system clock frequency,
- EXDOS clock frequency,
- configuration of ROM banks.
You can also display the date and time.
That is why I am inclined towards a small LCD or OLED display with 2x16 characters (about 20x50 mm).
It would be above the card.

The encoder knob must also be accessible to the outside.
EnterMice occupies the back. Edge connector on the right.
The top of the housing is left.

EXDOS controller and Gotek maybe it would be fit, but there is also a problem with space for external access to the USB connector and another display (maybe the display could be shared ?).
Besides, if you put everything at once on one board, the costs will get very high.
I will stay with the external EXDOS controller.
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.December.18. 09:26:59
Nah, it was only a joke... imagine the internal entanglement with all the leads to the soldering spots.

-

About the hole, I think better without holes..., it would be better to pass a flat cable through some slit and stick a slim box with the display and encoder on top of the flat part of the EP top casing. I don´t like permanent modifications.

But however on this, the user has to decide.

-

I also like a full display. Imagine the clock and date on one line, still remains an entire line to put the two frequencies  and bank. ZozoTools have a choice to disable the top line clock, so it can be an enjoyable option.
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.December.18. 09:45:06
About Rom banking, do you mean to take, for example, a 64kb bank from the FlashRom and make it visible on some zone of the 4Mb space? Or simply the position of the whole 512KB?

There is a scarcely used zone of 64Kb over the cartridge memory(08-0F) that is ideal for the first option.
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.18. 10:54:37
The display has a tape connection, so it can be led out through the slot in the housing.
You'll need to make a housing for the display and encoder.
A good idea if someone wants to keep the computer case in original state (almost ;) ).

Bank mapping will be according to the list (https://enterpriseforever.com/hardware/enterprise-all-in-one-interface-1176/msg46189/#msg46189) I once made.
ROM banks will be available by default at the standard ROM extensions segments (n0h-n3h where n is in range 0h..Fh).
But if there will be some conflict with the other device, it will be possible to disable such a bank or transfer it to another segment (assigned to a permanent, safe area, i.e. in which Zozo did not find any used segment ;) ).

I was also thinking about throwing the system EXOS ROM into Flash.
Instead of exchanging and wiring the chip on the motherboard.
A good idea ?
Title: Re: 6Mhz and more...
Post by: geco on 2017.December.18. 13:05:30
I was also thinking about throwing the system EXOS ROM into Flash.
Instead of exchanging and wiring the chip on the motherboard.
A good idea ?
I think it is a very good idea if it is possible, in this case EXOS ROM can be changed easily.
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.December.18. 13:21:07
I have both EP installed with 128Kb flash chips, paged every 64kb bank with a switch. Zozo advised me to do it long time ago.

[attach=1]

This is an old picture. The cheap Winwond FlashRom produced some errors with the stock Z80. Zozo discovered that AMD was the best option for the hack.
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.18. 13:29:22
I intend to use SST39SF040 (http://ww1.microchip.com/downloads/en/DeviceDoc/20005022C.pdf)-70ns.
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.December.18. 14:30:00
AMD and SST, they both still produce good legacy 5v chips.

The only problem is, Zozo planned to write an app to upgrade the 64kb bank selected. I don't know if AMD, SST or Winbond flash chips are written with the same protocol. The SD cartridge uses an AMD 512Kb FlasRom, much like the one I added to one of my Saint's 1Mb internal expansions, but smd. So the code for AMD is already done, he uses it when the cartridge firmware is upgraded.
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.20. 10:14:27
About overclocking.
Because a square hole will allow access to NICK's, I invented to add a temperature measurement.
You can also set the overheat security.
If the set temperature is exceeded, the frequency would return to the default 8 MHz (or less until it cools down).
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.December.20. 23:31:45
About overclocking.
Because a square hole will allow access to NICK's, I invented to add a temperature measurement.
You can also set the overheat security.
If the set temperature is exceeded, the frequency would return to the default 8 MHz (or less until it cools down).
Interesting idea, but I think it is not important. Nick still running on own independent ~14Mhz clock.
The bugfixed 08-47 Nick chips works good even if no heatshink (in some machines factory not installed).
The heatshink is a last minute bug fix idea when the 08-04 Nick chips are still not perfect, and the machine need to be released after one year delay...
(I checked: no difference at the operating temperature at the two Nick versions.)
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.21. 06:03:55
Temperature sensor will be optional. Type of the display too (OLED or LCD, difference with backlight).
My NICK has blurred marks. The glue from the heat sink has washed them away.

By the way. Is it possible a faster CPU speed than 10 MHz ?
I still have 24 MHz available, which I can give to NICK (12 MHz for CPU).
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.December.21. 09:12:21
By the way. Is it possible a faster CPU speed than 10 MHz ?
I still have 24 MHz available, which I can give to NICK (12 MHz for CPU).
I tried 25 Mhz, but don't stable, worked only for about 1 minute. (Also tested with 20MHz Z80) I think at this point the system clock too fast for the Nick Z80 clock controlling circuit.

The 20 Mhz tested on many machines both with 08-04 and 08-47 Nicks, it is working fine.
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.21. 09:17:42
In that case, I'm deleting 24MHz from the TODO list.
Thanks :)
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.December.21. 09:37:23
Zozo, what about writing AMD or SST FlashRam, do they use the same protocol?
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.December.21. 09:56:16
Temperature sensor will be optional. Type of the display too (OLED or LCD, difference with backlight).
Turbo Led also can be a option? As I wrote previously: "using RGB LED (can be placed to the power led place), and using colors from the Enterprise logo: 2MHz blue, 4MHz green,6MHz yellow,8MHz orange,10MHz red."
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.21. 10:08:01
It could be done :)
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.December.21. 10:35:59
Zozo, what about writing AMD or SST FlashRam, do they use the same protocol?
I working on a universal Flash software, for this I made a database of "probably EP compatible" Flash chips = 5V and 8bit

These can be categorized according to three main aspects:
-using 12 bit or 16 bit address decoding for the command addresses
-8 bit chips or 16 bit chips with 8 bit mode (using different addresses)
-programing type: sector based or page mode

The AMD/MX chips what I like using 12 bit decoding, then more easy the programing on Enterprise, enought the current segment paged in, command can be writed in segment.

The SST using 16 bit decoding, then 3 segment need to be paged in (or continously paging): the command addresses in a two different segment, and the target segment. But the advantage of SST using 4K sectors.
At the sector based Flash chips needed to erase whole sector before rewrite it. At the AMD/MX this is a 64K (at most of times). Soo if you want reprogram only one segment then needed to save the others to the memory, and write back after the erase.
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.21. 19:28:36
More and more dense ...
Title: Re: 6Mhz and more...
Post by: Tutus on 2017.December.22. 11:47:56
Very nice!

:smt041 :smt041 :smt041

Which DS1 and JTAG connectors will serve?
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.22. 12:38:04
DS1 is for the LCD or OLED display,
JTAG is used for programming CPLD,
SPI is used for serial-programming of microcontroller (possibility of future upgrading).
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.December.22. 13:18:05
As the display tape connector comes forward to the user, the band cable can be output between the upper case and the keyboard case, just by the function keys stripe lid.
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.22. 14:05:30
... or, optionally, screwed to the card (four holes around the RAM).
Then the display should be more or less above the Enterprise logo.
I thought for a moment whether to make a display into a logo place.
The sizes are almost identical.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.December.22. 14:26:22
What is the thing at the top-right corner?
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.22. 14:57:50
Encoder to change settings.
Instead of a flock of buttons ;)
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.23. 16:30:55
Suggested memory map.
I took into account the presence of the Microteam card, through with some modifications (removed right SRAM chip and all DRAM chips, are left Flash and left SRAM chip).

FlashROM 512KB (default configuration)
00-03: Flash bank 0 (EXOS)
20-23: Flash bank 1 (EXDOS)
30-23: Flash bank 2 (ZX Emulator) (right SRAM chip on the MICROTEAM card)
40-23: Flash bank 3 (DRAM chips on the MICROTEAM card)
50-23: Flash bank 4 (DRAM chips on the MICROTEAM card)
60-23: Flash bank 5
70-23: Flash bank 6
80-23: Flash bank 7

Alternative position for Flash bank 0: 08-0B
Alternative position for Flash bank 1: 0C-0F

RAM 2 x 1MB (RAM1 always onboard, RAM2 optionally):
3C-3F: RAM2 bank 12 (right SRAM chip on the MICROTEAM card)
44-47: RAM2 bank 1 (DRAM chips on the MICROTEAM card)
48-4B: RAM2 bank 2 (DRAM chips on the MICROTEAM card)
4C-4F: RAM2 bank 3 (DRAM chips on the MICROTEAM card)
54-57: RAM2 bank 5 (DRAM chips on the MICROTEAM card)
58-5B: RAM2 bank 6 (DRAM chips on the MICROTEAM card)
5C-5F: RAM2 bank 7 (DRAM chips on the MICROTEAM card)
64-67: RAM2 bank 9
68-6B: RAM2 bank 10
6C-6F: RAM2 bank 11
74-77: RAM2 bank 13
78-7B: RAM2 bank 14
7C-7F: RAM2 bank 15
B0-B3: RAM2 bank 0 (right SRAM chip on the MICROTEAM card)
B4-B7: RAM2 bank 4 (right SRAM chip on the MICROTEAM card)
B8-BB: RAM2 bank 8 (right SRAM chip on the MICROTEAM card)

BC-BF: RAM1 bank 15 (right SRAM chip on the MICROTEAM card)
C0-C3: RAM1 bank 0
C4-C7: RAM1 bank 1
C8-CB: RAM1 bank 2
CC-CF: RAM1 bank 3
D0-D3: RAM1 bank 4
D4-D7: RAM1 bank 5
D8-DB: RAM1 bank 6
DC-DF: RAM1 bank 7
E0-E3: RAM1 bank 8
E4-E7: RAM1 bank 9
E8-EB: RAM1 bank 10
EC-EF: RAM1 bank 11
F0-F3: RAM1 bank 12
F4-F7: RAM1 bank 13
F8-FB: RAM1 bank 14 (EP128 internal RAM expansion)

If there are any comments, please write under.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.December.23. 18:07:49
Removing chips from MICROTEAM don't change anything, the databus still drived (74xx245) when reading from MT address area.

There is my suggestions:
[attachimg=1]

First is the "maximum compatibility", when using hacked, 2M total (512K ROM, 1.5M RAM) MICROTEAM card. This 2M address area also can be used later by the All-in-one interface.

Second with standard MICROTEAM, then the optional RAM2 can be used. This configuration can be the default.

Third is alternative of the first: when enought ROM used externaly, then not important the internal flash (it is important when just SD interface used), then most of RAM2 enabled instead of Flash.

Questions:
-is possible remap the last 64K of Flash from 7C-7Fh to 00-03h? It is need also some address line playing.
-is possible add configuration jumpers? For example disable the RAM2, select the first or third configuration...

To Bruce: i left 08-0Fh for the EPNET, it is will ok? When not need the ROM/RAM expansion function from the EPNET card, because many other ROM/RAM in the system. In the first configuration also possible put it to 80-8Fh.

Some notes:
Putting ROMs to x0-x3h are not requried because the EXOS are also upgraded with this card.
ZX Emulator ROM don't need to be putted 30h- , it is can be putted to start of any 64K bank.
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.23. 18:30:55
Thanks a lot Zozo.
I can use your configurations with no problem. They are even easier to implement.
Second as default.
I want to limit the number of jumpers on the card to a minimum. The entire configuration of settings will be remembered in NVRAM (or EEPROM).
I would like to always set the RAM1 in the same place (in the third version as well).
For RAM2, I predicted the possibility of not installing this chip on the card (here by the jumper).
In the case of RAM2 and Flash it will be possible to disable the bank (I hope that I will succeded accommodate as many registers in the CPLD).
Title: Re: 6Mhz and more...
Post by: BruceTanner on 2017.December.23. 18:44:39
To Bruce: i left 08-0Fh for the EPNET, it is will ok? When not need the ROM/RAM expansion function from the EPNET card, because many other ROM/RAM in the system. In the first configuration also possible put it to 80-8Fh.
Yes EPNET decodes any 512k block and the ROM can go on any 64k boundary within the 512k. The remaining 64k blocks in the 512k can be RAM or not used, if not used the bus is not driven. :ds_icon_cheesygrin:
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.23. 19:51:10
Memory map:
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.December.23. 20:10:42
Great!
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.27. 07:40:15
Something about power supply.

The card in the full version, with LCD display and backlight, may require a maximum of 650 mA of current from the 5V supply.
Therefore, it will optionally have its own stabilizer directly from the 9V supply.
For the OLED display (not need backlight), the total current is between 450-500 mA.
I'm also wondering about the version without the display.
It will save another 50 mA, but will require other software (configuration in the dark ;) ).

The values of current given are the maximum values.
I have to use them to ensure stable operation of the card.
The average current needed to work will be about 30% smaller.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.December.27. 09:22:03
How many the consumption of the old 64K DRAM card? This is will be - when it is replaced :-)
"own stabilizer directly from the 9V supply"
This is a step down circuit which is more effective than the 7805?
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.27. 09:37:18
Oh my. I have just checked that the old 64K module consumes almost 500 mA :shock: (one of NMOS 4164 may pull at max 48mA of current).
As an option, can be leave an additional power supply.
Yes, step-down DC/DC (LM2675).
By the way, I used it to generate the bias voltage for the LCD contrast (-5V).
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.27. 10:44:49
In terms of synchronization of clocks switching, I found an article about the subject (https://www.eetimes.com/document.asp?doc_id=1202359) :idea:
I hope it works.
Most ideas from the internet usually do not work :ds_icon_frown:
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.December.27. 11:22:28
If it is don't work then for a last idea I can try disassemble SMD Turbo card (https://gafz.enterpriseforever.com/Galery/Bovitmenyek/Picture/SDM_Turbo~1.jpg)... removing ICs, and trying to find types in IC tester.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.December.28. 16:25:36
Encoder to change settings.
Instead of a flock of buttons ;)
How will work the controlls?
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.29. 06:16:46
The encoder can be rotated left and right (unlimited) and pressed.
This is enough to navigate the menu.
Something similar is in this movie (https://www.youtube.com/watch?v=gIP29m12wjQ).
My idea is a bit different. I want to use a hardware blinking cursor for menu items marking, instead of every time redraw the screen.
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.December.29. 10:32:25
Imagine to put remote control like this (https://www.youtube.com/watch?time_continue=49&v=PPlK7HDjB4I)...
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.29. 10:45:17
Cool :ds_icon_cheesygrin:
It has only one drawback. When there is no cable, it's easy to get lost :lol:
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.30. 12:56:40
Eight-channel clock selector with glitch free switching.
Time for testing.
However, drawing goes better than coding in VHDL ;)
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.30. 17:23:19
What is the 1 MHz clock signal for ?
Is not it to the sound synthesis system ?
I can output a third channel with a frequency independent of the selected processor clock speed.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2017.December.30. 17:53:49
It is come from Dave chip. I don't know anything which is use it.
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.30. 20:33:01
I will not do more this year ;)
The checklist:
Clock segment
* divider mod 2 done
* divider mod 3 done
* divider mod 4 done
* divider mod 5 done
* divider mod 12 done
* clock mux 8/1 done
* clock selector with phase synchronizer done
* control circuit
* display
* management firmware
* address decoder done

RTC segment
* battery backup (clock settings & ROM pages config)
* double buffer for local access
* address decoder done

ROM segment
* address decoder with configurable memory pages done

RAM segment
* address decoder done
Title: Re: 6Mhz and more...
Post by: gflorez on 2017.December.30. 23:34:33
LS1, is a buzzer?
Title: Re: 6Mhz and more...
Post by: pear on 2017.December.31. 07:58:30
Buzzer or speaker. I have not decided yet.
Title: Re: 6Mhz and more...
Post by: Tutus on 2017.December.31. 16:14:32
I've fallen in love :) (EP Dream Turbo Card)
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.04. 09:08:14
The wiki page (https://wiki.enterpriseforever.com/index.php?title=Dream_Turbo_Card_by_pear) has been started.
Title: Re: 6Mhz and more...
Post by: gflorez on 2018.January.04. 10:07:04
Great!

Of course it will have a Spanish translation.
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.04. 10:28:11
Do not rush. For now, there will be frequent changes.
I set up a page to remember what is already ready and what else to do.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2018.January.04. 12:54:43
How the software control will work?
There is a registers (at RTC bytes area) where can read the current speed settings? And can set new speed?
Other RTC bytes still present, can be used for other setting storage?

For example: when using HD disks the 4MHz Z80 too slow. At the old system need to use machine at turbo speed when loading from HD disks. And if the game runs to fast then switch back to 4MHz.

What I'm dreaming about the new system: the EXDOS can read the current system speed, can set turbo if needed, then can restore the original speed after the disk operation finished.
Some RTC bytes will used for store floppy drive settings.
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.04. 13:12:09
RTC with NVRAM will be shared between EP and the card microcontroller.
Each write from EP to RTC will be cause a set the flag RTC_DATA_CHG for microcontroller.
The uC then issues a RTC access request (RTC_REQUEST) and waits until the EP finishes access to the RTC.
When RTC is available, the uC takes over and blocks access for the time of reading new data.
After completing the reading, it releases access and resets the flag.
I do not know how it will works in reality. I expect some conflicts in access. We'll see.

I'm also wondering about the flag for EP that it has signal new data to read.
At now I do not have an idea how to do it easiest.
Maybe some fake read-only register for polling ?
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2018.January.04. 13:30:02
One more thing: possible add something for detect the card? For example reading ID string from one register, or etc...
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.04. 13:38:37
Certainly, the identification of the presence of the card will be useful.
I'll think about that.
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.04. 14:14:27
The RTC register selection port (I/O 0x7E) is write-only.
I can use it to read the ID and status of the card.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2018.January.04. 14:34:50
Good idea!
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.04. 18:06:57
A tangle of connections :smt119
I have reached the limit of available CPLD resources (93% of Xillinx XC95144XL-TQ100).
I think everything is fitted.
I forgot something ?

PS. Did anyone mention that Entermice is complicated ? :lol:
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.05. 21:19:48
The original RTC card for EP uses the Motorola interface mode.
In the DTC (Dream Turbo Card) I used a processor with Intel architecture.
Thanks to the use of several tricks, I managed to connect to RTC in Motorola mode, at the same time speeding up communication 2-3 times.
The address and data are transferred using one MOVX instruction (two cycles of the processor) :ds_icon_cheesygrin:

I have already used practically all available CPLD resources:
Macrocells Used 130/144  (91%)
Pterms Used 453/720  (63%)
Registers Used 96/144  (67%)
Pins Used 80/81  (99%)
Function Block Inputs Used 258/432  (60%)
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.07. 10:05:13
And we sew a PCB ...
Autorouter sews ugly connections.
I prefer to do it manually.
Such a small work of art ;)

The last moment for attention.
Although there is not much space left.
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.15. 20:24:04
Currently 85% of traces ready.
I have calculated the approximate cost of the card in the full version with all features (including L-connector).
Not to little, about 120 EUR, but most of all I'm doing this project for myself and decided not to save.
Ultimately, the "dream" name obliges ;)

The LED on the visualization is next to the board.
On the real card will be mounted from the bottom of the PCB, and then the legs will be bent up.
The RGB LED should be almost exactly where now is the red LED on the EP board.
Title: Re: 6Mhz and more...
Post by: gflorez on 2018.January.16. 02:54:19
Ok then, but just only to know, what can be optional in your project...?
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.16. 06:49:35
The minimum option:
- not has own DCDC power supply from 9 to 5 V,
- only 1 MB RAM,
- manual (potentiometer), with a smaller range (no negative bias voltage), one-time adjustment of the contrast of the LCD display , instead of the program setting,
- RTC chip DS12887 with no "clear NVRAM" function and replaceable battery,
- no beeper,
- no temperature sensor,
- cheaper LCD display.

That gives you 40 EUR savings.
There is still not to little, 80 EUR. The rest must stay.
Completely removing the LCD screen will not save you money (5 EUR) and will make difficult to use the card.
You can also opt out of the RGB LED and LCD backlight (another 5 EUR).
Title: Re: 6Mhz and more...
Post by: Tutus on 2018.January.16. 09:54:37
I think the 120 euro is not much!
Because this card has a lot of features!

If you can order it, I would like to order 2 pieces :D
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.16. 10:12:21
There is still a long way to order.
I need to write the firmware before :)
Title: Re: 6Mhz and more...
Post by: gflorez on 2018.January.16. 10:24:01
I don't want the cut-down project, I prefer it build with all options even if I don't use some of them.

But maybe somebody doesn't need to overclock, already has a RTC chip or don't like it with sound. Also some other couldn't reach the complete price.

It is good to know it is a tailored project.
Title: Re: 6Mhz and more...
Post by: gflorez on 2018.January.16. 10:29:45
What do you mean with 'no "clear NVRAM" function'?, because I already have some spare DS12887(battery inside) chips.
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.16. 10:31:26
It is good to know it is a tailored project.
I come from a country where, like in Hungary, every coin is viewed several times before spend ;)

The "clear NVRAM" input is not available in DS12887 (pin 21 does not physically exist), but it is in DS12885.
Title: Re: 6Mhz and more...
Post by: gflorez on 2018.January.16. 11:14:38
I come from a country where, like in Hungary, every coin is viewed several times before spend ;)

In Spain the money grow in the trees and we tie our dogs with sausages....

------

Is the "clear NVRAM" input important for your project?
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.16. 11:19:10
:smt043

No, the "clear NVRAM" option will be available also from card menu (exactly one of the microcontroller function will be clear the NVRAM content).
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.17. 06:29:16
Last night I've finished routing the paths :smt015
Today I will make some minor corrections and I'll send the PCB project for production :ds_icon_cheesygrin:
Title: Re: 6Mhz and more...
Post by: geco on 2018.January.17. 08:49:43
Great news :)
Title: Re: 6Mhz and more...
Post by: Tutus on 2018.January.17. 09:31:03
:smt041 :smt041 :smt041
Title: Re: 6Mhz and more...
Post by: Tutus on 2018.January.17. 11:42:30
Maybe I was careless.
In the descriptions I did not see the Z80 need to be replaced with 10Mhz?
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.17. 12:06:53
On the Wiki (https://wiki.enterpriseforever.com/index.php?title=Dream_Turbo_Card_by_pear) will be a detailed description of the installation (under construction ;) ).
Firstly the card must work :)
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.17. 20:07:30
PCB project sent for production.

Initially I described the  addressing and control (https://wiki.enterpriseforever.com/index.php?title=Dream_Turbo_Card_by_pear#Features) of the card's status.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2018.January.17. 20:28:15
Initially I described the  addressing and control (https://wiki.enterpriseforever.com/index.php?title=Dream_Turbo_Card_by_pear#Features) of the card's status.
The System/EXDOS clocks are linked? Are just putted to same table?
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.17. 20:40:27
There is a separate setting for each clock (look at CPLD config register no 3).
They are not rigidly linked (in CPLD logic).
The table shows the values of the clock for individual values of the selection register.
You will be able to force the settings of the clock pairs programmatically.
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.18. 06:21:25
We can use the 7th bit of register no 2 in the CPLD (it is not utilized in the CPLD, but it can be used by the microcontroller) to set whether the clocks should be linked or not.
In the "linked mode", we can stored in the firmware which minimum value of the CLK SYS should be selected for current CLK EXDOS value.
Zozo, can you make for me such a table - value of CLK EXDOS and the corresponding minimum value of CLK SYS ? Please :)
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2018.January.19. 22:12:26
Zozo, can you make for me such a table - value of CLK EXDOS and the corresponding minimum value of CLK SYS ? Please :)
8/8
9.6/8
10/8
12/12
13.33/12
16/16
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.20. 18:52:32
Thank you very much.
I have completed the information on the Wiki (https://wiki.enterpriseforever.com/index.php?title=Dream_Turbo_Card_by_pear#Minimum_value_of_system_clock_in_.22linked_mode.22).
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.25. 07:27:02
The project is slowly materializing.
A square hole in the middle of the board proved to be a challenge for manufacturer.
But finally PCBs are ready.
I'm waiting for the shipment
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2018.January.25. 08:12:12
Wow!
Title: Re: 6Mhz and more...
Post by: gflorez on 2018.January.25. 09:18:21
You have said it, it is amazing how you materialize your ideas....
Title: Re: 6Mhz and more...
Post by: pear on 2018.January.25. 13:18:10
The magic of creation :smt031
Maybe I'm making some bosons that give mass to projects :smt077
Title: Re: 6Mhz and more...
Post by: pear on 2018.February.09. 16:40:04
I have provided myself with another tool - the PQFP100 socket.
I bought three times cheaper CPLDs from China, but there is always a risk that the chips will be damaged or "repainted".
It would be a pity to mount such a chip on the PCB.
This time lucky - 5/5 chips work.

I'm still waiting for PCBs.
Title: Re: 6Mhz and more...
Post by: gflorez on 2018.February.09. 18:03:47
You have redesigned the Lcon boards, but the old ones can still serve for classic memory expansions, to make easier its installation or removing.
Title: Re: 6Mhz and more...
Post by: pear on 2018.February.09. 18:09:35
If exists applicable to them, the old version are for taking (free).
For me they will not be useful.
Also for self-made (gerber files in attachment).
Title: Re: 6Mhz and more...
Post by: gflorez on 2018.February.09. 18:53:07
When you send me your next creation, I will ask you again...
Title: Re: 6Mhz and more...
Post by: pear on 2018.February.21. 16:08:43
Perfect fit :smt026
Pegs hit perfectly :)
The PCB just requires only a gentle grinding at near the reset button.
Can be slowly assembled.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2018.February.21. 16:42:09
Very exciting!
Title: Re: 6Mhz and more...
Post by: Tutus on 2018.February.22. 09:26:41
Very nice! I'm looking forward to it. :)
Title: Re: 6Mhz and more...
Post by: pear on 2018.February.24. 17:12:26
There is some progress.
All power sources work properly (+ 5V, + 3.3V, -5V).
But I found a few minor mistakes.
First of all L-connector has a shifted connector EX2 by one pin to the right. I will have to correct and order again :|
Pads for SMD quartz generators are for version 3.3V instead of 5V, so they can not be used. On this PCB may be used only generators in the DIP housing.
And at last, was supposed to be a socket for the CR2032 battery, and by mistake it is for CR1632. This is the smallest problem.

My garage is so cold that even the camera on the smartphone refused to take pictures :oops:
Title: Re: 6Mhz and more...
Post by: gflorez on 2018.February.24. 19:52:06
Pear, come here to sunny Spain a month or two...
Title: Re: 6Mhz and more...
Post by: pear on 2018.February.24. 20:09:00
I'll manage somehow. I have to.
I have yet to mount the CPLD and move to my home.
I'll start to write tomorrow a firmware.
Title: Re: 6Mhz and more...
Post by: gflorez on 2018.February.24. 23:44:33
There is an aspect of the turbo hack not enough spoken.

On the description Zozo says:

On some motherboards some problem can be found with the video memory on turbo speed, then short circuit R12. On higher speed (10MHz :-) ) also needs removing C7.

I have made this midification to my two Enterprises and as a result sometimes at 4Mhz the memory test gives some errors, but zero errors at 10MHz. Not a big problem, ghost errors only happen on not installed memory.

What if you include some sort of commutation for R12 and C7?
Title: Re: 6Mhz and more...
Post by: pear on 2018.February.25. 08:19:11
I have not seen this before. It's a pity, because it's a bit too late for such modifications, but ...
Has anyone tried to insert capacitor of value 47 or 33pF as C7 (the R12 resistor should remain in place) ?
How then will go at 10 MHz ?
Title: Re: 6Mhz and more...
Post by: gflorez on 2018.February.25. 09:46:28
I can try it tomorrow.

Thanks.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2018.February.25. 12:14:32
short circuit R12... removing C7.
I do it always.

Quote
Not a big problem, ghost errors only happen on not installed memory.
This is because no pull ups on the data bus. Then totally undefined which data can be read from unused memory (and I/O) space. Usually FFh, but not guaranted. It mainly depened about the CPU. With CMOS Z80 are usually come the floating bus problem (ghost bad segments). But in some machines still exist the problem with the original NMOS CPU.
If the floating bus problem present then some games can hang up. Because using IM2 mode with non complete jump table (assume FFh from the non definied data bus).

The right solution add pull-up resistors to the data bus. As I wrote it here: https://enterpriseforever.com/hardware/6mhz-and-more/msg37473/#msg37473

Title: Re: 6Mhz and more...
Post by: gflorez on 2018.February.25. 14:36:44
But I remember to put pull-ups on both Enterprises...

I will reassure it tomorrow.
Title: Re: 6Mhz and more...
Post by: pear on 2018.February.26. 07:26:47
There are signs of life :)
Part of the circuits are already working.
There are correct clock signals for the microcontroller, EXDOS (after reset 8 MHz) and a control signal of 1 MHz.
Somewhere is a short circuit between the LED control pins and the clock output for the system.
The CPLD assembly with such a density of legs is a real nightmare (especially stiff with cold fingers).
Each one pin is a new gray hair :evil:
Unfortunately, I have to wait with the amendments until the frost will let go.
Title: Re: 6Mhz and more...
Post by: gflorez on 2018.February.26. 10:46:20
About the ghost bad segments, I have tested it thoughtfully now, and they only appear on my "new" Enterprise on 4MHz. I installed pull-ups on both machines as you suggest on the description, so it can be a human error....
Title: Re: 6Mhz and more...
Post by: pear on 2018.March.07. 06:14:37
Taking advantage of the opportunity that the frost for a moment has eased (in the garage was the temperature close to the top shelf in the refrigerator :mrgreen: ) I removed weak connections and short circuits.
All signals from the CPLD are generated correctly :smt026
Unfortunately at the first connection, I mistakenly connected the power ground and damaged the buffer (this is here to protect the rest of the components and as you can see works). I need to replace it :oops:
Finally, I can start to fun with the firmware.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2018.March.07. 09:46:25
Finally, I can start to fun with the firmware.
When it is near to be finished: Can I get one to develop EXOS/EXDOS support?
How can the firmware be updated? In the same way as the EnterMice? Or are other chips used? Needed something programming interface?
Title: Re: 6Mhz and more...
Post by: pear on 2018.March.07. 10:29:11
To tell you the truth, I hope that you and gflorez will want to test new equipment as before with EnterMice :ds_icon_cheesygrin:

Firmware for the MCU and configuration for the CPLD is possible reprogramm directly on the board.
In addition, the MCU can be removed from the socket (PLCC44) and programmed in an external programmer.
The PCB is adapted for MCU AT89S8253 or AT90S5315. The default chip is the first.
Both of them can be programmed in the system via the SPI interface.

For programming CPLD, you need a JTAG interface and Xillinx ISE software (exactly the same thing that I used for the EnterMice project).
Title: Re: 6Mhz and more...
Post by: gflorez on 2018.March.07. 12:39:08
I eagerly want....!
Title: Re: 6Mhz and more...
Post by: Tutus on 2018.March.07. 13:43:20
I would also like to, but Zozo needs to be installed.
So Zozo will test it :D
Title: Re: 6Mhz and more...
Post by: pear on 2018.March.18. 18:30:20
Far far away, behind the many errors, minor and major, behind the several corrections, there was the dream turbo card.
To the dream is still a lot missing, but finally something starts to work as planned :D
I tested about half of the CPLD function. In addition to the small details that I am regular correcting, everything works.
First hardware tests (https://youtu.be/sTBqiU3Xd4U)
Title: Re: 6Mhz and more...
Post by: Tutus on 2018.March.18. 20:01:44
:smt038 :smt038 :smt038
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2018.March.18. 20:39:07
Far far away, behind the many errors, minor and major, behind the several corrections,
This means new PCB version will coming for the final cards?
If yes, then the pull-up resistors for the data lines can be added?

Quote
First hardware tests (https://youtu.be/sTBqiU3Xd4U)
Nice! :smt038
Title: Re: 6Mhz and more...
Post by: pear on 2018.March.18. 21:00:05
Isn't bad. There is one problem with the reset from the microcontroller to CPLD (active high).
I solved it using a free port in the microcontroller (after reset is always set as '1').

The second error is the lack of a resistor at the PWM output (in RC filter was only capacitor) for the LCD contrast voltage.
This could also be solved in a simple way (seen on the movie).
I do not know why, but I can not properly initialize the OLED display. For now, I do not care.
LCD displays work well (OLED theoretically should works the same).

The buses on the card works properly (despite the two-voltage power supply).

I immediately apply all the corrections to the new version of the board (ver 1.1), but for now I do not see the need to order a new version.

I should have new, corrected L-connectors this week (they are already after customs clearance).

A lot of work ahead of me.
Title: Re: 6Mhz and more...
Post by: Tutus on 2018.March.26. 12:05:07
I'm ready to receive the Dream Turbo Card :)
10 Mhz Z80 :)

(http://www.enterpriseklub.hu/letoltesek/Z80_10Mhz.jpg)
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2018.March.26. 13:10:36
10 Mhz Z80 :)
From Mouser? (https://hu.mouser.com/ProductDetail/ZiLOG/Z84C0010PEG?qs=%2fha2pyFadujsN6DXHsE5eiv%2f381itGBdk1q4aUdWPdSOi3WIHLXnFg%3d%3d)
Title: Re: 6Mhz and more...
Post by: Tutus on 2018.March.26. 14:47:54
From Mouser? (https://hu.mouser.com/ProductDetail/ZiLOG/Z84C0010PEG?qs=%2fha2pyFadujsN6DXHsE5eiv%2f381itGBdk1q4aUdWPdSOi3WIHLXnFg%3d%3d)

Yes, I bought from there. :)
Title: Re: 6Mhz and more...
Post by: Judge on 2018.March.26. 18:20:54
I have 10 pieces of this... :smt045

[attach=1]
Title: Re: 6Mhz and more...
Post by: gflorez on 2018.April.12. 17:55:58
Hans Tillema [TMTLOGIC] has given me a tip for turbo charged Z80s.

[attach=1]

"The Z80 is not 100% accurate on its timings, sometimes the /IORQ is earlier than the /WR or /RD signals"
Title: Re: 6Mhz and more...
Post by: gflorez on 2018.April.24. 10:39:41
A silly question: in case it uses any, what Z80 ports will use the Dream Turbo Card?
Title: Re: 6Mhz and more...
Post by: pear on 2018.April.24. 11:05:48
Only RTC ports (https://wiki.enterpriseforever.com/index.php?title=Dream_Turbo_Card_by_pear#Card_access) 0x7E and 0x7F.
Title: Re: 6Mhz and more...
Post by: gflorez on 2018.April.24. 11:40:31
Thanks.

Of course the wiki..... I have to begin to translate it soon.
Title: Re: 6Mhz and more...
Post by: ron on 2018.November.03. 21:54:09
Dear folks !

Today, with the inestimable help of GFlorez, we have made the modification to have a Z80 running at 4 and 10 MHz.
Thanks to the ZoZo's tutorial we have managed to make it work successfully.

In this video you can see part of the process and the RetroParla event that took place today, in the first part we did everything we could and later we continued in my workshop, until I finished and left everything running.It is amazing to see the Enterprise running at 10 MHz, thank you very much for all the information from EnterpriseForever.

This was the gone ! , cheers !

https://www.youtube.com/watch?v=f2gziI9P9_c
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2018.November.04. 13:54:47
Nice work! :smt038
Title: Re: 6Mhz and more...
Post by: Z80System on 2018.November.04. 14:03:15
It is much more easy to give the EP to Zozosoft ... :)

But coongratulations !
Title: Re: 6Mhz and more...
Post by: pear on 2019.March.14. 06:24:34
If someone would ask what is happening with the turbo card ...

In the winter there was a total downtime in electronic projects.
In the garage too cold, but the situation is slowly beginning to improve.

The first card was assembled in the full version with its own stabilizer that draws energy directly from the 9V power supply line.
Unfortunately, it is very difficult to test software because it requires a dual power supply when there outside the computer.
Memory emulators and programmators have their own + 5V power supply, which causes continuous problems with power supply starting  synchronization.
That's why I have to assembly another card in the version powered only with + 5V (it is possible only in the garage).

The only thing I managed to do during the winter season is the initial design of the adapter that can be connected instead of the LCD display and display the image directly on the monitor using the EXTC inputs. Such OSD.
Unfortunately, two PCBs together will not fit in the housing.
I would have to redesign the whole card board and design the OSD permanently on one PCB.
It's just that I already have PCBs for a plain LCD display, but maybe it's worth it to order new ?
For the price of not cutting the hole in the housing. Something for something.
Title: Re: 6Mhz and more...
Post by: gflorez on 2019.March.14. 10:02:49
I will love to try your screen version and later the OSD version.

In my tests of EXTC I had very bad display from my defective-NIck Enterprise and perfect on the other, so probably it is better to put a little screen on these computers.
Title: Re: 6Mhz and more...
Post by: pear on 2019.March.15. 05:53:32
In this case, the OSD project goes to the shelf "for later".
First, I need have to finish the "basic" version.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2019.September.10. 11:11:21
First, I need have to finish the "basic" version.
There is any news? :oops:
Title: Re: 6Mhz and more...
Post by: pear on 2019.September.10. 15:05:06
A bit of shame, but no :oops:
I am stuck in life trifles :|
Title: Re: 6Mhz and more...
Post by: elmer on 2021.January.28. 21:57:34
The hw design of the Enterprise is originally ready for 6MHz model. The most important evidence about it is the option bit in the Dave (at port BFh), set the Dave sound frequency divider for the 4 or 6 Mhz system.
Very strange - why was 6Mhz machine not released?
Originally only 3 modifications needed:
-Z80B instead of Z80A
-12MHz crystal instead of 8MHz
-modify one bit in the EXOS code, for setting right frq for Dave

Just to make sure that I understand you correctly  ...

If I don't want to use an external EXDOS/Floppy board, and I don't ever want to attach anything else to the Expansion Slot ... then all that I need to do to create a 6MHz Enterprise is to burn a new EXOS EPROM, and to replace the motherboard's 8MHz crystal with a 12MHz crystal?

Something like this (https://www.ebay.com/itm/PKG-of-10-12-0000-MHz-Crystal-22pF-12MHz-12-0000MHz-HC-49-U-NDK/303604423405) or this (https://www.ebay.com/itm/2pk-12-Mhz-Crystals-/372118142499)?


I understand that some (maybe a lot) of games won't play well at the higher speed, and that some (maybe a lot) of games reset Dave's clock divider and so will sound wrong ... but that still seems way too easy! :shock:
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2021.January.28. 22:04:46
Yes!
Many games will be better on 6MHz. For example in the Race Ace only your car will be faster :-) (computer cars are synced with video irq)
Title: Re: 6Mhz and more...
Post by: dangerman on 2021.January.28. 22:35:10
If I don't want to use an external EXDOS/Floppy board, and I don't ever want to attach anything else to the Expansion Slot ... then all that I need to do to create a 6MHz Enterprise is to burn a new EXOS EPROM, and to replace the motherboard's 8MHz crystal with a 12MHz crystal?

That's right. I have done exactly that and it's great. A lot of Z80 chips run fine at 6Mhz. You don't actually even need to change the EXOS ROM. The Dave register can be changed in software or by the SD-card ROM.

As you say, there are some issues. You can't use the floppy drives without keeping the 8Mhz clock for the expansion port. And the serial driver baud rates are wrong at 12Mhz etc. etc.
Title: Re: 6Mhz and more...
Post by: dangerman on 2021.January.28. 22:38:43
Btw, the fast startup code in EXOS2.4 or on the SD cartridge automatically sets up the Dave register correctly, so if you use either of those no change is needed.
Title: Re: 6Mhz and more...
Post by: elmer on 2021.January.30. 05:35:06
Yes!

Woohoo, I forsee having an almost-PW320 in my near future! :ds_icon_cheesygrin:


A lot of Z80 chips run fine at 6Mhz.

I would be great if I get lucky, but if not, then I'm fortunate to be living in the USA, because there are still a couple of sellers here with old 6MHz NMOS Z80s.


And the serial driver baud rates are wrong at 12Mhz etc. etc.

That would be one good reason to remove the Z80 from the Enterprise motherboard, and install a socket.

Putting in a Z8S180 would allow me to also use a high-speed 5V USB-to-serial adapter for testing code.

But maybe that's just a bit more than I have the skills to do, and anyway, I don't think that the motherboard would still fit in the Enterprise case! ;-)


Btw, the fast startup code in EXOS2.4 or on the SD cartridge automatically sets up the Dave register correctly, so if you use either of those no change is needed.

I am using EXOS 2.4, so that's good!

Since the Dave register is read-only, is there an EXOS variable that I can read to detect the current CPU speed and Dave setting?
Title: Re: 6Mhz and more...
Post by: geco on 2021.January.30. 09:41:14
i do not know if there is a variable in exos 2.4, but there are more way to find the cpu speed, set dave 1khz interrupt counter, and count them within 50hz video interrupt, and based on the number it can be decided cpu speed.
Title: Re: 6Mhz and more...
Post by: elmer on 2021.January.31. 23:44:09
i do not know if there is a variable in exos 2.4, but there are more way to find the cpu speed, set dave 1khz interrupt counter, and count them within 50hz video interrupt, and based on the number it can be decided cpu speed.

Thanks! :)

Yes, I've seen the thread with some example code to do that test.

I was hoping that there might be some EXOS variables to look at, but I guess that it's not very surprising that there aren't ... things like that may have been added to later versions of EXOS.


In the same way, I have just been looking for an EXOS variable with a 50Hz interrupt count, but I can't seem to find one.

The fast blink rate of the cursor on an "EDITOR:" screen is starting to get annoying, especially when running a 6MHz Enterprise emulation in EP128EMU.

The fast video driver in IS-DOS uses the video interrupt for drawing a cursor, while looks much nicer to me than the EXOS "EDITOR:" device's use of a software delay loop.
Title: Re: 6Mhz and more...
Post by: gflorez on 2021.January.31. 23:59:13
There is TIMER, Var number 5(BFCAh), but it can be manipulated by any process.
Title: Re: 6Mhz and more...
Post by: elmer on 2021.February.01. 00:32:08
There is TIMER, Var number 5(BFCAh), but it can be manipulated by any process.

Yes there is :)  ... but unfortunately it is a 1Hz counter, and so far too slow to use for a cursor.

Cursors normally run at close to a 2Hz cycle, and so need a 4Hz clock for each change.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2021.February.01. 09:21:43
I would be great if I get lucky, but if not, then I'm fortunate to be living in the USA, because there are still a couple of sellers here with old 6MHz NMOS Z80s.
Why you want to remain on NMOS? CMOS less power usage, and mutch better compatibility with modern hardwares (SD, SF3, etc).
In still in production :-)
Only real difference the undocumented OUT (C),0 which are OUT (C),255 on CMOS (I used this in my memory test for detect Z80 type).
Because lot of Enterprise upgraded to new CMOS CPU, then don't recommended to use this tricky instructions in any program (just for CPU detect).

Since the Dave register is read-only, is there an EXOS variable that I can read to detect the current CPU speed and Dave setting?
[/quote]
At EXOS 2.4 I made a 191 (PORT_BF) variable :-)
Bit 7 now 1: disable continous auto detect (little buggy :oops: It is counts how many 50Hz video interrupts under 1Hz Dave interrupt, for detect wrong BF setting. But when programs use irq disable, then it is mess up counting, the result some extra 4/6MHz change on Dave, which can be hear on sound)
Bit 1,2,3: port BF bits.
At Cold Reset, default set to no Memory waits, and 4/6MHz bit set by CPU speed detection.
At Hot Reset PORT_BF (with AND 0Eh) sent to Port BFh (instead of the original ROM fixed value in EXOS 2.1/2.0).

Quote
The fast blink rate of the cursor on an "EDITOR:" screen is starting to get annoying
I've been living with this for about 30 years, and I like it :-) This is sign of which powerfull Enterprise you have :ds_icon_cheesygrin:
Title: Re: 6Mhz and more...
Post by: geco on 2021.February.01. 09:55:09
And CMOS does not have LD A,R, LD A,I bug :)
Title: Re: 6Mhz and more...
Post by: elmer on 2021.February.01. 17:58:52
And CMOS does not have LD A,R, LD A,I bug :)

Yes, the old NMOS Z80 design was an excellent improvement on Intel's 8080, but it does have some bugs and design issues. ;-)


I've been living with this for about 30 years, and I like it :-) This is sign of which powerful Enterprise you have :ds_icon_cheesygrin:

Hahaha, that is certainly one way of looking at it! :lol: ;-)

I have now added another patch to my EXOS 2.4, to slow down the cursor speed to something that I find a little more comfortable.

It is still the same timing loop, and so you can see just how powerful your Enterprise is ( ;-) ), but it is 1/4 the previous rate which, to my old eyes, makes it far easier to see the character underneath the cursor, especially if you are running at 6/8/10 MHz.


I have only patched the EXOS ROM, and not the language ROMs, so my change only effects UK users (because the language ROMs contain their own "EDITOR:" driver).

If anyone is curious, I can post the details of the patch, and if anyone wants the language ROMs modified too, I can do that as well.
Title: Re: 6Mhz and more...
Post by: elmer on 2021.February.01. 20:11:40
At EXOS 2.4 I made a 191 (PORT_BF) variable :-)
Bit 7 now 1: disable continous auto detect (little buggy :oops: It is counts how many 50Hz video interrupts under 1Hz Dave interrupt, for detect wrong BF setting. But when programs use irq disable, then it is mess up counting, the result some extra 4/6MHz change on Dave, which can be hear on sound)
Bit 1,2,3: port BF bits.
At Cold Reset, default set to no Memory waits, and 4/6MHz bit set by CPU speed detection.
At Hot Reset PORT_BF (with AND 0Eh) sent to Port BFh (instead of the original ROM fixed value in EXOS 2.1/2.0).

Excellent, thanks! :cool:

It sounds like something that really should be an official EXOS variable, once you manage to get all of the EXOS source files building and can make an EXOS 2.5 ;-)


Why you want to remain on NMOS? CMOS less power usage, and mutch better compatibility with modern hardwares (SD, SF3, etc).

Partially for nostalgia, because I can get an SGS-manufactured NMOS Z80B with a 1987 production date that just somehow in my mind *feels* more authentic for a 2nd-generation Enterprise than a newer CMOS Z80B. :mrgreen:

Partially because if I use a CMOS Z80, then I will need to add the pull-up resistors to the data bus, which means another modification to the motherboard.

And partially because I can get the NMOS Z80B from within the USA, but if I get a CMOS Z80B, I will need to get it from Europe in order to avoid the fake Chinese chips.


OTOH, if I get the chip from Europe, I can get an 8MHz Z80H! :)

But then I would need to make even MORE modifications to the Enterprise motherboard, and running at 8MHz would also lose the ability to play the lowest 5 musical tones on the Dave chip. :(
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2022.November.06. 13:00:38
[attach=1][attach=2][attach=3]
Title: Re: 6Mhz and more...
Post by: Ep128 on 2022.November.06. 22:45:20
... és ez "hová tevődik" a gépben? (Vagy mindenképpen kívül fityeg?)
Title: Re: 6Mhz and more...
Post by: gflorez on 2022.November.07. 07:32:21
Gondolom, hogy belsejébe megy, mert látok egy ESP8266 Wifi modult. Ehhez az órajel-generátor három vezetékén kívül további csatlakozásokra lenne szükség.

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

I imagine it goes inside, because I see an ESP8266 Wifi module. That would need more connections in addition to the three wires for the clock generator.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2022.November.07. 10:49:55
This is just a first test of the Si5351A programable Clock generator module. It can be programmed via I2C bus, so a microcontroller is needed, which executes the task.
ESP8266 hacked to work as Arduino, then it just works as a simple microcontroller not as wifi.

The Si5351 has 3 independent clock outputs. The plan: one for the internal System bus (CPU), one for external System bus (Turbo EXDOS), and optionally the third to replace Nick complicated clock generator (broken L2 and can't get replacement problem).
Title: Re: 6Mhz and more...
Post by: gflorez on 2022.November.07. 11:33:30
Ah, great. I have already seen other uses (https://github.com/ramapcsx2/gbs-control) of the ESP8266 as a cheap controller but I have not figured it this time. Amazing.

Does it smoothly change the clock step by step?
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2022.November.07. 14:26:28
Does it smoothly change the clock step by step?
Yes. Then there is no need to discover the secret of the SMD Turbo erased chip labels (https://gafz.enterpriseforever.com/Galery/Bovitmenyek/Picture/SDM_Turbo~1.jpg) :-D
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2022.November.07. 18:54:38
6MHz and less... :lol: anti-turbo testing :ds_icon_cheesygrin:
[attach=1]
 
Title: Re: 6Mhz and more...
Post by: gflorez on 2022.November.07. 19:35:38
Great, it is slower than the emulator(0,4Mhz).
Title: Re: 6Mhz and more...
Post by: ergoGnomik on 2022.November.08. 13:21:47
so a microcontroller is needed
Oh. So the good Sir finally switched over to the Dark Side. A microcontroller. What comes next? A mysterious black millepede, maybe? :mrgreen:
Title: Re: 6Mhz and more...
Post by: gflorez on 2022.November.08. 15:09:44
Micro controllers are not new to the EP, EnterMice or SF3 use them. The Z80 is great, but needs some aid for some demanding tasks.

Joke mode: You are right, the good orthodox side of "The Force" would have been to create an interface so the Z80 could itself manage the clock generator to be enslaved by it.....
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2022.November.08. 15:57:07
and optionally the third to replace Nick complicated clock generator (broken L2 and can't get replacement problem).
Successfully tested: Nick can run from external clock source!
[attach=1][attach=2]

Just one cut needed for separate the original 14M clock circuit.
[attach=3][attach=4]

Kvaczko (https://enterpriseforever.com/profile/?u=556) planning standalone small dauhterboard as Nick clock circuit replacement. Then will be possible repair machines with broken L2.
[attach=5][attach=6]

The planned turbo card also will have a Nick clock option.
Title: Re: 6Mhz and more...
Post by: ergoGnomik on 2022.November.09. 11:57:51
@gflorez (https://enterpriseforever.com/hardware/6mhz-and-more/msg87190/#msg87190): I do understand that. All I wanted to do was drawing attention to the contradiction between using such modern components and his earlier purist statements* in a humorous way.

*Anything built with anything else but TTL circuits is cheating. Discrete logic, ASICs and MPUs are OK, anything programmable is not.
Title: Re: 6Mhz and more...
Post by: gflorez on 2022.November.09. 12:32:39
Yes, exactly the same is what I intended(but didn't manage...) to express following your commentary, sorry. Is for that I pointed that this clock generator is not the first microcontroller-driven device we have accepted. Even the WD177X is a dedicated controller, and the Xilings CPLD on every SD-Cartridge is programmable.

Imagine what the Enterprise would have been if designed on actual FPGAs....



Edit: I forgot the GAL on every Saint's Ram expansion, it is also programmable.
Title: Re: 6Mhz and more...
Post by: Zozosoft on 2022.November.09. 14:26:10
Turbo EXDOS option also tested:
[attach=1][attach=2][attach=3]
Title: Re: 6Mhz and more...
Post by: Zeroperf on 2022.December.12. 13:58:03
Hello dear improvers opportunities Enterprise 64\128! ;-)  
Is it possible, unless the assembly of Dream Turbo Cards is finally completed, to expand the RAM up to 3 megabytes?
P.S.
I'm sorry if my questions seem too arrogant:упс: ... Is it possible, if there is room, add a schematic -
https://gafz.enterpriseforever.com/Hardware/Cooprocessor/cooprocessor.htm
P.P.S.
There is a very interesting board that implements 2:(  megabytes of RAM and several frequencies for the processor and several bios from different clones - though this is a board for the ZX Spectrum ZS 256 Scorpion, but according to the author, this board can be connected to any computer on the Z80 that works on TR-DOS
https://zx-pk.com/forum/viewtopic.php?f=7&t=15566
https://zx-pk.ru/threads/31334-gmx-%28grafic-memory-expander%29-svodnaya-tema.html
Title: Re: 6Mhz and more...
Post by: SlashNet on 2022.December.12. 15:22:57
Hi.
This forum thread is not really appropriate for such topic (here talk about overclocking the Z80 processor), but let me ask you a counter question. What can GMX do that standard Enterprise can't?
Also, Enterprise does not use TR-DOS and it is not a Spectrum-compatible computer.

About RAM expansion we have this thread: https://enterpriseforever.com/interface/internal-memory-expansion/
Title: Re: 6Mhz and more...
Post by: Zeroperf on 2022.December.12. 15:45:29
I'm not advertising GMX, I just noticed the similarity of the solutions, nothing more)) On this Dream Turbo Cards board, in addition to changing the processor frequencies, as far as I understand, memory expansion by 1 or 2 megabytes is optional. I suggested that it's too small - to make 3 megabytes. Well, the Coprocessor, this is also welcome.
If the coprocessor is not implemented in this board in any way. At least it's a memory:)
Title: Re: 6Mhz and more...
Post by: gflorez on 2022.December.12. 15:50:35
The Enterprise can address up to 4MB of mixed Ram or Rom on 16KB chunks. Every possible chunk is numbered from 00h to FFh, and the Enterprise pagination system can put any of these 256x16KB chunks on any order, and even repeated on each one of the 4x16KB pages of the Z80 64KB memory range. This is, the 4MB pagination comes internally from stock.

I have no information, sorry, but I doubt that the Scorpion memory pagination could be easily adapted to the Enterprise.

Actually there is no problem on expanding the Enterprise memory, internally or externally, with even some cheap do-it-yourself projects available.(click above on the link on SlashNet's commentary)
 
And about the Enterprise turbo-hack, there are some information here in this thread. It is not new on Hungary to use a 6Mhz clock signal on the stock 4Mhz Z80A, because some processors allow it, but usually the procedure needs the removal of the Z80(it comes soldered to the PCB) to install a faster one, and it is a hard task. Compared to that, adding the required control logic is trivial.

Again, the internal video frequency can be used to speed up the machine to slightly more than 7Mhz, so only the 6Mhz and the 10Mhz options require an additional clock. More than the 10Mhz frequency has been tested, but makes the Enterprise unstable.

I also doubt that the GMX card turbo-mode could be adapted to the Enterprise.
Title: Re: 6Mhz and more...
Post by: Zeroperf on 2022.December.12. 16:11:40
I already wrote in a personal in that thread.
And the same GMX board has only 2 modes, normal and turbo at 7 megahertz. So she loses a few. It is clear that simply inserting a board and getting a miracle will not work, you will have to programmatically try to solve everything. It works not only with TR-DOS but also with EX-DOS.
Agree to build a barricade of separate boards for expanding the RAM, for connecting a coprocessor, for the same turbo mode - more than ugly.
Therefore, my question is the same - is it possible on this card - which is described in the branch - to implement 3 megabytes (at least for RAM-disks) and a coprocessor.
If not, I'm sorry to bother you:oops:
Title: Re: 6Mhz and more...
Post by: gflorez on 2022.December.12. 16:50:06
Your questions are welcome.

The link to an Enterprise coprocessor you have put was a hobbyist  maths co-processor project, it used a classic-time chip(80's),  and it was never included on Basic or EXOS, only limited to tests.

Lately I have seen some R-pi or FPGA expansion projects on the MSX or CPC scenes, used as co-processors, but they are very tied to the developer desires due to the complexity. I think they are not intended for an average user....

Would the R-pi or FPGA speed-up your computer on classic applications? I doubt it. Only few new programmed apps will benefit from the new added hardware.

About how much Ram is needed..... Like you I prefer ALL possible... but the reality is that on the Enterprise scene there are only a few programs that need more than 500KB.
Title: Re: 6Mhz and more...
Post by: geco on 2022.December.13. 09:09:19
Here you can find a ready memory expansion, it is only 1 MB, but can be expanded to max 4 MB

Memory expansion 1-4MB (https://www.facebook.com/groups/112679608813524/user/100001074017704/)