Documente Academic
Documente Profesional
Documente Cultură
8/12/2006
microcontrollers_cres_arc.ppt
Topics To Touch On
History of microcontrollers What are microcontrollers How you can work with microcontrollers Overview of the W8ZPF Voter ID project
8/12/2006
microcontrollers_cres_arc.ppt
History Of Microcontrollers
April of 1972
Intel introduced the world's first single chip microprocessor, the Intel 4004 First 8-bit microprocessor appeared on the market under a name 8008 8080 became available Addressed 64Kb of memory, had 75 instructions, and cost $360
April of 1974
a pivotal event in the history of microprocessors Announced the 6501 and 6502 at $25 each
microcontrollers_cres_arc.ppt 3
8/12/2006
Microprocessor Microcontroller what's the diff? Microprocessors can not stand alone
instruction decoder, ALU, address/data/ctl. busses, timing logic, (CPU) Has no capability to interact with the outside world
Central Processing Unit (CPU) Program memory Random Access Memory (RAM) EEPROM - Electrically Erasable Programmable Read Only Memory A variety of peripheral devices
USARTs, Timer/Counters, ADC, DAC, I/O Ports, CANs, SPIs, etc., etc.
microcontrollers_cres_arc.ppt 4
8/12/2006
They are inexpensive- even in single pieces You can design complex functionality in a small package Microcontrollers can be viewed as a universal building block There are a lot of free tools to work with Microcontrollers And The thing I like the best - Next Slide!
8/12/2006
microcontrollers_cres_arc.ppt
8/12/2006
microcontrollers_cres_arc.ppt
8/12/2006
microcontrollers_cres_arc.ppt
8/12/2006
microcontrollers_cres_arc.ppt
8/12/2006
microcontrollers_cres_arc.ppt
8/12/2006
microcontrollers_cres_arc.ppt
10
You need to think in a new paradigm Start small and learn the basics first You can work with microcontrollers on a couple of levels Walk before you attempt to run
8/12/2006
microcontrollers_cres_arc.ppt
11
8/12/2006
microcontrollers_cres_arc.ppt
12
Based on your goals Availability of free stuff Not a trivial task for the beginner You need a way to load programs
8/12/2006
A real project
What are we trying to accomplish Interface to the repeater system Microcontroller Selection Development Environment Software Design The Final Board (observations)
microcontrollers_cres_arc.ppt 14
8/12/2006
Identify how each receiver participated in relaying signals to the main transmitter during a key down session Accommodate up to 3 receivers in the design Use existing repeater interfaces/signals
8/12/2006
microcontrollers_cres_arc.ppt
15
CD ID (M/R)
CORE LINE
Ignore RX inputs
Active
Idle
1 or 0
Output lines retain previous data until core goes active again
There are 6 output lines 3 -> rx1 - rx3 voted 3-> rx1 - rx3 dominant microcontrollers_cres_arc.ppt 17
8/12/2006
Basic software structure was implemented using both Either would have done the job
8/12/2006
microcontrollers_cres_arc.ppt
18
(initial choice)
MPLAB
Free environment for assembly language Create, Edit, Assemble, Link, Load, & emulate programs I use it on Windows 2K I have used it for several projects works well No limitations on usage
8/12/2006
microcontrollers_cres_arc.ppt
19
ATmega8 microcontroller
(final choice)
Runs on Linux (Unix) & Windows Wanted experience with this environment
Atmega8 is more compiler friendly However, a not significant issue for this project
8/12/2006
microcontrollers_cres_arc.ppt
20
LINUX environment
(FC3 FC5)
Final board
8/12/2006
microcontrollers_cres_arc.ppt
21
8/12/2006
microcontrollers_cres_arc.ppt
22
8/12/2006
microcontrollers_cres_arc.ppt
23
Software is a solution to a problem Must understand the problem first Then think about strategies to solve it
8/12/2006
microcontrollers_cres_arc.ppt
24
Background Processing
Wakes-up foreground
Foreground Processing
New state
8/12/2006
microcontrollers_cres_arc.ppt
26
main.c 155 lines main.h 17 lines init_timer1.c 30 lines init_io.c 103 lines interrupt.c 118 lines Makefile 328 lines
microcontrollers_cres_arc.ppt 27
8/12/2006
USED/AVAILABLE
Text size 1462/8K Bytes (program instructions/tables, etc) Data size 37/512 Bytes (variables) TOTAL 1499 Bytes (5DBh) Used
8/12/2006
microcontrollers_cres_arc.ppt
28
8/12/2006
microcontrollers_cres_arc.ppt
30
THE END !!
8/12/2006
microcontrollers_cres_arc.ppt
31