Using serial peripherals

Using serial peripherals In Part E we consider how two powerful and influential serial communication protocols (‘I2C’ and ‘SPI’) may be utilized in applications with a time-triggered architecture. Use of these protocols has two main advantages: ● They are designed to allow microcontrollers to be linked to a wide range of different peripherals – memory, […]
Continue reading…

 

Example: Displaying elapsed time on a multiplexed (4-digit) LED display

Example: Displaying elapsed time on a multiplexed (4-digit) LED display A common use for LED displays is to display the time. This simple example demon- strates the display of elapsed time on four multiplexed LEDs. The code is written for a standard 8051 (8052) device. The required hardware is illustrated in Figure 21.6. The key […]
Continue reading…

 

Multiplexed LED displays:Mx led display

Introduction Many embedded applications contain user interfaces assembled from multi-segment LED displays. In this chapter, we consider how such displays may be interfaced to the 8051 family of microcontrollers. Mx led display Context ● You are developing an embedded application using one or more members of the 8051 family of microcontrollers. ● The application has […]
Continue reading…

 

Controlling LCD panels:Lcd character panel

Lcd character panel Context ● You are developing an embedded application using one or more members of the 8051 family of microcontrollers. ● The application has a time-triggered architecture, constructed using a scheduler. ● You are creating the user interface for your application. Problem How do you connect an LCD-based ‘character panel’ display to your […]
Continue reading…

 

Controlling LCD panels

Introduction We considered the creation of LED-based user interfaces in Chapter 21. Here we are concerned with the use of liquid crystal displays (LCDs) in such interfaces. Unlike LEDs, LCDs are based on passive display technology: this means that LCDs control the passage of light rather than emitting light. This fact directly contributes to the […]
Continue reading…

 

Keypad interfaces:Hardware resource implications

Hardware resource implications While it does not require on-chip facilities (such as timers etc.), the keypad scanning process imposes both a CPU and memory load. Reliability and safety issues Keypad scanning is a software-based technique, closely related to SWITCH INTERF ACE ( SOFTW ARE ) [page 399]. In a hostile environment, use of a keypad […]
Continue reading…