6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 12:33 pm

All times are UTC




Post new topic Reply to topic  [ 37 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
PostPosted: Sun Apr 12, 2020 3:39 pm 
Offline

Joined: Sat Aug 15, 2009 8:08 pm
Posts: 29
Some people use vintage computers now an then! ;-)
Many vintage chips like v9958 can be found on ebay. There is one seller who makes bundles with cpu, ram, sound, and video chips for a reasonable price.

Some of the v9958 functions auto increment the vram address in order to speed up block transfers by removing the need to specify the address each time. Very handy and something you really want to have working for fast games.

Check out the CreatiVision console for an example of an early 6502/ti9918 system (precursor to the v99x8 chips).


Top
 Profile  
Reply with quote  
PostPosted: Sun Apr 12, 2020 5:38 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
BigDumbDinosaur wrote:
Use of R-M-W instructions on any hardware register is considered bad programming practice, regardless of MPU.
While it's true problems can arise in some circumstances, I'd say your warning is needless broad, BDD -- and potentially anti-productive. Use of R-M-W instructions on hardware registers can be a real boon, as I can attest from experience. Garth is another who "goes there" routinely.

BigDumbDinosaur wrote:
Better to not use any R-M-W instructions on hardware.
Yes, that's one solution to Steve's problem, but it's a tradeoff because it abandons the original size/performance goal. Giving up is a viable option, but it isn't the only option! As long as we're willing to use our gray matter (sorry, Steve!) I expect the problem is one that can be gainfully solved. :)

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
PostPosted: Sun Apr 12, 2020 6:49 pm 
Offline

Joined: Sat Aug 15, 2009 8:08 pm
Posts: 29
Quote:
Yes, that's one solution to Steve's problem, but it's a tradeoff because it abandons the original size/performance goal. Giving up is a viable option, but it isn't the only option! As long as we're willing to use our gray matter (sorry, Steve!) I expect the problem is one that can be gainfully solved. :)


LOL, and has been solved in this case (see CreatiVision schematic). Writing and reading use different addresses, which I didn't understand at first, but now see why.

http://www.madrigaldesign.it/creativemu/datasheets.php


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 15, 2020 5:39 am 
Offline

Joined: Thu Jan 16, 2020 3:52 pm
Posts: 45
thanks, I will take a look at your page. I hope to post some more progress here soon now that I've got almost all the parts I needed for progress.

eddie

sjgray wrote:
maded2 wrote:
hi all,
Since completing my SBC based on the 65C02. I've now starting work to design an Video adapter using the V9958 (as used in the MSX2 computer). I've done some web searches and it appear no one that I can find using V9958 with 6502.

My plan is to have V9958 using simple 1 or 2 SRAM chip with some latches to interface to the V9958 DRam interface. Any help or comment will be very much welcome.

As a start I've designed and produced a breakout board so that I can use 0.1" pinout configuration. I've attached the Gerber file in case if anyone else would like to get the PCB make.

Attachment:
PCB_v9958 breakout_20200127220855.png


eddie


I designed some v9958 cartridges for the c64 and vic, and even made a run of pcbs, but they had errors and i just let the project slide. Later i found there is a issue with read-modify-write opcodes on the 6502 that interfere with some of the v9958 functions so i need to do a redesign of my boards.
http://www.6502.org/users/sjgray/projec ... index.html

Christian Forstrueter has successfully created a v9958 board for Commodore b-series (6509 cpu).
You can find info on my cbm2 Facebook group.


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 27, 2020 2:00 pm 
Offline

Joined: Thu Jan 16, 2020 3:52 pm
Posts: 45
First prototype of Video Adapter PCB. Will see how many mistakes when it comes back from JLPCB.

Attachment:
video_proto1.png
video_proto1.png [ 262.11 KiB | Viewed 1151 times ]


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 27, 2020 4:46 pm 
Offline

Joined: Fri Apr 06, 2018 4:20 pm
Posts: 94
maded2 wrote:
hi all,
Since completing my SBC based on the 65C02. I've now starting work to design an Video adapter using the V9958 (as used in the MSX2 computer). I've done some web searches and it appear no one that I can find using V9958 with 6502.

My plan is to have V9958 using simple 1 or 2 SRAM chip with some latches to interface to the V9958 DRam interface. Any help or comment will be very much welcome.

As a start I've designed and produced a breakout board so that I can use 0.1" pinout configuration. I've attached the Gerber file in case if anyone else would like to get the PCB make.

Attachment:
PCB_v9958 breakout_20200127220855.png


eddie


Sorry I didn't see this I could have perhaps saved you some time. 65C02 + 9958 was demonstrated last year and is the heart of a system called the Steckschwein.

https://steckschwein.de

You can get a schematic of how it was interfaced here:

https://steckschwein.de/hardware/v9958- ... ousel-1193

You could reach out to the designer if you need tips on software and/or timing issues.


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 28, 2020 1:47 pm 
Offline

Joined: Thu Jan 16, 2020 3:52 pm
Posts: 45
rpiguy2 wrote:
maded2 wrote:
hi all,
Since completing my SBC based on the 65C02. I've now starting work to design an Video adapter using the V9958 (as used in the MSX2 computer). I've done some web searches and it appear no one that I can find using V9958 with 6502.

My plan is to have V9958 using simple 1 or 2 SRAM chip with some latches to interface to the V9958 DRam interface. Any help or comment will be very much welcome.

As a start I've designed and produced a breakout board so that I can use 0.1" pinout configuration. I've attached the Gerber file in case if anyone else would like to get the PCB make.

Attachment:
PCB_v9958 breakout_20200127220855.png


eddie


Sorry I didn't see this I could have perhaps saved you some time. 65C02 + 9958 was demonstrated last year and is the heart of a system called the Steckschwein.

https://steckschwein.de

You can get a schematic of how it was interfaced here:

https://steckschwein.de/hardware/v9958- ... ousel-1193

You could reach out to the designer if you need tips on software and/or timing issues.


thanks, I've come across this web site recently and I've compared my design with their.


Top
 Profile  
Reply with quote  
PostPosted: Sun May 10, 2020 12:07 am 
Offline

Joined: Thu Jan 16, 2020 3:52 pm
Posts: 45
Quick update: PCB is back from JLCPCB. I've assembled the first and will begin testing.


Attachments:
2020-05-09 22-08-35.jpeg
2020-05-09 22-08-35.jpeg [ 2.79 MiB | Viewed 1075 times ]
2020-05-08 10-44-02.jpeg
2020-05-08 10-44-02.jpeg [ 3.01 MiB | Viewed 1075 times ]
Top
 Profile  
Reply with quote  
PostPosted: Mon May 25, 2020 11:40 pm 
Offline

Joined: Thu Jan 16, 2020 3:52 pm
Posts: 45
Making progress on the V9958 video adapter. Got a picture, but it not clear at all. Will need to debug the video circuit to see what's going on.


Attachment:
2020-05-25 23-20-04.jpg
2020-05-25 23-20-04.jpg [ 1.35 MiB | Viewed 1008 times ]


Top
 Profile  
Reply with quote  
PostPosted: Fri May 29, 2020 12:11 am 
Offline

Joined: Thu Jan 16, 2020 3:52 pm
Posts: 45
got a better picture after some adjustments on the video encoder board. There's still issue with the sync at the top of the picture.


Attachment:
2020-05-28 22-55-46.jpeg
2020-05-28 22-55-46.jpeg [ 4.17 MiB | Viewed 936 times ]


Top
 Profile  
Reply with quote  
PostPosted: Mon Jun 01, 2020 1:26 am 
Offline

Joined: Thu Jan 16, 2020 3:52 pm
Posts: 45
Making more progress with "Hello World" in text mode. But looks like there timing issue with some strange chars appearing.

Attachment:
2020-05-31 23-21-14.jpeg
2020-05-31 23-21-14.jpeg [ 4.15 MiB | Viewed 874 times ]

Attachment:
2020-05-31 23-21-20.jpeg
2020-05-31 23-21-20.jpeg [ 4.61 MiB | Viewed 874 times ]


Top
 Profile  
Reply with quote  
PostPosted: Sun Jun 07, 2020 12:58 am 
Offline

Joined: Thu Jan 16, 2020 3:52 pm
Posts: 45
80 Columns mode now showing a picture. the screen corruption in the previous post was due to the long ribbon cable connecting the 6502 SBC to the Video Adapter. It now uses a much shorter cable and it appears to fix the issue.

Attachment:
2020-06-06 09-06-56.png
2020-06-06 09-06-56.png [ 13.46 MiB | Viewed 787 times ]


The next task is to get a more stable picture. The picture will sometimes get out of sync and the pixels is not too stable on the screen. My current thinking is that the Voltage is not good on the video signal driving circuit. The whole computer is powered by a USB connection (~4.94V on the input side and drawing 465mA). However the voltage on the video output circuit has dropped to 4.51V. Will need to workout how to fix this.

Attachment:
2020-06-07 08-38-43.png
2020-06-07 08-38-43.png [ 8.2 MiB | Viewed 787 times ]


Top
 Profile  
Reply with quote  
PostPosted: Sun Jun 07, 2020 6:41 am 
Offline
User avatar

Joined: Wed Feb 14, 2018 2:33 pm
Posts: 1488
Location: Scotland
maded2 wrote:
The next task is to get a more stable picture. The picture will sometimes get out of sync and the pixels is not too stable on the screen. My current thinking is that the Voltage is not good on the video signal driving circuit. The whole computer is powered by a USB connection (~4.94V on the input side and drawing 465mA). However the voltage on the video output circuit has dropped to 4.51V. Will need to workout how to fix this.


Use a separate power supply if you can, or double up on 2 USB outlets from your PC. USB(1,2) is not designed for high power and if the PC was doing it properly would only allow 100mA before shutting down the power to the USB socket. (there is a power negotiation protocol - rarely used on most PCs) Clearly your PC, like 99.5% of all PCs and Laptops haven't been fitted with current limiting devices, but it may have a 500mA polyfuse (self resetting thermal fuse) or similar.

If doubling up, it might be worthwhile taking the lid off your PC to make sure there is a separate fuse for each outlet - sometimes there is just one for a bank of 4 USB sockets. Polyfuses are usually green, or easy to tell apart from the usual SMT resistors.

I ran into exactly this issue trying to power the backlight a 20x4 LCD board - it dropped the USB supply voltage down to a level that made the entire board unstable. I fitted a separate 5v PSU for the display and all was fine again.

Cheers,

-Gordon

_________________
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/


Top
 Profile  
Reply with quote  
PostPosted: Mon Jun 08, 2020 2:16 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8514
Location: Midwestern USA
500mA is considered the outer limit for power draw from USB. There are much better power sources available.

BTW, the picture is a big improvement over what you had before.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Mon Jun 08, 2020 2:38 am 
Offline
User avatar

Joined: Tue Mar 05, 2013 4:31 am
Posts: 1385
Agreed on the picture quality getting better than previous. Seems noise/ringing on the ribbon cable and possibly noise on the power to be a cause as well. Even though older USB 2.0 spec had a 500ma power limit, several motherboard manufacturers have implemented high power USB sockets for some connectors.

What's more interesting is the newer USB specs and the higher power limits as well as the higher transfer speeds. I found this article recently from CUI... fairly interesting and informative:

https://www.cuidevices.com/blog/usb-typ ... -clarified

On a different topic... USB cables. I've received some real cheap ones where the wiring is so thin a gauge, that it barely handles a switch transient without the voltage taking a dive. So, as another possible culprit, poorly made USB cables can also result in poor power to an end-user device.

_________________
Regards, KM
https://github.com/floobydust


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 37 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 33 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: