SPM8MCP4725.rar
STM8库函数使用IIC外设控制MCP4725输出任意波形
(1)外设配置
CLK_PeripheralClockConfig(CLK_PERIPHERAL_I2C,ENABLE);
GPIO_Init(GPIOB,GPIO_PIN_4,GPIO_MODE_OUT_OD_LOW_SLOW);
GPIO_Init(GPIOB,GPIO_PIN_5,GPIO_MODE_OUT_OD_LOW_SLOW);
I2C_DeInit();
I2C_Init(I2C_SPEED,0xA0,I2C_DUTYCYCLE_2,I2C_ACK_CURR,I2C_ADDMODE
文件列表
SPM8MCP4725.rar
(预估有个211文件)
Project.ewd
102KB
Project.eww
161B
Backup of Project.ewp
383KB
Project.ewt
1.02MB
Backup (2) of Project.ewp
383KB
Project.out
238KB
stm8s_tim1.pbi
395KB
stm8s_itc.o
18KB
stm8s_gpio.pbi.dep
1KB
stm8s_uart1.pbi.dep
1KB
暂无评论