Академический Документы
Профессиональный Документы
Культура Документы
com
BIHE university
Introduction to Computing
Chapter 1
AVR Microcontroller and Embedded System Using Assembly and C © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
Introduction to Computing
www. Micro Digital Ed. com
BIHE university
• The fundamentals is numbering and coding system are presented, and overview of
logic gates is given.
• base 2 (binary)
• base 16 (Hexadecimal)
AVR Microcontroller and Embedded System Using Assembly and C © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
• ASCII
• The discussion so far has revolved around the representation of number systems.
Because all information in the computer must be represented by 0s and 1s, binary
patterns must be assigned to letters and other characters. In the 1960s a standard
representation called ASCII (American Standard Code for Information Interchange)
was established. The ASCII (pronounced "ask-E") code assigns binary patterns from
numbers 0 to 9, all letters of the English alphabet, both uppercase (capital) and lower
case and many control codes and punctuation marks.
• The ASCII system uses a total of 7 bits to represent each code. For example, 100
0001 is assigned to upper case letter "A" and 110 0001 is for lowercase "a". Often a
zero is placed in the most significant bit position to make it an 8-bit code.
AVR Microcontroller and Embedded System Using Assembly and C © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
• Decoders
• Flip flops
AVR Microcontroller and Embedded System Using Assembly and C © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C 6 © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C 7 © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C 8 © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C 9 © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C 10 © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C 11 © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C 12 © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C 13 © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
Memory characteristics
www. Micro Digital Ed. com
BIHE university
• Capacity
– The number of bits that a memory can store.
• E.g. 128 Kbits, 256 Mbits
• Organization
4 bits
– How the locations are organized 0
128 locations
1
• E.g. a 128 x 4 memory has 128 locations, 2
4 bits each
…
• Access time
127
AVR Microcontroller and Embedded System Using Assembly and C © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
Semiconductor memories
www. Micro Digital Ed. com
BIHE university
• ROM RAM •
– Mask ROM )Static RAM( SRAM –
– PROM (Programmable )Dynamic RAM( DRAM –
ROM) )Nonvolatile RAM( NV-RAM –
– EPROM (Erasable
PROM)
– EEPROM (Electronic
Erasable PROM)
– Flash EPROM
AVR Microcontroller and Embedded System Using Assembly and C © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
Memory Address Decoding
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
• Example of the shown figure shows that A15 - A12 must be 0011 in order to select the
chip. This results in the assignment of addresses 3000H to 3FFFH to this memory chip
• 74LS138 Decoder
AVR Microcontroller and Embedded System Using Assembly and C © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C 20 © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C 21 © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C 22 © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C 23 © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C 24 © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C 25 © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C 26 © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C 27 © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C 28 © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
AVR Microcontroller and Embedded System Using Assembly and C © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.
www. Micro Digital Ed. com
BIHE university
END
AVR Microcontroller and Embedded System Using Assembly and C © 2011 Pearson Higher Education,
Mazidi, Naimi, and Naimi Upper Saddle River, NJ 07458. • All Rights Reserved.