This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

does the INTSIO.ZIP work with C166?

Hello,

I would like to use the interrupt driven serial I/O. see http://www.keil.com/download/docs/intsio2.zip.asp


but if I use this code I receive following msg:

Code:

 EA=1;                 /* Enable Interrupts */

compiler:

error C67: 'EA': undefined identifier


thank you

matthias

Parents
  • Hi Matthias,

    concerning the EA:

    EA is a VTREG ( a virtual CPU register for simulator purposes).
    It stands for External Access.
    If you write

    EA=1;
    in e.g. simulator.ini file this will instruct the simulator to simulate the behaviour of internal access a memory.
    EA=0;
    means the memory is accessed outside the controller via a bus.
    This, if you need it, you can tell the simulator. But it must be in your *.ini file and, as Mike says (because it is not a instruction of CPU), not inside the C-code.

    Stefan

Reply
  • Hi Matthias,

    concerning the EA:

    EA is a VTREG ( a virtual CPU register for simulator purposes).
    It stands for External Access.
    If you write

    EA=1;
    in e.g. simulator.ini file this will instruct the simulator to simulate the behaviour of internal access a memory.
    EA=0;
    means the memory is accessed outside the controller via a bus.
    This, if you need it, you can tell the simulator. But it must be in your *.ini file and, as Mike says (because it is not a instruction of CPU), not inside the C-code.

    Stefan

Children