91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 32KB
    文件類型: .zip
    金幣: 2
    下載: 1 次
    發(fā)布日期: 2021-01-06
  • 語言: 其他
  • 標(biāo)簽: dac124s085??

資源簡(jiǎn)介

通過模擬的spi驅(qū)動(dòng)dac124s085輸出電壓,只需要根據(jù)電路圖更改引腳即可。

資源截圖

代碼片段和文件信息

S#include?“valve_dac.h“

void?SPI2_Init()??//SPI2初始化
{
GPIO_InitTypeDef??GPIO_InitStructure;
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB?ENABLE);

GPIO_InitStructure.GPIO_Pin?=?SCLK_Pin; ???????//SCLK
GPIO_InitStructure.GPIO_Mode?=?GPIO_Mode_Out_PP;? ?//復(fù)用推挽輸出
GPIO_InitStructure.GPIO_Speed?=?GPIO_Speed_50MHz; ?//IO口速度為50MHz
GPIO_Init(SCLK_GPIO?&GPIO_InitStructure);

GPIO_InitStructure.GPIO_Pin?=?SYNC_Pin; ???????//SYNC
GPIO_InitStructure.GPIO_Mode?=?GPIO_Mode_Out_PP;? ?//復(fù)用推挽輸出
GPIO_InitStructure.GPIO_Speed?=?GPIO_Speed_50MHz; ?//IO口速度為50MHz
GPIO_Init(SYNC_GPIO?&GPIO_InitStructure);

GPIO_InitStructure.GPIO_Pin?=?MOSI_Pin; ???????//MOSI
GPIO_InitStructure.GPIO_Mode?=?GPIO_Mode_Out_PP;?//浮空輸入
GPIO_InitStructure.GPIO_Speed?=?GPIO_Speed_50MHz; ?//IO口速度為50

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-05-11?21:20??DAC\
?????文件???????32540??2018-05-11?21:19??DAC\readme.docx
?????文件????????1579??2018-05-11?21:18??DAC\valve_dac.c
?????文件?????????775??2018-05-11?21:15??DAC\valve_dac.h

評(píng)論

共有 條評(píng)論