Package se.sics.mspsim.core

Examples of se.sics.mspsim.core.IOPort


//        if (flashFile != null) {
//            setFlash(new FileM25P80(cpu, flashFile));
//        }
        ds2411 = new DS2411(cpu);

        IOPort port1 = cpu.getIOUnit(IOPort.class, "P1");
        port1.addPortListener(this);
        ds2411.setDataPort(port1, DS2411_DATA_PIN);

        IOPort port2 = cpu.getIOUnit(IOPort.class, "P2");
        port2.addPortListener(this);
        cpu.getIOUnit(IOPort.class, "P3").addPortListener(this);
        cpu.getIOUnit(IOPort.class, "P4").addPortListener(this);
        cpu.getIOUnit(IOPort.class, "P5").addPortListener(this);
        cpu.getIOUnit(IOPort.class, "P8").addPortListener(this);
View Full Code Here


        /* usciA1 handles interrupts for both usciA1 and B1 */
        cpu.setIORange(0x06, 2, usciA1);

        // Add port 1,2 with interrupt capability!
        // IOPorts will add themselves to the CPU
        IOPort last = null;
        ioUnits.add(last = IOPort.parseIOPort(cpu, 18, portConfig[0], last));
        ioUnits.add(last = IOPort.parseIOPort(cpu, 19, portConfig[1], last));

        for (int i = 2; i < portConfig.length; i++) {
            ioUnits.add(last = IOPort.parseIOPort(cpu, 0, portConfig[i], last));
View Full Code Here

            /* setup 0 - 1f as IO addresses */
            cpu.setIORange(uartConfig[i].offset, 0x20, usci);
//            System.out.println("Adding IOUnit USCI: " + usci.getName());
            ioUnits.add(usci);
        }
        IOPort last = null;
        ioUnits.add(last = IOPort.parseIOPort(cpu, 47, portConfig[0], last));
        ioUnits.add(last = IOPort.parseIOPort(cpu, 42, portConfig[1], last));
       
        for (int i = 2; i < portConfig.length; i++) {
            ioUnits.add(last = IOPort.parseIOPort(cpu, 0, portConfig[i], last));
View Full Code Here

        ioUnits.add(dma);
       
        // Add port 1,2 with interrupt capability!
        // IOPorts will add themselves to the CPU
        ioUnits.add(new IOPort(cpu, 1, 4, cpu.memory, 0x20));
        ioUnits.add(new IOPort(cpu, 2, 1, cpu.memory, 0x28));

        // Add port 3,4 & 5,6
        for (int i = 0, n = 2; i < n; i++) {
            ioUnits.add(new IOPort(cpu, (3 + i), 0, cpu.memory, 0x18 + i * 4));
            ioUnits.add(new IOPort(cpu, (5 + i), 0, cpu.memory, 0x30 + i * 4));
        }

        ADC12 adc12 = new ADC12(cpu);
        ioUnits.add(adc12);
        cpu.setIORange(0x080, 16, adc12);
View Full Code Here

TOP

Related Classes of se.sics.mspsim.core.IOPort

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.