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, According to the AT89C51RE2 datasheet, the uC have 2 UART. but in the uVision V3.33 debugger peripherals i dont see that i have 2 UART to work with.
why ?
thanks in advance nir
Did you check the documentation to see if uVision claims to support 2 USRTs for this device?
sure i did this is from the datasheet:
"Two Full Duplex Enhanced UART with Dedicated Internal Baud Rate Generator"
"In addition, the AT89C51RE2 has a Programmable Counter Array, an XRAM of 8192 bytes, a Hardware Watchdog Timer, SPI and Keyboard, two serial channels that facilitates multiprocessor communication (EUART), a speed improvement mechanism (X2 mode) and an extended stack mode that allows the stack to be extended in the lower 256 bytes of XRAM"
I asked if you have checked whether the uVision Debugger claims to support this feature of this chip.
sorry for that,
no it does't support it, may i ask way ? or how it could affect me in case i want to simulate both UART simultaneously ?
"or how it could affect me in case i want to simulate both UART simultaneously ?"
It would affect you badly.
But if you have real hardware, or expect real hardware reasonably soon, then it may not matter much.
Most problems are best tested on real hardware since the simulation is always just an approximation.
And many of the hardest bugs where a debugger is truly useful can be hunted on a subset of the code in the simulator.
In the end, the simulator is best for testing code lines, while real hardware is best for testing systems.
thanks for your help, it has been very useful.
Nir
"may i ask why ?"
You would have to ask Keil that!
But, if you look at the list of "supported" devices, you will see that it's huge - and, therefore, it would be an absolutely monumental task to provide detailed simulation for every single detail of every single feature of every single chip...!
"how it could affect me in case i want to simulate both UART simultaneously ?"
If it doesn't support simulating the 2nd UART then, obviously, you just can't do it!
However, uVision does provide simulation for the 2nd UART on some other chips - so you might find one that is close enough for your purposes...
Alternatively, you may be able to do it yourself by accessing the SFRs directly - see: http://www.keil.com/support/man/docs/uv3/uv3_debug_functions.htm www.keil.com/.../uv3_df_signalfunctions.htm
Or, as Per says, just do it on real hardware!