The idea of disabling interrupts

-----

For the OP: if figuring out a clever way to mux your LEDs is the point of the project, continue as you are. If the point is to program a system to accept input and generate output, you might consider one of the serial graphics LCD displays such as those on sale at

formatting link

Mark Borgerson

Reply to
Mark Borgerson
Loading thread data ...

Yes, BUT while the reader is emptying the buffer, the writer is still filling it. So the system has to run on that buffer continuously until it is totally empty. Until then the condition for buffer change doesn't occur. When it does, why change buffers, when the current one is already empty?

--
 Chuck F (cbfalconer at maineline dot net)
   
   Try the download section.
Reply to
CBFalconer

This Doublebuffering scheme to ping-pong between two receive buffers is really wonderful, That is, Receive data into Buffer A and operate on Buffer B. Then, receive on Buffer B and operate on Buffer A.

Karthik Balaguru

Reply to
karthikbalaguru

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.