Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 20:29 20 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : TxD RxD Buffer

Author Message
BishopXXL
Newbie

Joined: 13/01/2019
Location: Germany
Posts: 39
Posted: 03:28pm 07 Apr 2022
Copy link to clipboard 
Print this post

Hi all,
Is there a txd register in the pico(mite) / I'm sure there is! which I can read in basic so I know when the byte left the buffer.

BTW, this is about switching from RE/DE to RS485 communication.



Thx @ all

BishopXXL




SetPin GP1, GP0, Com1
SetPin GP2, Dout
Open "Com1:115200,1024" As #8

Pin(gp2) = 0

For i = 65 To 68
  Pin(gp2) = 1      ' RED
  Print #8, Chr$(i) ' YELLOW
  Pin(gp2) = 0      ' RED
Next i

Edited 2022-04-08 01:34 by BishopXXL
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10620
Posted: 03:32pm 07 Apr 2022
Copy link to clipboard 
Print this post

Check the LOF function
 
BishopXXL
Newbie

Joined: 13/01/2019
Location: Germany
Posts: 39
Posted: 03:37pm 07 Apr 2022
Copy link to clipboard 
Print this post

THANKS !!!

Ashes on my head, yeah that had asked before SOOOORY  

BishopXXL
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10620
Posted: 03:39pm 07 Apr 2022
Copy link to clipboard 
Print this post

Its not quite perfect as it will only show when the last character has been moved from the buffer into the UART shift register so depending on application you may then need to wait for the bits to clock out which can be calculated from the baudrate
 
BishopXXL
Newbie

Joined: 13/01/2019
Location: Germany
Posts: 39
Posted: 04:25pm 07 Apr 2022
Copy link to clipboard 
Print this post

Hi matherp,
yes thanks for the tip, that's what I thought when I saw it.

Thank you for your GREAT work on the Picomite !!!!!! Iloveit

BishopXXL


 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025