We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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 */
error C67: 'EA': undefined identifier
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;
EA=0;
"EA is a VTREG ( a virtual CPU register for simulator purposes). It stands for External Access." That may well be true for the C16x tools, but the OP was actually talking about the 8051 serial IO example code: http://www.keil.com/download/docs/intsio2.zip.asp In this context, EA is the "Enable All" global interrupt enable flag. As previously mentioned, expecting 8051-specific low-level code like this to even compile for a non-8051 target is folly! Unfortunately, there doesn't seem to be a corresponding C16x example in the C16x downloads area. :-( http://www.keil.com/download/list/c166.htm