Maybe I am missing something in the documentation, but I cannot find where to configure a second serial port and assign it as a VTREG S1IN and S1OUT. I am able to debug the first serial port using SIN and SOUT. Any help is appreciated
Ok, found it, I have to write my own device dll to support the extra serial port. I am using the ST uPSD 3234A. It has 2 serial ports but only one is supported under debugging sessions with the S8051.DLL
Hi! I have a trouble in RS232 serial programming,that is I send data to terminal through Com1,the terminal should feed back data to PC though Com1,but no data in receiving buffer at all in fact. I can make sure Sending data has no problem,but the key is I don't receive data. I want to know in RS232 communication,the relationship between thread of sending data and thread receiving data? Thanks very much! Best regard! huangjianhua 2003/4/17
Hi there, I have the same big problem. When I using COM1 for simulation with uPSD, no data is comming back to SIN. I use "Advanced Port Monitor" and see that the device that is linked to COM1 is responding... I think that uVision has a firewall for incomming data :)) Maybe someone has an answer... Marius Cerlinca P.S. If I use a script like the one that follows, is working, but I want real answer from the device I want to connect to uPSD. define int seri_index; signal void seri_start (float baudrate) { seri_index = 0; for (seri_index = 0; seri_index<6 ; seri_index++) { SIN = serial_input_buffer[seri_index]; swatch (1.0 / ((baudrate/10.0) + 20.0)); } } define button "Send Data" , "seri_start(1200)"
Exactly which uPSD device? I show that we support both serial ports on some of them. Jon
Hi again, I use DK3200 with uPSD 3234A. The device I try to connect over simulated serial port is Feig M02 RFI reader. Like I said already, the data is going out from uVision to M02, M02 is responding, but nothing comes back to uVision simulator... Marius Cerlinca P.S. Any help is useful...
and again.. I'm speaking about first serial port.
"the data is going out from uVision to M02, M02 is responding, but nothing comes back to uVision simulator..." Remember that the serial port receiver needs to be enabled. Have you enabled the serial port receiver (REN bit in SCON)? http://www.8052.com/tutser.phtml#Serial%20Mode
yap, just to be sure, I tried right now in COmmand Window, REN = 1. It is possible the problem to be serial port config? MODE COM1 38400, 2, 8, 1
"It is possible the problem to be serial port config? MODE COM1 38400, 2, 8, 1" Is that what your external device is using? Have you tried just using hypoterminal?
>>Is that what your external device is using? Yes. >>Have you tried just using hypoterminal? I tried a much better one: "Terminal v1.9b" But remember I want the data from the device, not from a terminal... Anyway, I'm gona to try with the kit and let the simulator for other purposes.
"But remember I want the data from the device, not from a terminal..." Of course, but first you need to verify that the connection between the device & the PC is actually working. So, using your "Terminal v1.9b," can you send data to the device and receive data from the device using the same cable and COM port that you will use with the simulator?
Hi again & again :) >So, using your "Terminal v1.9b," can you send >data to the device and receive data from the >device using the same cable and COM port that >you will use with the simulator? Yes. Also, i made a program for windows command prompt to test that the M02 is working first. With the simulator data from outside does not arrive in uVision (and I see is comming) ... An example: I send from the simulator: #06#FF#52#00#0F#6E the external device is responding (I see this with Advanced Serial Port, Spy Mode): #06#00#52#00#FC#A8 , but nothing comes back in the simulator.