Hi-Def NES HDMI Adapter for the NES

Discuss hardware-related topics, such as development cartridges, CopyNES, PowerPak, EPROMs, or whatever.

Moderators: B00daW, Moderators

lidnariq
Posts: 9871
Joined: Sun Apr 13, 2008 11:12 am
Location: Seattle

Re: Hi-Def NES HDMI Adapter for the NES

Post by lidnariq » Mon Nov 17, 2014 5:11 pm

Here's a few more random brainstorming ideas, mostly things that might help game development:
* Detect bad cartridge insertion ... whatever that means...
* Display raw PPU fetches (producing a 336x240 image instead of 256x240)
* Visually overlay when /IRQ fires

User avatar
kevtris
Posts: 504
Joined: Sat Oct 29, 2005 2:09 am
Location: Indianapolis
Contact:

Re: Hi-Def NES HDMI Adapter for the NES

Post by kevtris » Tue Nov 18, 2014 12:36 am

rainwarrior wrote:Ah, I see. Well, I really like the idea of clean and modern output from the NES. Especially being able to get 60 fps output instead of interlaced 30 fps without an expensive converter would be great. I suppose it depends on how much this costs, as well. Do you have to desolder both the PPU and CPU to install?

I`d actually like to see the whole package, new and clean though. My old NES is a bit temperamental, and of course there`s the ZIF connector hassle. I'd love an all-new replacement.
Yes you have to desolder both the PPU and CPU, because it spies on the CPU bus too for getting the audio register writes and DPCM DMA contents and to read the controller.


Small update:

Working on adding HQX scaling (2x, 3x, and 4x). I have the guts of the code written for it, just need to calculate the tables and then I get to test it out.
/* this is a comment */

User avatar
game-tech.us
Formerly akaviolence
Posts: 157
Joined: Thu Oct 22, 2009 10:21 am
Location: Central Indiana

Re: Hi-Def NES HDMI Adapter for the NES

Post by game-tech.us » Tue Nov 18, 2014 8:09 pm


User avatar
RETROGAMING-MODS
Posts: 2
Joined: Sat Oct 25, 2014 2:47 pm
Location: USA

Re: Hi-Def NES HDMI Adapter for the NES

Post by RETROGAMING-MODS » Tue Nov 18, 2014 10:50 pm

I'm looking forward to this being ready awesome work. I will be offering installation service's for this kit
once its ready.

Be sure to visit my website. http://www.retrogaming-mods.com/

User avatar
kevtris
Posts: 504
Joined: Sat Oct 29, 2005 2:09 am
Location: Indianapolis
Contact:

Re: Hi-Def NES HDMI Adapter for the NES

Post by kevtris » Wed Nov 19, 2014 11:44 pm

I got the HQ2X/3X/4X scaling working now and made an example video of the HQ3X at 720p. I cannot record 1080p unfortunately so I can't capture the 4X one in video.

https://www.youtube.com/watch?v=B_v5vvh2h0A

There's no audio because I needed the room for the scaler. Because space constraints have been hit, I am going to stuff another board with a bigger part that fortunately has the same pinout, hopefully alleviating my space issues.

With this bigger part, I should be able to get VRC7 in there too. (VRC7 is around 1300 LEs, while the HQX scaler is 2230 and the 65C02 core is 1320).
/* this is a comment */

User avatar
oRBIT2002
Posts: 625
Joined: Sun Mar 19, 2006 3:06 am
Location: Gothenburg/Sweden

Re: Hi-Def NES HDMI Adapter for the NES

Post by oRBIT2002 » Thu Nov 20, 2014 12:57 pm

Impressive work, however I'd like to see picture-degrading filters (the way emulators do it) to actually get worse picture quality to get that old-tv look. :) Is it possible?

User avatar
rainwarrior
Posts: 7897
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Hi-Def NES HDMI Adapter for the NES

Post by rainwarrior » Thu Nov 20, 2014 1:06 pm

Even though I'd never use a HQ filter like that (pixels forever!!!), I am still salivating at the idea of getting clean 60 fps picture out of my NES...

lidnariq
Posts: 9871
Joined: Sun Apr 13, 2008 11:12 am
Location: Seattle

Re: Hi-Def NES HDMI Adapter for the NES

Post by lidnariq » Thu Nov 20, 2014 1:14 pm

kevtris wrote:65C02 core
Any potential problems there with unofficial instructions?

User avatar
kevtris
Posts: 504
Joined: Sat Oct 29, 2005 2:09 am
Location: Indianapolis
Contact:

Re: Hi-Def NES HDMI Adapter for the NES

Post by kevtris » Thu Nov 20, 2014 3:19 pm

lidnariq wrote:
kevtris wrote:65C02 core
Any potential problems there with unofficial instructions?
no, this is my "hypervisor" CPU that sits on the FPGA. it does not run the game code, it only runs my code that sits on the FPGA itself. this CPU runs the menu and hardware initialization and such. The NES CPU still is running the actual game code.
/* this is a comment */

MP2E
Posts: 30
Joined: Tue Sep 30, 2014 12:39 am

Re: Hi-Def NES HDMI Adapter for the NES

Post by MP2E » Thu Nov 20, 2014 5:12 pm

kevtris wrote: Since the two are interlocked, there's no tearing or frame duplication or removal. Anything that gets dropped or modified after this point will solidly be your TV/monitor's fault. The HDMI generated by the board is fully standard complaint 60.00fps video and does not have its timing modified in any way. The NES is very very slightly underclocked to do this, around 0.15%. This is small enough that it isn't humanly detectible.
Very interesting! Does under clocking cause any games to break? Also, do you think this will break sync with TAS videos, if the inputs were to be played back on an HDMI modded NES?

User avatar
kevtris
Posts: 504
Joined: Sat Oct 29, 2005 2:09 am
Location: Indianapolis
Contact:

Re: Hi-Def NES HDMI Adapter for the NES

Post by kevtris » Thu Nov 20, 2014 5:29 pm

MP2E wrote:
kevtris wrote: Since the two are interlocked, there's no tearing or frame duplication or removal. Anything that gets dropped or modified after this point will solidly be your TV/monitor's fault. The HDMI generated by the board is fully standard complaint 60.00fps video and does not have its timing modified in any way. The NES is very very slightly underclocked to do this, around 0.15%. This is small enough that it isn't humanly detectible.
Very interesting! Does under clocking cause any games to break? Also, do you think this will break sync with TAS videos, if the inputs were to be played back on an HDMI modded NES?
nope, both CPU and PPU are clocked the same so no games should break, and TAS videos should play back too without desynch if it works on an unmodified NES without desynching.
/* this is a comment */

User avatar
MottZilla
Posts: 2834
Joined: Wed Dec 06, 2006 8:18 pm

Re: Hi-Def NES HDMI Adapter for the NES

Post by MottZilla » Thu Nov 20, 2014 8:40 pm

If you have "HQ3X", why not a simple scanline filter?

I never understood the appeal of these smoothing filters like in ZSNES the "eagle engine" or "super sai engine". It looks terrible. The only filter I've found that makes games look a bit nicer is a scanline filter. Either 100% dark lines or something like 50% or 25% darkening lines.

tepples
Posts: 22162
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Hi-Def NES HDMI Adapter for the NES

Post by tepples » Thu Nov 20, 2014 8:42 pm

Kev told #nesdev that he's already going to have to move up to a bigger FPGA for hq3x/hq4x. I don't know whether a good scanlines filter will fit.

User avatar
kevtris
Posts: 504
Joined: Sat Oct 29, 2005 2:09 am
Location: Indianapolis
Contact:

Re: Hi-Def NES HDMI Adapter for the NES

Post by kevtris » Thu Nov 20, 2014 9:34 pm

Yes, I am working on getting scanlines in there. I just have to finish scalers first, so I can get to the next thing. Contrary to popular belief, yes indeed there will be scanlines. hehe.

Tonight so far, I got the three HQX scalers working, and implemented scale2x and scale3x using the HQX "engine" so those take up literally no resources now. the HQX scaler also performs nearest neighbor and I am going to coax it into doing some interpolation.

While working on HQX, I found a cute little thing, where I can plug the HQX mask into the video directly. it ended up looking really cool so I think I will leave it in as "x-ray mode" or something.

http://blog.kevtris.org/blogfiles/hdmi/ ... mario1.JPG

http://blog.kevtris.org/blogfiles/hdmi/ ... mario2.JPG

Hopefully tonight the scalers will be done and I will get scanlines working.
/* this is a comment */

mankeli
Posts: 10
Joined: Sat Dec 15, 2007 6:16 am

Re: Hi-Def NES HDMI Adapter for the NES

Post by mankeli » Fri Nov 21, 2014 3:23 pm

PLEASE include copynes. The usefulness of this kit would go off the scale. :beer:
So now the question is survival. is this the end of technological man?

Post Reply