This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] DAC8563:关于 DAC8563初始化过程

Guru**** 1161090 points
Other Parts Discussed in Thread: DAC8563, DAC8562
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/data-converters-group/data-converters/f/data-converters-forum/830874/dac8563-about-the-dac8563-initialization-procedure

器件型号:DAC8563
主题中讨论的其他器件: DAC8562

尊敬的团队:
我在项目中使用 DAC8563、我想为初始输出2.5V、输出2.5V 至5V 供电。 我在网上找到了一段 C 代码。
void DAC8562_WriteCmd (uint32_t _cmd)

uint8_t i;
SYNC_0();

对于(I = 0;I < 24;I++)

IF (_cmd & 0x800000)

DIN_1 ();

其他

DIN_0();

SCLK_1 ();
_cmd <<= 1;
SCLK_0();

SYNC_1 ();

void bsp_InitDAC8562 (void)

GPIO_InitTypeDef GPIO_InitStructure;

#ifdef SOFT_SPI
SYNC_1 ();/* SYNC = 1 */
RCC_AHB1 PeriphClockCmd (RCC_SCLK | RCC_DIN | RCC_SYNC、ENABLE);
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out;
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
GPIO_InitStructure.GPIO_Pud = GPIO_PUT_NOPULL;
GPIO_InitStructure.GPIO_Speed​​= GPIO_Speed_50MHz;

GPIO_InitStructure.GPIO_Pin = PIN_SCLK;
GPIO_Init (PORT_SCLK、&GPIO_InitStructure);

GPIO_InitStructure.GPIO_Pin = PIN_DIN;
GPIO_Init (PORT_DIN、&GPIO_InitStructure);

GPIO_InitStructure.GPIO_Pin = PIN_SYNC;
GPIO_Init (PORT_SYNC、&GPIO_InitStructure);
#endif

/*为 DAC-A 和 DAC-B 加电*/
DAC8562_WriteCmd ((4 << 19)|(0 << 16)|(3 << 0));

对于 DAC-B 和 DAC-B,/* LDAC 引脚处于非活动状态,在不使用 LDAC 引脚的情况下更新数据*/
DAC8562_WriteCmd ((6 << 19)|(0 << 16)|(3 << 0));

/*将2个 DAC 重置为中间值、输出2.5V */
DAC8562_setData (0、32767);
DAC8562_setData (1、32767);

/*选择内部基准并复位2个 DAC 的增益= 2 (复位时内部基准被禁用)*/
DAC8562_WriteCmd ((7 << 19)|(0 << 16)|(1 << 0));


我 不理解这些代码。  这些是技术手册上的相应寄存器设置。

/*为 DAC-A 和 DAC-B 加电*/  DAC8562_WriteCmd ((4 << 19)|(0 << 16)|(3 << 0));
对于 DAC-B 和 DAC-B,/* LDAC 引脚不活动,在不使用 LDAC 引脚的情况下更新数据*/ DAC8562_WriteCmd ((6 << 19)|(0 << 16)|(3 << 0));
/*选择内部基准并复位2个 DAC 的增益= 2 (复位时禁用内部基准)*/ DAC8562_WriteCmd ((7 << 19)|(0 << 16)|(1 << 0));

谢谢你。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我已成功配置 DAC8563。 输出 为0-5V。 可配置为2.5V 的上限电位。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我的同事明天将收到您的回复。

    谢谢、

    Paul

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    感谢您的查询。 从您的上一篇帖子中、您似乎已经自行解决了该问题。 您是否需要有关此方面的进一步支持?

    此致、

    Uttam Sahu

    应用工程师、精密 DAC