Of course. If you are so focussed on the problem you not see the wood for 
the trees.
I've copied the serieal_read routine to my program and adapted it a bit.
The interrupt pin is now de serial_sw_Rx with interrupt on neg edge 
(startbit)
Works like a charm

Thanks for your help

Regards
Chris

Op maandag 4 november 2019 17:31:23 UTC+1 schreef Kiste:
>
> 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.
>
>
> Greets
> Kiste
>
> Gesendet von Yahoo Mail auf Android 
> <https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers&af_wl=ym&af_sub1=Internal&af_sub2=Global_YGrowth&af_sub3=EmailSignature>
>
> Am Mo., Nov. 4, 2019 at 13:59 schrieb Chris Peeters
> <[email protected] <javascript:>>:
> 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] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jallib/9f3bd016-d6f7-411e-b034-f42e9a169b4f%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jallib/9f3bd016-d6f7-411e-b034-f42e9a169b4f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>

-- 
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/a5a44d96-a0f0-4399-8748-68121afde55f%40googlegroups.com.

Reply via email to