MSPM0_ValvanoWare  1.0
ECE445L starter code
Macros | Functions
MCP4921.h File Reference

Synchronous serial communication. More...

Go to the source code of this file.

Macros

#define MCP4921_OutNonBlocking(code)   SPI0->TXDATA = code|(1<<12);
 Output data, nonblocking Send data to MCP4921 12-bit DAC without waiting for a response. This is useful in audio applications where DAC outputs are relatively infrequent and where the DAC response is meaningless. Since the state of the FIFO is not checked before sending, data may be lost. More...
 

Functions

void MCP4921_Init (uint32_t data)
 initialize MCP4921 More...
 
void MCP4921_Out (uint32_t data)
 Output data. More...
 

Detailed Description

Synchronous serial communication.

SPI uses a chip select, clock, and data out. This interface can be used for the MCP4921 DAC

Version
ECE445L
Author
Daniel Valvano and Jonathan Valvano
Warning
AS-IS
Note
For more information see http://users.ece.utexas.edu/~valvano/
Date
June 28, 2026
SPI-DAC pins
Pin Function Description
PB18 SPI0 SCLK DAC SPI clock (SPI)
PA8 SPI0 CS DAC SPI CS
PB17 SPI0 PICO DAC SPI data (SPI)