of 43
8/12/2019 microprosseor 8051
1/43
Microcontroller Interfacing
8/12/2019 microprosseor 8051
2/43
Output Levels
8/12/2019 microprosseor 8051
3/43
Interpretation of TimingDiagrams
8/12/2019 microprosseor 8051
4/43
Analog to Digital Converters Sampling rate (MHZ)
Sampling resolution (bits)
Interface type (parallel or serial)
Reference voltage (volt) Input range (unipolar or bipolar)
Sample-and-hold circuit usually inside chip
Note: Analog antialiasing filter must be in place
8/12/2019 microprosseor 8051
5/43
ADC Technologies
8/12/2019 microprosseor 8051
6/43
Parallel Interface Example
8/12/2019 microprosseor 8051
7/43
Serial Interface Example
8/12/2019 microprosseor 8051
8/43
Memory
External interface possible in most cases
Nonvolatile EPROM
Voltile RAM (SRAM, DRAM, etc.)
Nonvolatile EEPROM Nonvolatile FLASH
Refer to timing diagram for each to know howto interface with microcontroller
8/12/2019 microprosseor 8051
9/43
Temperature Sensors
Thermistors (PTC, NTC)
8/12/2019 microprosseor 8051
10/43
Optical Sensors
Switches
Isolators
8/12/2019 microprosseor 8051
11/43
Magnetic Sensors
LVDT
Hall effect
8/12/2019 microprosseor 8051
12/43
Mechanical Switch
8/12/2019 microprosseor 8051
13/43
Motor Interfacing
Stepper motor
8/12/2019 microprosseor 8051
14/43
Motors DC motor
8/12/2019 microprosseor 8051
15/43
Motors Brushless DC
8/12/2019 microprosseor 8051
16/43
TRIACs
8/12/2019 microprosseor 8051
17/43
Microcontrollers Which microcontroller to use?
8051
PIC
ARM
AD
TI
8/12/2019 microprosseor 8051
18/43
8051 Summary Selection of microcontroller
Definition of pins Block diagram
Instruction set
Memory map I/O ports
Timers
Interrupts
UART
Practical development
8/12/2019 microprosseor 8051
19/43
Microcontroller Architecture
8/12/2019 microprosseor 8051
20/43
Microcontroller Selection
8/12/2019 microprosseor 8051
21/43
Pin Diagram
8/12/2019 microprosseor 8051
22/43
8/12/2019 microprosseor 8051
23/43
8/12/2019 microprosseor 8051
24/43
8/12/2019 microprosseor 8051
25/43
8/12/2019 microprosseor 8051
26/43
8/12/2019 microprosseor 8051
27/43
8/12/2019 microprosseor 8051
28/43
8/12/2019 microprosseor 8051
29/43
8/12/2019 microprosseor 8051
30/43
8/12/2019 microprosseor 8051
31/43
8/12/2019 microprosseor 8051
32/43
Addressing Modes
8/12/2019 microprosseor 8051
33/43
Addressing Modes
8/12/2019 microprosseor 8051
34/43
8/12/2019 microprosseor 8051
35/43
8/12/2019 microprosseor 8051
36/43
8/12/2019 microprosseor 8051
37/43
I/O Ports
8/12/2019 microprosseor 8051
38/43
8/12/2019 microprosseor 8051
39/43
8/12/2019 microprosseor 8051
40/43
UART
8/12/2019 microprosseor 8051
41/43
Practical Development
8/12/2019 microprosseor 8051
42/43
Standard Software Development
Process1. Create or edit an ASCII text file containing the human readable
source code, also known as the program instructions.
2. Translate the source code to machine-readable binary instructioncode using a language translator. This is accomplished using anassembler or compiler.
3. Load the program memory with the binary instruction code into
the processors program memory chip. For the SDK, the programis downloaded into program memory on the SDK.
4. Execute the program to test it and find program errors. For theSDK, this debugging process is facilitated using a specialprogram (debugger or monitor) resident on the SDK.
5. Once the problem is located, the source code is corrected byrepeating this process until all errors are corrected.
8/12/2019 microprosseor 8051
43/43