|
WaveHC
|
#include <ArduinoPins.h>Defines | |
| #define | SS SS_PIN |
| #define | MOSI MOSI_PIN |
| #define | MISO MISO_PIN |
| #define | SCK SCK_PIN |
| #define | USE_MCP_DAC_LDAC 1 |
| #define | MCP_DAC_CS_DDR PIN2_DDRREG |
| #define | MCP_DAC_CS_PORT PIN2_PORTREG |
| #define | MCP_DAC_CS_BIT PIN2_BITNUM |
| #define | MCP_DAC_SCK_DDR PIN3_DDRREG |
| #define | MCP_DAC_SCK_PORT PIN3_PORTREG |
| #define | MCP_DAC_SCK_BIT PIN3_BITNUM |
| #define | MCP_DAC_SDI_DDR PIN4_DDRREG |
| #define | MCP_DAC_SDI_PORT PIN4_PORTREG |
| #define | MCP_DAC_SDI_BIT PIN4_BITNUM |
| #define | MCP_DAC_LDAC_DDR PIN5_DDRREG |
| #define | MCP_DAC_LDAC_PORT PIN5_PORTREG |
| #define | MCP_DAC_LDAC_BIT PIN5_BITNUM |
Pin definitions
| #define MCP_DAC_CS_BIT PIN2_BITNUM |
Port bit number for DAC chip select.
| #define MCP_DAC_CS_DDR PIN2_DDRREG |
Data direction register for DAC chip select.
| #define MCP_DAC_CS_PORT PIN2_PORTREG |
Port register for DAC chip select.
| #define MCP_DAC_LDAC_BIT PIN5_BITNUM |
Port bit number for Latch DAC Input.
| #define MCP_DAC_LDAC_DDR PIN5_DDRREG |
Data direction register for Latch DAC Input.
| #define MCP_DAC_LDAC_PORT PIN5_PORTREG |
Port register for Latch DAC Input.
| #define MCP_DAC_SCK_BIT PIN3_BITNUM |
Port bit number for DAC clock.
| #define MCP_DAC_SCK_DDR PIN3_DDRREG |
Data direction register for DAC clock.
| #define MCP_DAC_SCK_PORT PIN3_PORTREG |
Port register for DAC clock.
| #define MCP_DAC_SDI_BIT PIN4_BITNUM |
Port bit number for DAC clock.
| #define MCP_DAC_SDI_DDR PIN4_DDRREG |
Data direction register for DAC serial in.
| #define MCP_DAC_SDI_PORT PIN4_PORTREG |
Port register for DAC clock.
| #define MISO MISO_PIN |
SPI master input, slave output pin.
| #define MOSI MOSI_PIN |
SPI master output, slave input pin.
| #define SCK SCK_PIN |
SPI serial clock pin.
| #define SS SS_PIN |
SPI slave select pin. Warning: SS may be redefined as another pin but the hardware SS_PIN must be set to output mode before any calls to WaveHC functions. The SS_PIN can then be used as a general output pin
| #define USE_MCP_DAC_LDAC 1 |
Set USE_MCP_DAC_LDAC to 0 if LDAC is grounded.
1.7.4