Docsity

Procedure for Programming the EEPROM for 8086 Minimum-Mode Project | EE 4178, Study Guides, Projects, Research of Electrical and Electronics Engineering

Toggle sidebar
bg1
Microprocessor Lab
Procedure for Programming the EPROM’s
For the 8086 Minimum-Mode Project
To demonstrate the minimum 8086-based board working, you will have to run the similar
program that you wrote and demonstrated on the SDK-86 in the previous lab assignment.
The program was to read data from switches and then display the data on the LED’s,
rotating the display every second. Minor modifications need to be made to the previous
program to run it on the project board. The following are the required modifications:
1. The address for the 8255 ports will be corresponding to the addressing logic used
in your design. For proper address, refer to your address-decoding logic for the
8255 chip.
2. Change the previous program. Have the following format:
.MODEL SMALL
.CODE
ORG 0000H
START:
; Your original program
ORG 0FF0H
JMP FAR PTR START
END START
This way the system will load your program at the proper address when reset.
Save your program with an .asm extension.
3. Assemble the program in the previous section using Turbo Assembler. Turbo
Assembler can be found in the following locations:
Microprocessor lab - C:\MICROLAB\tasm31
It is recommended that you copy Turbo Assembler into your working directory,
where your program is stored. Use the following command to assemble your
program:
Tasm -l (filename).asm, (filename).obj, (filename).lst
Where (filename) is your filename whatever you name, but has to be eight
characters.
4. The program must be linked using Turbo linker. Give the following command to
generate the executable binary:
tlink (filename).obj, (filename).rom
Don’t give .com or .exe extension to the output file. This is for being able to write
the program into the ROM chip.
5. The next step is to create the configuration file for the LOCATE program, which
will generate the code for the chip-writing utility. LOCATE will modify your
program binary so that it will be mapped appropriately to the ROM for your
project. The following text must be put into a file with the filename
(filename).cfg.
pf3
pf4
pf5

Partial preview of the text

Download Procedure for Programming the EEPROM for 8086 Minimum-Mode Project | EE 4178 and more Study Guides, Projects, Research Electrical and Electronics Engineering in PDF only on Docsity!

Microprocessor Lab Procedure for Programming the EPROM’s For the 8086 Minimum-Mode Project To demonstrate the minimum 8086-based board working, you will have to run the similar program that you wrote and demonstrated on the SDK-86 in the previous lab assignment. The program was to read data from switches and then display the data on the LED’s, rotating the display every second. Minor modifications need to be made to the previous program to run it on the project board. The following are the required modifications:

  1. The address for the 8255 ports will be corresponding to the addressing logic used in your design. For proper address, refer to your address-decoding logic for the 8255 chip.
  2. Change the previous program. Have the following format: .MODEL SMALL .CODE ORG 0000H START: ; Your original program ORG 0FF0H JMP FAR PTR START END START This way the system will load your program at the proper address when reset. Save your program with an .asm extension.
  3. Assemble the program in the previous section using Turbo Assembler. Turbo Assembler can be found in the following locations: Microprocessor lab - C:\MICROLAB\tasm It is recommended that you copy Turbo Assembler into your working directory, where your program is stored. Use the following command to assemble your program: Tasm -l (filename).asm, (filename).obj, (filename).lst Where (filename) is your filename whatever you name, but has to be eight characters.
  4. The program must be linked using Turbo linker. Give the following command to generate the executable binary: tlink (filename).obj, (filename).rom Don’t give .com or .exe extension to the output file. This is for being able to write the program into the ROM chip.
  5. The next step is to create the configuration file for the LOCATE program, which will generate the code for the chip-writing utility. LOCATE will modify your program binary so that it will be mapped appropriately to the ROM for your project. The following text must be put into a file with the filename (filename).cfg.

hexfile intel absfile axe listfile segments map 0xff000 to 0xfffff as rdonly cputype i class DATA = 0x class CODE = 0xff output CODE

  1. The next step is to generate the code of your program using LOCATE. The LOCATE program can be found in the following locations: Microprocessor lab - C:\MICROLAB\Locate Switch to the directory above and generate the code with the following command: Locate -Hi your path (filename) .rom where {your path} is the drive and the directory of your (filename).
  2. After performing all the steps, you should have the following files that have your name with the following extensions: .asm, .obj, .axe, .lst, .cfg, .hex, .map, .rom, .loc
  3. Your program is now ready to be placed on your EPROM’s. This is done by MCT chip programmer, which is connected to each computer in the Microprocessor Lab. To start the utility program, either double click on the “Top Max” icon.
  4. Once the Top Max window is opened check if it has loaded the file of INTEL 2716 , if it has not(or to be sure) go to the "Device" option of the main menu and use "Select" option.
  1. In Gang Split option select"1Gang" and "Even" for even address programming.
  2. Make sure that for loading the Program keep the Buffer Start and End addresses are the same as shown in the figure below.
  1. For “Auto Inc” option keep the keep the start and end address as shown in the figure below.
  2. Click on "File" of the main menu and select "Load" to load the Hex file of your program into the Programmers Buffer.
  3. To verify go to "Buffer" of the main menu and click on the "Edit Buffer" and check if the program code bytes are on the correct address.(starting from 0f000)
  4. Close the window and select the “Program” button to start programming.
  5. Similarly select “Odd” for odd address programming and follow the above (Step No.17 & 18) procedure.
  6. If you don’t receive any error, you have successfully loaded your program to the EPROMs. If you get errors, first check if your EPROM is blank then exchange your EPROM at the electronics shop. Also check with the TA if you have further problems.
  7. To make sure the program code bytes of the Programmed EPROMs are valid, perform a “Read” operation by first clearing off the contents of the buffer.