Esempio n. 1
0
 public Timer0(Register.RegisterFileMap _registerFileMap, PIC _pic)
 {
     tmr0Register = _registerFileMap.getAdapter(Register.RegisterConstants.TMR0_ADDRESS);
     optionRegister = _registerFileMap.getAdapter(Register.RegisterConstants.OPTION_REG_BANK1_ADDRESS);
     registerFileMap = _registerFileMap;
     internalCounter = 0;
     timerHandler = new Timer0Handler(_registerFileMap, this, _pic);
 }
        internal PortSerialization(Register.RegisterFileMap registerFileMap)
        {
            this.portA = registerFileMap.getAdapter(Register.RegisterConstants.PORTA_ADDRESS);
            this.portB = registerFileMap.getAdapter(Register.RegisterConstants.PORTB_ADDRESS);

            this.trisA = registerFileMap.getAdapter(Register.RegisterConstants.TRISA_BANK1_ADDRESS);
            this.trisB = registerFileMap.getAdapter(Register.RegisterConstants.TRISB_BANK1_ADDRESS);

            comPort.DataReceived += comPort_DataReceived;
        }