When c8051f02x 's I/O ports is configured to opendrain ,can see the outputting value in the peripherals I/O_ports when debugging?
no.
I'm not sure what device erik is talking about but on my uv3 ver 7.50a and SiLabs driver SiC8051F_uv2 ver 1.6, I can see the PORTs toggle in the peripherals dialog window in simulation mode. I do not have an -020 target board but I tried the same on an -005 target and I can see the PORTs toggle in the OD configuration. One thing very confusing about SiLabs driver is they consider Open Drain as an INPUT and Totem-pole as an OUTPUT. This totally defeats Keil's Port/Pin definitions in the peripherals dialog. If you attempt to externally toggle a PIN on Totem Pole defined pin, the driver will complain that you have tried to change an output pin. Don't try to get info from SiLbs Tech support. They don't know an open drain from a flying kite.
sorry,I didn't descript the question clearly. When running the command :
P7 = 0X55;
XBYTE[0X8000] = 0X55;//EMIF is configure to P4~P7
I believe you are missing some info about SFR ports. Port 7 is SFR 0x96 which can only be accessed via a direct instruction. The XBYTE macro is used to address XDATA memory via a pointer. There is no indirect access to the SFR memory area. Suggest that you review memory areas idata,data, code and SFR for more info.
The question is ,can it display when running the command : XBYTE[0X8000] = 0X55;//EMIF is configure to P4~P7 I guess you are asking: "can I see the data being written to 0x8000 in P7, the answer is no. See "the bible" chapter 3. Erik