This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

2 Serial Ports, but only one Serial Window definable

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

Parents
  • 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)"

Reply
  • 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)"

Children