Skip to main content

Posts

Showing posts with the label CPLD

24-bit Stereo Audio DAC for Raspberry Pi

This project is about 24-bit stereo DAC, which we build for Raspberry Pi boards. This R-2R ladder DAC is developing around Intel / Altera EPM240T100C5N CPLD. We developed this module after review the PT8211 DAC, which we tested a few months ago. Compare with PT8211 DAC, this module is capable to provide high-quality audio output with Raspbian OS . A finished prototype of the R-2R DAC. At the testing stages, we drive this DAC with the I 2 S bus of the Raspberry Pi 3 Model B board . The provided device tree overlay is developed and tested on the new Raspbian Buster OS. The audio quality of this DAC is impressive. In most of the circumstances, we test this unit using mpg123 player and got excellent results. The MCP602 opamp of this module is capable to drive a headphone, and for the testing, we use Audio Technica ATH-PRO500MK2BK headphones directly with this module. Also, we pair this module with several AF power amplifiers and obtained superior results. The most n...

74181 ALU design on Altera MAX II CPLD

74181 is 4-bit arithmetic and logic unit introduced by Texas Instruments in March 1970 and it is known for being the first ALU in a single package. This chip is no longer in manufacturing but still, it is quite popular in CA ( computer architecture ) courses in many colleges. To test the behavior of this 4-bit ALU we decided to construct it on Altera MAX II CPLD. For this project, we choose EPM240T100C5 CPLD and logic design is implemented using Altera Quartus II . For logic design, we refer to Fairchild Semiconductor’s DM74LS181 datasheet. This setup is tested on basic EPM240 series development board with some mechanical switches and couple of LEDs. 74181 4-bit ALU test setup with the EPM240T100C5 development board. There are several test circuits available for 74181 ALU and our test setup is partially based on Electronics for Your (EFY) 1997 article. In another test setup, we use HEF4040 to drive, A and B operands of this ALU. The test setup attached to this article is t...