UART Status abfragen

  • 1
  • 2
  • Page 2 of 2
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: UART Status abfragen

 · 
Posted: 05.01.2014 - 20:56  ·  #9
Hallo Thorsten,

der RxBuffer der seriellen Schnittstellen ist auch mit
Function PipeStat(RxBufferX) : byte;
abfragbar.

rolf
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1409
Registered: 03 / 2005
Subject:

Re: UART Status abfragen

 · 
Posted: 06.01.2014 - 09:57  ·  #10
Hello Rolf/Thorsten

Perhaps I am missing something, or something is lost in translation, but surely the first ASM function will illuminate the LED whenever the driver is in receive mode, which will be quite a lot of the time, but the second will illuminate the LED only when there is data pending in the receive buffer, which will be much less, possibly never (depending on how the rest of the program works).
  • 1
  • 2
  • Page 2 of 2
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   50   64 · Page-Gen-Time: 0.028777s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI