OpenCores

Project maintainers

Details

Name: pmodda4driver
Created: Feb 6, 2025
Updated: Feb 10, 2025
SVN Updated: Feb 10, 2025
SVN: Browse
Latest version: download (might take a bit to start...)
Statistics: View
Bugs: 0 reported / 0 solved
Star0you like it: star it!

Other project properties

Category:Other
Language:VHDL
Development status:Beta
Additional info:
WishBone compliant: No
WishBone version: n/a
License: LGPL

PmodDA4Driver

Pmod DA4 Driver for the 8 Channels 12-bit Digital-to-Analog Converter AD5628. This module implements a Pmod DA4 Driver for the 8 Channels 12-bit Digital-to-Analog Converter AD5628. The communication with the DAC uses the SPI protocol (Write only). User can specifies the SPI Serial Clock Frequency (up to 50 MHz).

Usage

The o_ready signal (set to '1') indicates the PmodDA4Driver is ready to receive new data (command, address and digital value). Once data are set, the i_enable signal can be triggered (set to '1') to begin transmission. The o_ready signal is set to '0' to acknowledge the receipt and the application of the new data. When the transmission is complete, the o_ready is set to '1' and the PmodDA4Driver is ready for new transmission.

Commands:

C3C2C1C0Description
0000Write to Input Register n
0001Update DAC Register n
0010Write to Input Register n, update all (software /LDAC)
0011Write to and update DAC Channel n
0100Power down/power up DAC
0101Load clear code register
0110Load /LDAC register
0111Reset (power-on reset)
1000Set up internal REF register
----Reserved

Address:

A3A2A1A0Description
0000DAC Channel A
0001DAC Channel B
0010DAC Channel C
0011DAC Channel D
0100DAC Channel E
0101DAC Channel F
0110DAC Channel G
0111DAC Channel H
1111DAC All Channels

Signal Generator Pin Description

Generics

NameDescription
sys_clockSystem Input Clock Frequency (Hz)
spi_clockSPI Serial Clock Frequency (up to 50 MHz)

Ports

NameTypeDescription
i_sys_clockInputSystem Input Clock
i_enableInputModule Enable ('0': Disable, '1': Enable)
i_commandInputDAC Command (4 bits)
i_addrInputDAC Address Register (4 bits)
i_digital_valueInputDAC Value (12 bits)
i_configInputDAC Configuration Bits (8 bits)
o_readyOutputReady to convert Next Digital Value ('0': NOT Ready, '1': Ready)
o_sclkOutputSPI Serial Clock
o_mosiOutputSPI Master Output Slave Input Data line
o_ssOutputSPI Slave Select Line ('0': Enable, '1': Disable)