Nbtvhead.jpg (56817 bytes)

Image Preparation
and
EPROM File Software

Once you have completed construction of the ICH NBTV ROMScanner, you have two additional tasks to complete before you can put it into service:

Each of these tasks will be described in the sections which follow.

IMAGE PREPARATION

The first task is accomplished with your standard photo-editing software, but there are some very specific things you need to keep in mind as you proceed. As noted in the ICH (Chapter 3), pictures have to meet three very specific requirements if the software is going to be able to format them properly for EPROM programming:

The first two requirements present no real problem since 8-bit grayscale is the standard for grayscale images in all photo-editing programs of which I am aware and all such programs can handle BMP images. Virtually any color image can be converted to grayscale so that is not an issue. What you do need to keep in mind is the need to optimize the contrast and dynamic range of the image. NBTV pictures are subject to a major loss in resolution compared to the original BMP image:

Bmp-nbtv.gif (67155 bytes)

The BMP source picture for this mug-shot is shown on the left while the 32-line image derived from it appears on the right. Given the resolution losses, it is critical that all other aspects of the picture are of the highest possible quality to get the most out of the image format. Given the limited resolution available, composition and content are also critical. Whatever the primary object in the picture, it should fill most of the available image area. It is also desirable to keep the pictures simple. Human faces are excellent subjects.

Image size can be a bit tricky, but simply because there is no margin for error. All image editing software includes an image sizing function, but if the original picture has slightly odd dimensions, the resize operation may yield a picture that is just slightly off - 159 x 240 instead of 160 x 240. The easy way to avoid size errors is to use a 160 x 240 gray-scale image blank, created with your software's NEW image option. I keep suck a blank image on file so it can be used at any time. You can then use your PASTE or PASTE FROM editing function to paste the desired picture into the blank. Move and/or resize the pasted image in relation to the blank until you get the desired composition.
 

At this point you can perform any necessary image processing functions (contrast, brightness, etc.). Now, the final detail! Prior to saving the image for the final time, you must rotate it 90 degrees to the right using the editing functions of your software:

If this is the original image......
 

It should look like this prior to your final save.

OK, to sum it up:

If you would like a final verification that you've done everything right in creating your files, check the file size using Windows Explorer or DOS. Each file should be exactly 39,478 bytes in size. If not, there is a problem with the size or format of the image that you need to locate and correct.

FORMAT SOFTWARE

The final task that has to be performed is to format sets of four images into binary files (.BIN) that can be programmed into the EPROMS you want to use with the NBTV ROMScanner. This job is performed by a utility program, nbtvrom.exe, available for free download from this website. Proceed as indicated in the sections which follow.

Preparing a Directory

Everything is just a bit easier if you dedicate a directory to be used for the image files and the formatting software. If you prefer using Windows:

If you are comfortable working in DOS, start DOS and:
At this point you are now ready to download and install the software.
 
 

Software Download and Install
 


NBTVROM VERSION 1.5

Click on the link shown above to download the formatting software. When your system prompts you as to where to copy the file, select your new romscan directory.

The file is a self-extracting ZIP file and final installation is easily accomplished with Windows Explorer:

The file will then self-extract. When the extraction is complete, an examination of the ROMSCAN directory (using Windows Explorer or DOS) should show the following files: Eventually you will want to copy your various BMP image files into the directory, but, to keep things simple, let's try out the formatting program using the files that came as part of the package.

Booting and Using nbtvrom.exe

The program will run as a DOS-window under Windows, so the easiest way to boot the program is:
 


You can increase the size of the window by clicking on the maximize button in the upper right. I may be old-fashioned, but I like to operate the program full-screen in the DOS environment. Most versions of Windows will let you reboot under MS DOS and that's what I prefer doing. To run the program from DOS:

The Latest version of the software should force full-screen display, even when running WindowsXP. Check the program first to see if it does this. Once the program is running, the options are quite easy and the nbtvrom.exe program will perform the following functions from the Main Menu:


I trust you will find the program useful and I welcome any comments or suggestions.


EPROM Programming


Programming an EPROM (also known as "burning", "blasting", or "blowing") requires a piece of programming hardware, most commonly operating in conjunction with your PC, that will execute the precisely-timed instructions and apply just the right voltages at different times, to properly program the chip. My old programmer dated from the early 80s, would operate only under DOS, and was manufactured by a company long out-of-business. I decided to get something new that was at least nominally Windows-compatible. Since this is a specialized market, many of the available models are fairly pricey and many require additional adapters (more money) to program specific devices.

The least expensive devices tend to use the PC parallel port for interfacing, although newer units are available (at somewhat higher cost) that use a USB interface. Some kits are available for basic programmers that are in the $80.00 price range, but I wanted a fully-assembled unit with robust software. The one I settled on the the  Pocket Programmer 2  from Transtronics in Lawrence, KS. This system costs ~$150 and includes the programmer hardware, the cable to connect to the PC parallel port, a wall-mounted 9V power supply, and software for DOS and all versions of WindowsTM. I have been using mine under Windows 98 and it has worked flawlessly.

It makes no sense to purchase such a programmer just to prepare a few chips for the ROMScanner, so you may want to find someone locally who can do it for you. Be aware that we are usually talking about hard-core computer and embedded controller types, not your local Windows or Mac "expert".  Chris Lewis , the wbmaster of the NBTVA web site in the UK is offering to provide a programming service and I would be willing to do the same for experimenters on this side of the pond. Contact either of us by e-mail for more information.
 


Ralph E. Taggart (taggart@msu.edu)




































Ralph E. Taggart (gyrobee@aol.com)