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 Reply Children
  • There are two main elements to the INTSIO examples:

    1. Handling the UART hardware & interrupts;

    2. Handling the circular buffers.

    Obviously, the handling of the UART hardware & interrupts is specific to the 8051 UART and cannot be used on the C16x.
    You will need to re-write this part for your particular processor and/or UART - see your Data Sheet.

    However, the handling of the circular buffers is perfectly generic 'C' - so you can use this bit on other processors and/or other UARTs.

    In fact, I have done exactly that to drive "external" UARTs implemented in the programmable logic of Triscend E5 (RIP) devices.

  • There seems to be some confusion here. EA is the 'Enable All interrupts' bit on 8051. It has notthing to do with the EA I/O pin of the C166.

    For 166 we provide interrrupt driven serial I/O in the Keil\C166\Examples\Traffic folder.
    There is another interrupt driver I/O routine
    in the Getting Started User's Guide (GS166.PDF), Using On-Chip Peripherals, Serial Interface.

    It looks like these days users expect examples for all kind of peripherals in all kind of processors. Keep in mind that we are supporting 700+ devices which would required about 5.000 example projects.