





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!






1
2
3
4
Custom single-purpose processors Standard Designed for a unique task“Off-the-shelf single-purpose processors” -- pre-designed for a common task ^ Conventional ^ a.k.a., peripherals, serial transmission (e.g. MAX 232)analog/digital conversions (8-bit, 10-bit, 12-bitThese chips will need to interface to general-purpose pins solutions …) Programmable solutions ^ Multi-chip solutionsMuch of these special purpose hardware is in FPGAHowever, some still required (a.k.a. what we do in lab) special chips, e.g. ADC
7
Cascaded countersPrescaler^ We set terminal count to desired interval^ ^ Number of clock cycles = Desired time interval / Clock period ^ PLL^ Divides clockIncreases range, decreases resolution
8
Watchdog timer^ Measures the time a^ or audio stimulus^ person to respond to a visual Must reset timer every X time unit, else timer generates a signalCommon use: detect failure, self-reset
9
Serial Transmission Using UART: Universal Asynchronous UARTs
10
following the number of bits per characterthe speed or baud rate
The most common configuration is Eight bit characters, with one stop bit and no parity bitThus 10 bits are used to send a single character 8N
13
microcontroller^8 DB7^ RS controller LCD–DB0^ communications^ bus^ #define^ { }^ while^ usleep^ LCD->^ LCD_write_data^ write_data((100);^ LCD->^ read_data^ =^ data;(data)^ &^ LCD_BUSY^ );^ \\
I I S S S R// DD///=CCL == 1 === (^10) w 1 01 d cci tcsuuhisuhrr (^) prissdflsooitsao rrtpyr (^) omm lsm arhooyoigvv (^) ifveesthessh (^) tm irfleiteg fntht (^) t CODEDDNNFFSLL (^) ==== == (^1010 10 5521) xx (^84) rr 17 - -oo 0 bbdwwii ttdosotsts R/L = 0 shift to left
RS 0000 R/ 0000 W DB 00007 D 0000 B 6 D 0000 B 5 D 0000 B 4 D 0001 B 3 D (^001) D B 2 D (^01) IC/B (^) D 1 D (^1) *SB B 0 DCRS sOepeleNetestsauc/c (^) iOrrrcsnfiuiFp (^) seart (^) ssFilcolo unondrr (^) ofism stao ptlrooll ahv (^) dsyoei (^) h,mds (^) iprifetler (^) ateduycir(ntsDipo (^) l)cnau, (^) y racsnuodrrs/ (^) oohrrome (^001 000 00 00 01) W (^1) D (^) LRI (^) TE DSN/AC (^) T (^) A RF /L ** ** OMS dWeiNsotrsp/viO (^) lteiaenF (^) ysct DFuelri^ rna(sfCatoeacs)r, (^) e,^ a adannanddtd (^) a^ s b (^) chllehiifnantrsgka (^) t^ dhcpi,tose (^) rspni tlufaoimoynnbt^ e(Br o)f
14
N=4, M=
15
Resolution?
16
Digital-to-analog conversion using successive approximation Given an analog input signal whose voltage should range from 0 to 15 volts, and an 8-bit digital encoding, calculate the correct encoding for 5 volts. Then trace the successive-approximation approach to find the correct encoding. 5/15 = d= 85 d/(2 (^8) -1) Successive-approximation method 0 1 0 0 0 0 0 0
½ V½ V(7.5 + 0) = 3.75 voltsmin(7.5 + 3.75) = 5.63 voltsmax = 3.75 volts.= 5.63 volts^00 01 00 00 00 00 00
½ V(5.63 + 3.75) = 4.69 voltsmin = 4.69 volts. 0 1 0 1 0 0 0 0
½ V ½ V(5.63 + 4.69) = 5.16 voltsmax(5.16 + 4.69) = 4.93 voltsmin (^) = 4.93 volts.= 5.16 volts. (^00 11 00 11 00 01 00 ) ½ V ½(5.16 + 4.93) = 5.05 voltsmax(5.05 + 4.93) = 4.99 volts = 5.05 volts. 00 11 00 11 00 11 00 01