SlideShare a Scribd company logo
1 of 26
VHDL CODE FOR ADC0804, 4-BIT
MAGNITUDE COMPARATOR AND
PARITY GENERATOR
Presented by:- APARNA
Department of Electronics Engineering
(VLSI & ES)
TOPICS
 ADC0804
 ADC
 FEATURES
 PIN DIAGRAM & DISCRIPTION
 ADC0804 INTERFACE SCHEMATIC & TIMING DIAGRAM
 VHDL CODE & SIMULATION RESULT
 PARITY GENERATOR
 INTRODUCTION
 VHDL CODE & SIMULATION RESULT
 4-BIT MAGNITUDE COMPARATOR
 INTRODUCTION
 VHDL CODE & SIMULATION RESULT
ADC
 Analog-to-digital converter (ADC) is a device which can
convert analogue voltage to digital numbers so that
microcontrollers and microprocessors can handle and process
the data.
 ADC are the most widely used devices for data acquisition.
 ADC has n-bit resolution, where n can be 8, 12, 16 or even 24
bits.
 The higher-resolution ADC provides a smaller step size.
 Step size is the smallest change that can be recognized by ADC
 Vcc is the reference voltage of ADC with n-bit resolution.
 Table : Resolution versus Step Size for ADC (if Vcc = 5V)
1
2 
 n
cc
V
Size
Step
ADC0804 IC
ADC0804
Features
 Single channel ,8-bit parallel ADC module
 Easy to interface with all
Microprocessors or works
Stand alone.
 Differential analog voltage inputs. 0V to 5V analog input
voltage range with single 5V supply.
 On chip Clock available.
 Digital output various from 0 to 255.
 When Vref = 5V, for every 19.60mV of analog value there will
be rise of one bit on digital side (Step size)
 Available in 20-pin PDIP, SOIC packages.
 A common, low-cost ADC, compatible with a wide range of
microprocessors. There are many faster ADCs available with
more resolution, this device is ideal for applications that do
not require a high degree of accuracy.
 ADC0804 requires up to 100 µs to convert an analog input
voltage into a digital output code.
ADC0804 PIN DIAGRAM
PIN DESCRIPTION
Pin No Function Name
1
Activates ADC; Active low ; used if more than 1 ADC module is used.
By default grounded
Chip select
2
Input pin; High to low pulse brings the data from internal registers to
the output pins after conversion
Read
3 Input pin; Low to high pulse is given to start the conversion Write
4 Clock Input pin; to give external clock. Clock IN
5 Output pin; Goes low when conversion is complete Interrupt
6 Analog non-inverting input Vin(+)
7 Analog inverting Input; normally ground Vin(-)
8 Ground(0V) Analog Ground
9 Input pin; sets the reference voltage for analog input Vref/2
10 Ground(0V) Digital Ground
11
8 bit digital output pins
D7
12 D6
13 D5
14 D4
15 D3
16 D2
17 D1
18 D0
19 Used with Clock IN pin when internal clock source is used Clock R
20 Supply voltage; 5V Vcc
TIMING DIAGRAM FOR ADC0804
ADC0804 INTERFACE
INTR/EOC
ADC 8-BIT OUTPUT
ADC0804 FPGA
RD/OE
WR/SC
Analog
input
ADC OUTPUT
(LED)
CLK
VHDL CODE FOR ADC0804
SIMULATION RESULT
PARITY GENERATOR
 A Parity Generator is a Combinational Logic Circuit that
Generates the Parity bit in the Transmitter.
 A Parity bit is used for the Purpose of Detecting Errors during
Transmissions of binary Information.
 It is an Extra bit Included with a binary Message to Make the
Number of 1’s either Odd or Even.
Two Types of Parity
 In Even Parity, the added Parity bit will Make the Total
Number of 1’s an Even Amount.
 In Odd Parity, the added Parity bit will Make the Total
Number of 1’s an Odd Amount.
PARITY GENERATOR TRUTH TABLE
VHDL CODE FOR ODD PARITY
SIMULATION RESULT
4-BIT MAGNITUDE COMPARATOR
 Compare two multi-bit binary numbers
 The comparison of two numbers
outputs: A>B, A=B, A<B
LOGIC USED IN VHDL CODE
in_1=_ _ _ _
in_2=_ _ _ _
‘0’ -> unsigned bit vector
Comp_type
‘1’-> signed bit vector
in_1= 0 _ _ _ in_1= 1 _ _ _
in_2= 0 _ _ _ in_2= 1 _ _ _
in_1= 1 _ _ _ in_1= 0 _ _ _
in_2= 0 _ _ _ in_2= 1 _ _ _
VHDL CODE FOR COMPARATOR
SIMULATION RESULT
THANK YOU

More Related Content

Similar to Vhdl-Code-for-Adc0804-Comparator-and-Parity-Generator.pptx

digital anlage c converter for digital .ppt
digital anlage c converter for digital .pptdigital anlage c converter for digital .ppt
digital anlage c converter for digital .ppt
AbdullahOmar64
 
adcanddac hai kya bhayy me know if-01.pptx
adcanddac hai kya bhayy me know if-01.pptxadcanddac hai kya bhayy me know if-01.pptx
adcanddac hai kya bhayy me know if-01.pptx
shivraj3252
 
digitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdfdigitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdf
satyamsinha37
 
Interfacing technique with 8085- ADC[0808]
Interfacing technique with 8085- ADC[0808]Interfacing technique with 8085- ADC[0808]
Interfacing technique with 8085- ADC[0808]
Guhan k
 

Similar to Vhdl-Code-for-Adc0804-Comparator-and-Parity-Generator.pptx (20)

analog to digital adn digital to analog .ppt
analog to digital adn digital to analog .pptanalog to digital adn digital to analog .ppt
analog to digital adn digital to analog .ppt
 
Analog to digital converter
Analog to digital converterAnalog to digital converter
Analog to digital converter
 
INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
 INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER   INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
INTERFACING ANALAOG TO DIGITAL CONVERTER (ADC0808/09) TO 8051 MICROCONTROLLER
 
digital anlage c converter for digital .ppt
digital anlage c converter for digital .pptdigital anlage c converter for digital .ppt
digital anlage c converter for digital .ppt
 
Lecture 12 (adc) rv01
Lecture 12  (adc) rv01Lecture 12  (adc) rv01
Lecture 12 (adc) rv01
 
adcanddac hai kya bhayy me know if-01.pptx
adcanddac hai kya bhayy me know if-01.pptxadcanddac hai kya bhayy me know if-01.pptx
adcanddac hai kya bhayy me know if-01.pptx
 
Lica 7th chapter slides
Lica 7th chapter slidesLica 7th chapter slides
Lica 7th chapter slides
 
Adc dac converter
Adc dac converterAdc dac converter
Adc dac converter
 
ANALOG TO DIGITAL CONVERTOR
ANALOG TO DIGITAL CONVERTORANALOG TO DIGITAL CONVERTOR
ANALOG TO DIGITAL CONVERTOR
 
5942709.ppt
5942709.ppt5942709.ppt
5942709.ppt
 
digitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdfdigitalvoltmeterusing805112b2-170214173216 (1).pdf
digitalvoltmeterusing805112b2-170214173216 (1).pdf
 
ADC and DAC interfacing.pdf
ADC and DAC interfacing.pdfADC and DAC interfacing.pdf
ADC and DAC interfacing.pdf
 
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLERDIGITAL VOLTMETER USING 8051 MICROCONTROLLER
DIGITAL VOLTMETER USING 8051 MICROCONTROLLER
 
Analog To Digital Conversion (ADC) Programming in LPC2148
Analog To Digital Conversion (ADC) Programming in LPC2148Analog To Digital Conversion (ADC) Programming in LPC2148
Analog To Digital Conversion (ADC) Programming in LPC2148
 
analog to digital converter.ppt
analog to digital converter.pptanalog to digital converter.ppt
analog to digital converter.ppt
 
Anup2
Anup2Anup2
Anup2
 
analog to digital converter seminar
analog to digital converter seminaranalog to digital converter seminar
analog to digital converter seminar
 
Analog to Digital Converters
Analog to Digital ConvertersAnalog to Digital Converters
Analog to Digital Converters
 
Interfacing technique with 8085- ADC[0808]
Interfacing technique with 8085- ADC[0808]Interfacing technique with 8085- ADC[0808]
Interfacing technique with 8085- ADC[0808]
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
 

Recently uploaded

Abortion Pills in Jeddah |+966572737505 | Get Cytotec
Abortion Pills in Jeddah |+966572737505 | Get CytotecAbortion Pills in Jeddah |+966572737505 | Get Cytotec
Abortion Pills in Jeddah |+966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
wpkuukw
 
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
wpkuukw
 
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
wpkuukw
 
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))
Obat Cytotec
 
Abortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Dammam +966572737505 Buy CytotecAbortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
uodye
 
Contact +971581248768 to buy 100% original and safe abortion pills in Dubai a...
Contact +971581248768 to buy 100% original and safe abortion pills in Dubai a...Contact +971581248768 to buy 100% original and safe abortion pills in Dubai a...
Contact +971581248768 to buy 100% original and safe abortion pills in Dubai a...
DUBAI (+971)581248768 BUY ABORTION PILLS IN ABU dhabi...Qatar
 
如何办理(USYD毕业证书)悉尼大学毕业证成绩单原件一模一样
如何办理(USYD毕业证书)悉尼大学毕业证成绩单原件一模一样如何办理(USYD毕业证书)悉尼大学毕业证成绩单原件一模一样
如何办理(USYD毕业证书)悉尼大学毕业证成绩单原件一模一样
wsppdmt
 
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
vwymvu
 
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
uodye
 
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
ougvy
 
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
uodye
 
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
ayoqf
 
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Obat Aborsi 088980685493 Jual Obat Aborsi
 

Recently uploaded (20)

Abortion Pills in Jeddah |+966572737505 | Get Cytotec
Abortion Pills in Jeddah |+966572737505 | Get CytotecAbortion Pills in Jeddah |+966572737505 | Get Cytotec
Abortion Pills in Jeddah |+966572737505 | Get Cytotec
 
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
 
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
 
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
一比一定(购)UNITEC理工学院毕业证(UNITEC毕业证)成绩单学位证
 
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))
£ HAMIL 5 BULAN £ CARA MENGGUGURKAN KANDUNGAN USIA 5 BULAN ((087776558899))
 
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
Abortion pills in Jeddah +966572737505 <> buy cytotec <> unwanted kit Saudi A...
 
Abortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Dammam +966572737505 Buy CytotecAbortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Dammam +966572737505 Buy Cytotec
 
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
 
Contact +971581248768 to buy 100% original and safe abortion pills in Dubai a...
Contact +971581248768 to buy 100% original and safe abortion pills in Dubai a...Contact +971581248768 to buy 100% original and safe abortion pills in Dubai a...
Contact +971581248768 to buy 100% original and safe abortion pills in Dubai a...
 
如何办理(USYD毕业证书)悉尼大学毕业证成绩单原件一模一样
如何办理(USYD毕业证书)悉尼大学毕业证成绩单原件一模一样如何办理(USYD毕业证书)悉尼大学毕业证成绩单原件一模一样
如何办理(USYD毕业证书)悉尼大学毕业证成绩单原件一模一样
 
Dell Inspiron 15 5567 BAL20 LA-D801P Rev 1.0 (A00) Schematics.pdf
Dell Inspiron 15 5567 BAL20 LA-D801P Rev 1.0 (A00) Schematics.pdfDell Inspiron 15 5567 BAL20 LA-D801P Rev 1.0 (A00) Schematics.pdf
Dell Inspiron 15 5567 BAL20 LA-D801P Rev 1.0 (A00) Schematics.pdf
 
Test bank for consumer behaviour buying having and being eighth canadian edit...
Test bank for consumer behaviour buying having and being eighth canadian edit...Test bank for consumer behaviour buying having and being eighth canadian edit...
Test bank for consumer behaviour buying having and being eighth canadian edit...
 
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
办理(uw学位证书)美国华盛顿大学毕业证续费收据一模一样
 
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
一比一维多利亚大学毕业证(victoria毕业证)成绩单学位证如何办理
 
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
在线制作(ANU毕业证书)澳大利亚国立大学毕业证成绩单原版一比一
 
Best CPU for gaming Intel Core i9-14900K 14th Gen Desktop CPU
Best CPU for gaming  Intel Core i9-14900K 14th Gen Desktop CPUBest CPU for gaming  Intel Core i9-14900K 14th Gen Desktop CPU
Best CPU for gaming Intel Core i9-14900K 14th Gen Desktop CPU
 
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
一比一原版(Otago毕业证书)奥塔哥理工学院毕业证成绩单学位证靠谱定制
 
NON INVASIVE GLUCOSE BLODD MONITORING SYSTEM (1) (2) (1).pptx
NON INVASIVE GLUCOSE BLODD MONITORING SYSTEM (1) (2) (1).pptxNON INVASIVE GLUCOSE BLODD MONITORING SYSTEM (1) (2) (1).pptx
NON INVASIVE GLUCOSE BLODD MONITORING SYSTEM (1) (2) (1).pptx
 
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
一比一原版(CSUEB毕业证书)东湾分校毕业证原件一模一样
 
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...Jual Obat Aborsi Samarinda (  No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
Jual Obat Aborsi Samarinda ( No.1 ) 088980685493 Obat Penggugur Kandungan Cy...
 

Vhdl-Code-for-Adc0804-Comparator-and-Parity-Generator.pptx

  • 1. VHDL CODE FOR ADC0804, 4-BIT MAGNITUDE COMPARATOR AND PARITY GENERATOR Presented by:- APARNA Department of Electronics Engineering (VLSI & ES)
  • 2. TOPICS  ADC0804  ADC  FEATURES  PIN DIAGRAM & DISCRIPTION  ADC0804 INTERFACE SCHEMATIC & TIMING DIAGRAM  VHDL CODE & SIMULATION RESULT  PARITY GENERATOR  INTRODUCTION  VHDL CODE & SIMULATION RESULT  4-BIT MAGNITUDE COMPARATOR  INTRODUCTION  VHDL CODE & SIMULATION RESULT
  • 3. ADC  Analog-to-digital converter (ADC) is a device which can convert analogue voltage to digital numbers so that microcontrollers and microprocessors can handle and process the data.  ADC are the most widely used devices for data acquisition.  ADC has n-bit resolution, where n can be 8, 12, 16 or even 24 bits.
  • 4.  The higher-resolution ADC provides a smaller step size.  Step size is the smallest change that can be recognized by ADC  Vcc is the reference voltage of ADC with n-bit resolution.  Table : Resolution versus Step Size for ADC (if Vcc = 5V) 1 2   n cc V Size Step
  • 6. ADC0804 Features  Single channel ,8-bit parallel ADC module  Easy to interface with all Microprocessors or works Stand alone.  Differential analog voltage inputs. 0V to 5V analog input voltage range with single 5V supply.  On chip Clock available.
  • 7.  Digital output various from 0 to 255.  When Vref = 5V, for every 19.60mV of analog value there will be rise of one bit on digital side (Step size)  Available in 20-pin PDIP, SOIC packages.  A common, low-cost ADC, compatible with a wide range of microprocessors. There are many faster ADCs available with more resolution, this device is ideal for applications that do not require a high degree of accuracy.  ADC0804 requires up to 100 µs to convert an analog input voltage into a digital output code.
  • 9. PIN DESCRIPTION Pin No Function Name 1 Activates ADC; Active low ; used if more than 1 ADC module is used. By default grounded Chip select 2 Input pin; High to low pulse brings the data from internal registers to the output pins after conversion Read 3 Input pin; Low to high pulse is given to start the conversion Write 4 Clock Input pin; to give external clock. Clock IN 5 Output pin; Goes low when conversion is complete Interrupt 6 Analog non-inverting input Vin(+) 7 Analog inverting Input; normally ground Vin(-) 8 Ground(0V) Analog Ground 9 Input pin; sets the reference voltage for analog input Vref/2 10 Ground(0V) Digital Ground 11 8 bit digital output pins D7 12 D6 13 D5 14 D4 15 D3 16 D2 17 D1 18 D0 19 Used with Clock IN pin when internal clock source is used Clock R 20 Supply voltage; 5V Vcc
  • 11. ADC0804 INTERFACE INTR/EOC ADC 8-BIT OUTPUT ADC0804 FPGA RD/OE WR/SC Analog input ADC OUTPUT (LED) CLK
  • 12. VHDL CODE FOR ADC0804
  • 13.
  • 15.
  • 16. PARITY GENERATOR  A Parity Generator is a Combinational Logic Circuit that Generates the Parity bit in the Transmitter.  A Parity bit is used for the Purpose of Detecting Errors during Transmissions of binary Information.  It is an Extra bit Included with a binary Message to Make the Number of 1’s either Odd or Even.
  • 17. Two Types of Parity  In Even Parity, the added Parity bit will Make the Total Number of 1’s an Even Amount.  In Odd Parity, the added Parity bit will Make the Total Number of 1’s an Odd Amount.
  • 19. VHDL CODE FOR ODD PARITY
  • 21. 4-BIT MAGNITUDE COMPARATOR  Compare two multi-bit binary numbers  The comparison of two numbers outputs: A>B, A=B, A<B
  • 22. LOGIC USED IN VHDL CODE in_1=_ _ _ _ in_2=_ _ _ _ ‘0’ -> unsigned bit vector Comp_type ‘1’-> signed bit vector in_1= 0 _ _ _ in_1= 1 _ _ _ in_2= 0 _ _ _ in_2= 1 _ _ _ in_1= 1 _ _ _ in_1= 0 _ _ _ in_2= 0 _ _ _ in_2= 1 _ _ _
  • 23. VHDL CODE FOR COMPARATOR
  • 24.