
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















โ (^) Serial execution of instructions โ (^) Simple, Universal
โ (^) flow of control determined by modifications to program counter โ (^) instruction classes: โ (^) data: move, arithmetic and logical operations โ (^) control: branch, loop, subroutine call โ (^) interface: load, store from external memory
โ (^) Caches โ (^) Branch prediction โ (^) Multiple/OOO issue
โ (^) No cache โ (^) Small memory โ No disks โ (^) 4 bit/8 bit/16 bit โ (^) No FP โ (^) No complicated datapath โ (^) Multicycle instruction interpretation โ Simple/no operating system โ (^) Programs are static
โ (^) 1 MIPS is enough if 1 ms is the time scale
โ (^) must handle a wide ranging variety of applications
โ (^) all devices communicate through memory โ (^) DMA operations between disk and I/O devices โ (^) dual-ported memory (as for display screen) โ (^) oblivious to passage of time (takes all the time it needs)
CP U Memo ry Display (with dual-port video RAM) Dis k I/O (serial line, keyboard, mouse) Netwo rk Interfa ce standard interfaces system bus all the parts around the processor are usually required
Microcontr oller RO M I/O Inter face RA M custo m logic medium- speed interaction s high-speed interaction s low-speed interaction s standard interface any of the parts around the microcontroller are optional
โ (^) if (a & 1)... โ (^) X = 2;
โ (^) Acceleration coded as the duty cycle โ (^) pulse-width/cycle-length
- (^) 20% = - - (^) 80% = + โ (^) cycle time = 10ms
โ (^) Input is low-order bit of variable X โ (^) Assign result to variable Z โ (^) Make up whatever you need
RD WR WAIT ADDR DATA Micro- processor EN IN OUT DATA WR decode r ADDR to environment
โ (^) map register into address space โ (^) decoder need to select register for writing (holds value indefinitely) โ (^) input enable (EN) so that many registers can use the same data bus
โ (^) for common communication protocols โ (^) serial-line protocols most common as they require few pins
โ (^) special registers in memory space for interaction
โ (^) pull external devices on-chip โ (^) must be standard โ (^) eliminate need for shared memory or system bus
โ (^) co-processor to microprocessor โ (^) does not require microprocessor intervention โ in simple case, like a real-time clock โ (^) set timer/read timer โ (^) interrupt generated when expired
โ (^) self reloading timers for regular interrupts โ (^) pre-scaling for measuring larger times โ (^) started by external events
โ (^) record precise time when input event occurred โ (^) to be used in later handling of event
โ (^) set output to happen at a point in the future โ (^) reactive outputs โ set output to happen a pre-defined time after some input โ (^) processor can go on to do other things in the meantime
โ (^) dispense with external memory for instructions
โ (^) very common microcontroller with simple instruction set โ (^) lots of features โ (^) lots of alternatives โ (^) lots of support and resources โ (^) good tools available: we will use the Keil software โ (^) Assembler โ (^) C compiler โ (^) Debugger โ (^) we will use the C compiler mostly โ (^) requires a good understanding of the 8051 architecture
Making-robots-with-arduino.pdf