1 2 3 4 5 ... 10

SPI Bus: Theory and Implementation

SPI stands for “Serial to Peripheral Interface”, and it is a hardware and firmware communications protocol developed by Motorola and later adopted by everybody. The SPI Bus is used only on the PCB. I am certain some of you will ask: “Why is the SPI Bus used only on the PCB? What prevents us from using it outside the PCB area?” The SPI Bus was specially designed to exchange data between various 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 outside 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 usually needed to communicate, efficiently, with field devices located outside 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 picture of the SPI Bus, but rest assured you do not need one: the SPI Bus is so simple that you will understand everything in words.

The next question is: “Why is this SPI Bus particularly useful?” Besides from exchanging data between various 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 certain many doubt my words. Let’s explain this.

The SPI Bus contains three lines, and they can be on any general I/O controller pins. These Bus lines are: Clock, Data-In, and Data-Out. In addition, each IC connected to the SPI Bus needs an individual 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 device 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 beauty 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 particular aspect of the SPI protocol is particularly well suited for microcontroller-to-microcontroller communications.

Now, we have seen a small 8 pins microcontroller can control 4 devices (ICs) using 7 pins. Taking into account one device 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 device 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 require only 4 microcontroller pins to make them work; the Enable line is common to all of them. Next, we can use each device 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 always take into account I/O field devices don’t necessarily need speeds of, say 1000 ON/OFF activations per second each, simply 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 maintain 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 management 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 efficient I/O lines on a small 8 pins controller.

Further from this general presentation of the SPI Bus, you should be aware almost all ICs implement the SPI protocol in a particular way. For detailed and practical applications I suggest you visit my home site at Corollary Theorems. There you are going to discover 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 interested too much about using them. What I do, I always 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 really simple–trust me with this one!

Samsung ML-3312ND Monochrome Printer

Samsung ML-3312ND Monochrome Printer Review


Click To Buy Best Price from Amazon

Product Feature

  • Increase productivity in your office.
  • With a print speed of 33ppm
  • It’s smaller than most monochrome laser printers on the market

Product Overview

This printing powerhouse will increase productivity in your office. With a print speed of 33ppm, the power of a 600MHz Dual Core processor and expandable memory of up to 384MB, you’ll get more done in less time

Read More …


Related Products

Read More »

Waste and Sustainability – Biodegradable and Non-Biodegradable Materials

Rubbish, garbage, trash, junk, litter, refuse; we throw stuff out every day and nearly every aspect of our modern life creates some form of waste. We throw waste in the bin and we wash waste products down our drains when bathing and cleaning. But, we live on a finite planet and all the waste we are creating is having a very real and negative impact on the Earth.

Our waste can be recognised as either biodegradable or non-biodegradable and this can be a useful distinction when we consider our product choices and our waste disposal.

Biodegradable Materials

Biodegradable matter is generally material from an organic origin that when disposed of will decompose by a natural process. This means it will breakdown and decay into simpler forms of matter.

The process of decomposition is essential within the natural environment for new growth and development of living organisms; it is the way nature is able to recycle the finite matter of the living world. When organic matter breaks down it returns energy and materials used by nature to generate more energy and organic materials. This is the process by which the planet is able to sustain life.

Biodegradable matter is any food scraps, garden waste, or materials or products made from plant or animal derived substances or artificial/man-made materials that are similar enough to organic matter and thus can still be broken down by a natural process.

Non-biodegradable Materials

Non-biodegradable material is in-organic or man-made matter that will not decompose. Any material that is non-biodegradable does not decay or breakdown into simpler forms of matter.

This means that when disposed of by us, nature cannot reuse these materials to fuel the cycle of life and it will remain as pollution in the environment. It also means, all the resources and energy used to make the material in the first place, are trapped within the waste. Because nature cannot breakdown the material; the matter and energy cannot be reclaimed and reused by the environment to generate more organic matter and energy.

Relying on non-biodegradable materials and ingredients is an unsustainable and polluting practice. It traps resources and energy that can not be re-claimed in materials that cannot be broken down. Resulting in masses of polluting substances and rubbish that cannot every truly be digested by the planet.

Fortunately we are able to recycle some non-biodegradable waste. Meaning the materials can be reused to make new products and materials. This saves natural resources and reduces the impact of the vast amounts of in-organic waste ending up as landfill and pollution throughout the world.

Where does our waste go?

Our waste can end up in a number of places; landfill and incineration, recycle centres, sanitary sewers or septic tanks, as compost or as litter and pollution in both our natural environment and urban towns and cities. In order to reduce the negative environmental impact of our waste we need to consider where and how we dispose of things.

When we clean our homes and ourselves the products we use end up as waste washed down the drains and into sewers or septic tanks. Sewerage waste is treated which changes most of that waste to carbon dioxide and water with some minerals, waste elements and non-biodegradable materials left over. The treated water is then pumped back into a river or ocean. This means that the non-biodegradable matter in the products we use may eventually end up as pollution in our waterways.

A great deal of our household and commercial waste ends up in landfill sites which are large holes in the ground filled with all kinds of rubbish. Or in certain areas where there is no space for landfill waste is burned, both practices are damaging to the environment. Luckily we are able to reduce the amount of waste that ends up as landfill or in incinerators by recycling and composting.

But this means we must dispose of our rubbish thoughtfully. When recyclable or biodegradable materials are not disposed of properly and end up as landfill or incinerated they contribute to the mass of non-biodegradable and polluting waste; their potentially reusable and sustainable properties lost.

It is important to try and ensure any biodegradable waste is composted and does not end up in landfill. Landfill is designed to inhibit the natural process of decay as uncontrolled decomposing waste can contribute to ground water pollution, methane gas emission and unstable sub-soil conditions. It has been discovered that many organic materials are “mummified” by the conditions of landfill and do not appear to breakdown or only at a vastly diminished rate.

How can we improve our methods of waste disposal?

In order to ensure biodegradable waste is disposed of correctly when need to support composting through our local councils or within our own homes and communities
Create your own compost bin, one that suits your space, needs and lifestyle; we can all compost our kitchen and garden scraps and even newspaper and paper products
Avoid throwing away any materials that can be reused or recycled. Insure where available they end up in a recycling facility
Look for cleaning products that clearly state certified biodegradable ingredients
Look for certified biodegradable alternatives to disposable plastic items
Reduce consumption of non-biodegradable products by limiting our dependency on plastics, including disposable goods, shopping bags, packaging and wrapping
Purchase goods made from recyclable materials and always reduce, reuse and recycle

By moving away from a reliance non-biodegradable ingredients and materials we can reduce the amount of toxic waste clogging up the Earth. If we consider the impact of our product choices and dispose of our waste with a little more care, we can improve the sustainability and limit the negative effects of our modern disposable lifestyle.

Samsung Monochrome Multifunction Laser Printer (SCX-4623F)

Samsung Monochrome Multifunction Laser Printer (SCX-4623F) Review


Click To Buy Best Price from Amazon

Product Feature

  • Productivity is the key to running any office or professional workgroup. And the SCX-4623F was designed to deliver exactly that
  • The control panel has an easy to use Blue Compass Navigation button that allows you to navigate menu options quickly and easily.
  • Fax to PC means you can send and receive faxes at your PC, and all fax information is stored and managed at your desk
  • The Print Screen function is a quick and easy way to print the contents of your computer screen, and it’s especially useful if you handle a high volume of web-based information
  • High-speed USB 2.0 connectivity

Product Overview

With the Samsung SCX-4623F mono laser MFP, you simply press the ESP Easy Screen Print button, and you can print either your entire desktop or just the active window. That’s especially convenient for printing multiple web pages. Samsung’s AnyWeb Print software lets you select, drag and drop content from different web pages into a new page, then print your screen. You also get faxing to and from your PC, print speeds of 23 ppm, 12,000 page monthly duty cycle and a sleek, compact design.

Read More …


Related Products

Read More »

Printer Ink

Printer inks are inks manufactured especially for printers. The quality of printing depends on the type of ink, type of paper and the type of printer used. The quality of ink is reflected in the quality of the final product.

Printer ink is made from a combination of dyes or pigments, distilled surfactants, de-ionized water, biocides and fungicides, buffering agents, humectants and resins. These combinations ensure that the ink produced matches the quality specification of OEM ink. Dye or pigment of a particular type and quantity is used, and the surfactant helps in balancing the paper wetting and surface tension. Resins ensure paper adhesions and humectants minimize evaporation.

Printer inks are either dye based or pigment based. Dye based inkjet inks are brighter in color and can produce sharp quality printing. They are stable and can be stored for long periods of time. One of the drawbacks of dye based inkjet inks is that they are slow in penetrating and usually take up to ten seconds for drying. Since the drying time is long they often tend to blur. On the other hand pigment inkjet inks are light, fast, waterproof and fade resistant. They also dry much faster than the dye based ink and are more suited for color ink as they prevent blurring. They also have lower toxicity levels than dye-based ink. One of the major goals of the inkjet ink manufacturers is to develop ink that is durable, fade resistant, and waterproof and has the ability to print on any media.

Printer inks should be checked for compatibility with the cartridge while purchasing as they are not generic and can only be used in the cartridges they are manufactured for.

1 2 3 4 5 ... 10