Tuesday, April 3, 2012

Spi Bus: theory and Implementation

Spi stands for "Serial to Peripheral Interface", and it is a hardware and firmware communications protocol advanced by Motorola and later adopted by everybody. The Spi Bus is used only on the Pcb. I am definite some of you will ask: "Why is the Spi Bus used only on the Pcb? What prevents us from using it exterior the Pcb area?" The Spi Bus was specially designed to change data in the middle of varied Ic chips, at very high speeds; say, at 180 Mhz or even more. Due to this high-speed aspect, the Bus lines cannot be too long, because their reactance increases too much, and the Bus becomes unusable. However, if you want, you could use the Spi Bus exterior the Pcb at low speeds, but this is not quite practical--the Spi Bus requires 3 or 4 communications lines, which are a bit too many, when compared to 1 or 2 lines commonly needed to communicate, efficiently, with field devices located exterior the Pcb.

Anyway, on the Pcb the Spi Bus is very good, because we can practically attach to the Bus as many Ics (or devices) as we want. Please excuse me for not providing a photograph of the Spi Bus, but rest assured you do not need one: the Spi Bus is so easy that you will understand all things in words.

Lcd Monitors

The next demand is: "Why is this Spi Bus particularly useful?" also from exchanging data in the middle of varied Ic chips, the Spi Bus is a method of multiplying microcontroller's pins. In other words, if you have a tiny 8 pins microcontroller, you could control with that little monster few hundreds of digital Inputs and Outputs. This is impressive, and I am definite many doubt my words. Let's illustrate this.

Spi Bus: theory and Implementation

The Spi Bus contains three lines, and they can be on any normal I/O controller pins. These Bus lines are: Clock, Data-In, and Data-Out. In addition, each Ic linked to the Spi Bus needs an personel Enable line. Things work like this: suppose we have four devices, A, B, C, and D; all of them are wired to the Spi Bus lines, and the Bus itself is wired to seven controller pins--this is 3 Bus lines plus the 4 Enable ones. When we want to send a message to expedient C, we enable its Enable line first, then we send the message serially, one bit at a time. In the same time devices A, B, and D do exactly nothing, because they are not enabled.

The charm with the Spi Bus is, it is Synchronous, meaning, when the controller sends the message to one Ic, it is also able to receive data from that Ic, in the same time. This singular aspect of the Spi protocol is particularly well remarkable for microcontroller-to-microcontroller communications.

Now, we have seen a small 8 pins microcontroller can control 4 devices (Ics) using 7 pins. Taking into catalogue one expedient of type A, B, C, or D could have eight or even sixteen I/O ports, this is still far from the hundreds Inputs and Outputs I promised to you. The next beautiful thing about the Spi Bus is: one expedient Ic can be serialized with many more of the same type! For example, we could have B1, B2, B3, B4, B5, and so on. All Ics of type B# are serialized together, and they need only 4 microcontroller pins to make them work; the Enable line is common to all of them. Next, we can use each expedient of type A, B, C, and D as a group of tens similar Ics.

The enabling speed of each I/O port on the Spi Bus it is slower, when multiplying microcontroller's pins, but all the time take into catalogue I/O field devices don't necessarily need speeds of, say 1000 On/Off activations per second each, plainly because most of them cannot handle that speed. However, there are few, very smart firmware techniques like the "barrel-shift" type of functions, which allows us to articulate high-speed messaging on the Spi Bus, even if we have hundreds of I/Os. In the same time, the "barrel-shift" functions allow for better time administration inside microcontroller, so that it has more time to execute other tasks--makes sense to me! To conclude, I believe it is clear now we can, indeed, build hundreds of effective I/O lines on a small 8 pins controller.

Further from this normal presentation of the Spi Bus, you should be aware practically all Ics implement the Spi protocol in a singular way. For detailed and practical applications I propose you visit my home site at follow Theorems. There you are going to search for a good tutorial book about working with hardware, firmware--including the "barrel-shift" type of functions--and software design, in general, and about few nice and practical implementations of the Spi Bus in particular.

Many microcontrollers have built-in Spi Bus hardware modules, but I was never curious too much about using them. What I do, I all the time design--on the Pcb and for one microcontroller--one, two or more custom Spi Busses, because my custom implementations are far more flexible. Besides, practical implementation of a custom Spi Bus, both in hardware and in firmware, is precisely simple--trust me with this one!

Spi Bus: theory and Implementation

Lcd Tv Backlight replacement

You just turned on your Tv and suddenly the picture disappears just a second after it appeared, but you're hearing the television schedule straight through the speakers. If this occurs, your Lcd Tv's backlight has gone out. It is like a blown light bulb when you walk into a room, flip the switch and it suddenly blows.

And now you are wondering what to do next.

Lcd Monitors

One of the most tasteless issues responsible for Lcd Tv failure is backlight failure, but this is not a fancy for you to replace your Lcd Tv. As a matter of fact, you can replace the backlight and do so affordably.

Lcd Tv Backlight replacement

One way you can accomplish Lcd Tv backlight change is to take the task on yourself or engage the services of a pro to do it for you, but there are times in which you can troubleshoot the issue on your own.

Troubleshooting

When the backlight goes, you can take on the task of replacing the inverter board if you can find the exact part. You can palpate the constructor for this. If you cannot collect the part, you may need to replace the entire Lcd panel.

But you may notice that there may be a note on the back of your Tv that says "no serviceable parts." This doesn't mean that it can't be fixed. This simply means you may have mystery finding the parts. Nevertheless, the job is normally as straightforward as removing the dead cathode and replacing it with a new inverter and tube. This is no ifs ands or buts not as dangerous as occasion up non-Lcd Tvs and trying to replace the parts.

As for what you spend in the task, it is inherent for Lcd Tv backlight change to take about thirty minutes of your time and cost you as wee as . Online outlets, school surplus, and market selling new and/or used change parts are places you can buy what you need.

Take note that you may need to desolder and solder wires depending on the model of your television.

Professional

Being that the job of Lcd Tv backlight change can take less than 30 minutes of your life and cost you very little, it can be difficult inspecting a professional. However, not everybody is comfortable with taking their costly Lcd Tv apart and desoldering, soldering, and putting in a change part.

A pro is able to find the part, take care of the installation, test it to make sure it is working, make it right if the Tv is not working, and can offer some degree of a warrant if the backlight fails within a inescapable number of time. However, such a service does cost money and you must collate the cost of such a service to you buying a new television. If you find that buying a new television would be an option, then it would be worth you attempting the Lcd Tv backlight change on your own. If replacing the backlight on your own does not work, the number of money you are out of is small and you can go send with buying a new Lcd Tv.

Nevertheless, it may be worth attempting the change task on your own.

Lcd Tv Backlight replacement