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
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.