Welcome, Guest. Please login or register.


Author Topic: 6Mhz and more... (Read 117587 times)

Offline gflorez

  • EP addict
  • *
  • Posts: 3615
  • Country: es
    • Támogató Támogató
Re: 6Mhz and more...
« Reply #240 on: 2021.January.31. 23:59:13 »
There is TIMER, Var number 5(BFCAh), but it can be manipulated by any process.

Offline elmer

  • EP fan
  • *
  • Posts: 196
  • Country: us
Re: 6Mhz and more...
« Reply #241 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.

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14779
  • Country: hu
    • http://enterprise.iko.hu/
Re: 6Mhz and more...
« Reply #242 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:

Offline geco

  • EP addict
  • *
  • Posts: 7232
  • Country: hu
    • Támogató Támogató
Re: 6Mhz and more...
« Reply #243 on: 2021.February.01. 09:55:09 »
And CMOS does not have LD A,R, LD A,I bug :)

Offline elmer

  • EP fan
  • *
  • Posts: 196
  • Country: us
Re: 6Mhz and more...
« Reply #244 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.
« Last Edit: 2021.February.01. 18:26:45 by elmer »

Offline elmer

  • EP fan
  • *
  • Posts: 196
  • Country: us
Re: 6Mhz and more...
« Reply #245 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. :(

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14779
  • Country: hu
    • http://enterprise.iko.hu/
Re: 6Mhz and more...
« Reply #246 on: 2022.November.06. 13:00:38 »
[ Guests cannot view attachments ] [ Guests cannot view attachments ] [ Guests cannot view attachments ]

Offline Ep128

  • EP addict
  • *
  • Posts: 1860
  • Country: hu
    • Honlapom
Re: 6Mhz and more...
« Reply #247 on: 2022.November.06. 22:45:20 »
... és ez "hová tevődik" a gépben? (Vagy mindenképpen kívül fityeg?)

Offline gflorez

  • EP addict
  • *
  • Posts: 3615
  • Country: es
    • Támogató Támogató
Re: 6Mhz and more...
« Reply #248 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.

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14779
  • Country: hu
    • http://enterprise.iko.hu/
Re: 6Mhz and more...
« Reply #249 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).
« Last Edit: 2022.November.07. 19:28:03 by szipucsu »

Offline gflorez

  • EP addict
  • *
  • Posts: 3615
  • Country: es
    • Támogató Támogató
Re: 6Mhz and more...
« Reply #250 on: 2022.November.07. 11:33:30 »
Ah, great. I have already seen other uses 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?

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14779
  • Country: hu
    • http://enterprise.iko.hu/
Re: 6Mhz and more...
« Reply #251 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 :-D
« Last Edit: 2022.November.07. 19:29:23 by szipucsu »

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14779
  • Country: hu
    • http://enterprise.iko.hu/
Re: 6Mhz and more...
« Reply #252 on: 2022.November.07. 18:54:38 »
6MHz and less... :lol: anti-turbo testing :ds_icon_cheesygrin:
[ Guests cannot view attachments ]
 

Offline gflorez

  • EP addict
  • *
  • Posts: 3615
  • Country: es
    • Támogató Támogató
Re: 6Mhz and more...
« Reply #253 on: 2022.November.07. 19:35:38 »
Great, it is slower than the emulator(0,4Mhz).

Offline ergoGnomik

  • EP addict
  • *
  • Posts: 1350
  • Country: hu
  • Stray cat from Commodore alley
Re: 6Mhz and more...
« Reply #254 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: