Using the ports

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…

 

A rudimentary software architecture:Super loop

Super loop Context ● You are developing an embedded application using one or more members of the 8051 family of microcontroller. ● You are designing an appropriate software foundation for your application. Problem What is the minimum software environment you need to create an embedded C program? Background — Solution One key difference between embedded […]
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…

 

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…

 

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…

 

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…

 

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…

 

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…

 

NAKED LED

NAKED LED 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 What is the cheapest way of driving a small number of LEDs with a microcontroller? Background Even in the most basic application, […]
Continue reading…