I have set up the second serial port thanks the the link - http://www.keil.com/support/docs/2601.htm.
Now I'm facing a new problem. I am able to view the output only on Debug/Simulator mode but when I connect the ULINK driver for xc161 I don't see ouput on Serial window.
May I know what settings need to be made for viewing the output with the ULINK Driver connected.
Make sure that ASC1 is enabled in the startup code START_V2.A66: Peripheral Configuration -> Definitions for System Configuration Register SYSCON3 -> Disable UART ASC1 [ ]
Since I am able to view the Output in Simulation mode it wouldn't be a problem with the Startup code would it be?
The bits are enabled.
I do not know if these bits are evaluated during simulation. If you say "the bits are enabled", does this mean that the check box for "Disable UART ASC1" is set? You must clear the box to enable the UART.
I am testing the demo code that is available at http://www.keil.com/support/docs/2601.htm and have checked that the startup file enables all the on-chip peripherals. What check box are you talking about?
... and have checked that the startup file enables all the on-chip peripherals Then I cannot think about what could be wrong. What check box are you talking about? The one which shows up (in the path I listed before) if you open the startup file with the configuration wizard.
Should I specifically write a .ini script with the statement ASSIGN WIN2 <S1IN >S1OUT for the display?
I need one more information if you have any idea about this. Can the ASC1 UART be used in bootstrap mode to download Flash programming tools or is this possible only by ASC0?