Switch interfaces:Switch interface (software)

Switch interface (software) 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 the port pin of an 8051 microcontroller […]
Continue reading…

 

Switch interfaces:On-off switch

On–off switch 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 obtain the behaviour illustrated in Figure 19.9 from a […]
Continue reading…

 

Switch interfaces:Multi-state switch

Multi-state switch 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 obtain the behaviour illustrated in Figure 19.13 from a […]
Continue reading…

 

Keypad interfaces:Keypad interface

Keypad interface 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 a small keypad, similar to that illustrated in […]
Continue reading…

 

Switch interfaces:Switch interface (hardware)

Switch interface (hardware) 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 create a very robust switch interface for use […]
Continue reading…

 

Switch interfaces

Introduction Reading the status of one or more push-button switches is a very common require- ment in embedded applications. The four patterns in this chapter describe different solutions to this problem. The patterns are as follows: ● SWITCH INTERF ACE ( SOFTW ARE ) [page 399] Uses a minimum of external hardware. Reads a single […]
Continue reading…

 

Example: An output-only library for the 8051/8052 (generic)

Example: An output-only library for the 8051/8052 (generic) This example again illustrates how to link a Standard 8051 device to a PC. Unlike the first example, the software is ‘write only’: data are transferred from the microcontroller to the PC but not vice versa. To illustrate this, the software displays elapsed time on the PC […]
Continue reading…

 

Communicating with PCs via RS-232:Pc link (rs-232)

Pc link (rs-232) 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 link your embedded application to a desktop (or […]
Continue reading…

 

Task-oriented design:Multi-state task

Multi–state task 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. Problem How do you replace multiple tasks in an application with a single task that performs different activities depending on the current state […]
Continue reading…

 

Delays:Hardware delay

Hardware delay Context ● You are developing an embedded application using one or more members of the 8051 family of microcontrollers. ● You are designing an appropriate software foundation for your application. Problem You need to wait for a fixed period of time (measured in milliseconds) before taking some action. Background — Solution All members […]
Continue reading…