Keil™, An ARM® Company

Technical Support

µVISION DEBUGGER: SIMULATING ASC1 OF INFINEON XC16X DEVICES


Information in this article applies to:

  • µVision Version 2.34

QUESTION

My application uses the second serial interface (ASC1) of the Infineon XC167. When I run my program in the simulator, all the SFR's (baudrate, serial interrupt flags, and so on) have the correct values. However, I do not see the output in the serial window. I want to use the serial window as a terminal attached to ASC1. How can I do this?

ANSWER

By default, ASC0 is attached to Serial Window 1 and ASC1 is attached to no window. To view the serial I/O for ARC1, you must use the ASSIGN command in the µVision debugger to direct the ASC1 communication to Serial Window 2. For example:

ASSIGN channel < inreg > outreg

The ASSIGN command displays and changes the input and output sources for the specified serial channel. For example, to direct ASC1 to Serial Window 2:

ASSIGN WIN2 <S1IN >S1OUT

This sets the channel WIN2 (Serial Window 2) to receive input from inreg S1IN (ASC1) and send output to outreg S1OUT (ASC1).

  • Valid channels are WIN,WIN2,COM1,COM2,COM3, and COM4.
  • Valid inreg values are S0IN and S1IN.
  • Valid outreg values are S0OUT or S1OUT.

Note:

  • Before you use the serial interface of the PC (COMx) you must initialize the interface with the µVision debugger MODE command.
  • The ASSIGN command may be executed automatically when the µVision debugger is started if it is specified in a simulator initialization file (µVision dialog Options for Target -> Debug ).
  • The serial window 2 does not have a corresponding button in the µVision toolbar but it can be opened with the pull-down menu View -> Serial Window #2.

MORE INFORMATION

  • Refer to the Getting Started User's Guide. 

SEE ALSO

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Friday, July 22, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure