Introduction The first pattern in this chapter (PORT I / O [page 174]) is concerned with basic soft- ware techniques for interacting with the digital ports on an 8051 microcontroller. The second pattern (PORT HEADER [page 184]) encapsulates a design guideline that helps you cope with the fact that many different components in a larger […]
Continue reading…
Posts by Farahat
A rudimentary software architecture:Project header
Project header 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 How do you group together all the information relating to the hardware platform used in your project? Background — Solution As we […]
Continue reading…
A rudimentary software architecture
Introduction In the first pattern in this chapter we consider the minimum software environment required to create a typical embedded application: this environment is called SUPER LOOP [page 162]. Please note that we will use Super Loop in this book primarily to allow us to illus- trate some introductory software patterns in Chapters 10, 11 […]
Continue reading…
SSR DRIVER (AC)
SSR DRIVER (AC) Context ● You are developing an embedded application using one or more members of the 8051 family of microcontrollers. ● You are designing an appropriate hardware foundation for your application. Problem How do you ‘switch on’ or ‘switch off’ a piece of mains-powered (AC) electrical equip- ment using a microcontroller? Background We […]
Continue reading…
EMR DRIVER
EMR DRIVER Context ● You are developing an embedded application using one or more members of the 8051 family of microcontrollers. ● You are designing an appropriate hardware foundation for your application. Problem How do you ‘switch on’ or ‘switch off’ a piece of high-power (AC) electrical equipment using a microcontroller? Solution We consider in […]
Continue reading…
MOSFET DRIVER
MOSFET DRIVER Context ● You are developing an embedded application using one or more members of the 8051 family of microcontrollers. ● You are designing an appropriate hardware foundation for your application. Problem How do you control a DC load with high current requirements (up to around 100A) using a microcontroller? Background In BJT DRIVER […]
Continue reading…
IC DRIVER
IC DRIVER Context ● You are developing an embedded application using one or more members of the 8051 family of microcontrollers. ● You are designing an appropriate hardware foundation for your application. Problem How do you safely control multiple, medium-power DC loads from a single micro- controller port? Background See IC BUFFER [page 118] for […]
Continue reading…
SSR DRIVER (DC)
SSR DRIVER (DC) Context ● You are developing an embedded application using one or more members of the 8051 family of microcontrollers. ● You are designing an appropriate hardware foundation for your application. Problem How do you ‘switch on’ or ‘switch off’ a piece of high-voltage (DC) electrical equip- ment using a microcontroller? Background A […]
Continue reading…
Driving AC loads
Introduction Consider some problems: ● A pump in a domestic or industrial heating system must be switched on and off at preset times. ● A series of high-intensity lights around the perimeter of a factory complex are to be activated in the event of a security incident. ● An electrical heater in a brewery must […]
Continue reading…
BJT DRIVER
BJT DRIVER Context ● You are developing an embedded application using one or more members of the 8051 family of microcontrollers. ● You are designing an appropriate hardware foundation for your application. Problem How do you drive DC loads requiring currents of up to around 2A, from the port of an 8051 microcontroller? Background A […]
Continue reading…