Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Help with building an 8088

  • 17-04-2008 3:23pm
    #1
    Registered Users, Registered Users 2 Posts: 1,507 ✭✭✭


    Hello all!

    I've been set an assignment recently to build a working 8088 system. Now I've spent a few hours reading up on the subject and I think I have most of it down.

    I'm having a few problems with the 16-key keyboard/display interface unit and the programmable I/O interface.
    For the keyboard I'm using a 4x4 key matrix, the output of which is connected to a 8279. The SL pins of this are connected to 2 3-8 decoders ( one of which is fed into the matrix ( pins 0 - 3 ), the other being fed into the LED digit display )

    The interface I'm using is the 8255, I've configured this to be :

    PA - Input
    PB - Output
    PC - Output

    We've been asked for a 8/in 16/out interface in the brief

    My question is to connect these two devices together, am I right in thinking that I will use the output of the 8279 ( PINS OUTB0-3 and OUTA0-3 ) to be the input of the 8255 ( Pins PA0-7 )??

    Am I right in thinking that PB and PC ( outputs ) are both connected to the address bus of the CPU.

    Also, are the A0 - A7 pins of the 8255 connected to the input of PA0-7?

    The NAND gate bit still confuses me though...


    Thanks a lot for any help!!


Comments

  • Closed Accounts Posts: 5,064 ✭✭✭Gurgle


    DamienH wrote: »
    've been set an assignment recently to build a working 8088 system. Now I've spent a few hours reading up on the subject and I think I have most of it down.

    I'm having a few problems with the 16-key keyboard/display interface unit and the programmable I/O interface.
    For the keyboard I'm using a 4x4 key matrix, the output of which is connected to a 8279. The SL pins of this are connected to 2 3-8 decoders ( one of which is fed into the matrix ( pins 0 - 3 ), the other being fed into the LED digit display )

    The interface I'm using is the 8255, I've configured this to be :

    PA - Input
    PB - Output
    PC - Output

    We've been asked for a 8/in 16/out interface in the brief

    My question is to connect these two devices together, am I right in thinking that I will use the output of the 8279 ( PINS OUTB0-3 and OUTA0-3 ) to be the input of the 8255 ( Pins PA0-7 )??

    Am I right in thinking that PB and PC ( outputs ) are both connected to the address bus of the CPU.

    Also, are the A0 - A7 pins of the 8255 connected to the input of PA0-7?

    The NAND gate bit still confuses me though...
    Not really sure what you're trying to do here, but:

    A0-A7 would typically be address pins, usually connected from the master to slave, e.g. from micro to memory.

    PA0-PA7 would be GPIOs i.e. port pins, used for whatever you want.

    The 8255 is for connecting peripherals to a CPU, i.e. it connects to the CPU via the ISA bus, and is connected to peripherals with its port pins, configured as you want.

    The 8279 is a purpose built device for scanning and reading a key matrix: i.e. it detects what keys are pressed and outputs the relevant code.
    You can connect its outputs into any of Ports A, B and C of the 8255.

    The NAND Gate is specific to whatever application that picture comes from. It goes straight into the CS pin, so apparently thats how the designer wanted to control comms with the chip in his application.

    If you're just going to have the 8088 and the 8255 on the ISA bus, you can hardwire CS to ground.


  • Registered Users, Registered Users 2 Posts: 1,507 ✭✭✭DamienH


    Hey thanks for the reply, I've made a little picture to try and detail what I want to do. I've left out the 74318 connections for the control lines of the Ram and EPROM, and the memory itself for simplification. I know it's a rough diagram but I hope it's okay.

    The brief for the assignment was:

    48K Bytes of EPROM for programme memory (choose the components that will give you the exact size of memory).

    12K Bytes of RAM for Data memory (choose the components that will give you the exact size of memory).

    A Keyboard/Display Interface unit (should support an 8-digit LED display and a keyboard of 16 key switches).

    A programmable I/O Port (8 I/P lines and 16 O/P lines, mode 0), Give the right code that will initialise the chip to the required mode.

    As you can see I'm still stumped as to the A0 and A1 :(
    For the EPROM and RAM I plan to use combinations of 16k, 8k and 4k.as said he wants exact values


  • Registered Users, Registered Users 2 Posts: 1,507 ✭✭✭DamienH


    Forgot to upload


  • Closed Accounts Posts: 5,064 ✭✭✭Gurgle


    Heres the datasheet for the 8255:

    http://www.jjmb.nl/datasheets/peripheral/8255.pdf

    A0, A1:
    These input signals, in conjunction RD and WR, control the selection of one of the three ports or the control word registers.
    So presumably they should be connected to the 8088, as its going to control the whole thing.


Advertisement