Hi! Serial_sw_read is blocking, the function will not return until a byte ist received. Serial_sw_read can only be used alone, you can't do anything else while waiting for a byte.
GreetsKiste Gesendet von Yahoo Mail auf Android Am Mo., Nov. 4, 2019 at 13:59 schrieb Chris Peeters<[email protected]>: Hello all, I'm struggling with the serial software library. My intention is to pass the data on the serial_hw_RX to the serial_sw_TX and the serial_sw_RX to the serial_hw_TX.Just to pass through some data. This block works. if PIR1_RCIF == 1 then serial_hw_read(hwread) delay_10us(1) serial_sw_write(hwread) hwread = 0 end if And this one works: if serial_sw_read(swread) then delay_10us(1) serial_hw_write(swread) swread = 0 end if But not together. Does anyone know what the problem could be ? Thnaks Kind regards Chris Peeters -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/9f3bd016-d6f7-411e-b034-f42e9a169b4f%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/1177207087.1352213.1572885078376%40mail.yahoo.com.
