嗨丹尼斯,
我可以使用STM8S103F3 PD5 / PD6作为I2C SCL / SDA引脚(bit-banging方法)吗?
这是否意味着我需要根据I2C切换配置
读/写模式?
//设置端口D.
/ *
[2] 101
7 6 5 4 3 2 1 0
| | | | | | | |
| | | ___________ SCL(输出)推拉输出
| | _____________ SDA(I / O)推拉输出
DDR 0 1 1 0 0 0 0 0
CR1 0 1 1 0 0 0 0 0
CR2 0 0 0 0 0 0 0 0
* /
GPIOD-> DDR = 0x70;
GPIOD-> CR1 = 0x70;
GPIOD-> CR2 = 0x00; STM8S103F3是否支持8051 MCU准双向模式?
以上来自于谷歌翻译
以下为原文
Hi Dennis,
May I use STM8S103F3 PD5/PD6 as I2C SCL/SDA pins (bit-banging approach) ?
Does it mean that I need to switch their configuration according to I2C
Read/Write modes ?
// Setup Port D
/*
[2]101
7 6 5 4 3 2 1 0
| | | | | | | |
| | |___________ SCL (Output) Push pull output
| |_____________ SDA (I/O ) Push pull output
DDR 0 1 1 0 0 0 0 0
CR1 0 1 1 0 0 0 0 0
CR2 0 0 0 0 0 0 0 0
*/
GPIOD->DDR = 0x70;
GPIOD->CR1 = 0x70;
GPIOD->CR2 = 0x00; Does the STM8S103F3 support 8051 MCU quasi-bidirection mode ?
嗨丹尼斯,
我可以使用STM8S103F3 PD5 / PD6作为I2C SCL / SDA引脚(bit-banging方法)吗?
这是否意味着我需要根据I2C切换配置
读/写模式?
//设置端口D.
/ *
[2] 101
7 6 5 4 3 2 1 0
| | | | | | | |
| | | ___________ SCL(输出)推拉输出
| | _____________ SDA(I / O)推拉输出
DDR 0 1 1 0 0 0 0 0
CR1 0 1 1 0 0 0 0 0
CR2 0 0 0 0 0 0 0 0
* /
GPIOD-> DDR = 0x70;
GPIOD-> CR1 = 0x70;
GPIOD-> CR2 = 0x00; STM8S103F3是否支持8051 MCU准双向模式?
以上来自于谷歌翻译
以下为原文
Hi Dennis,
May I use STM8S103F3 PD5/PD6 as I2C SCL/SDA pins (bit-banging approach) ?
Does it mean that I need to switch their configuration according to I2C
Read/Write modes ?
// Setup Port D
/*
[2]101
7 6 5 4 3 2 1 0
| | | | | | | |
| | |___________ SCL (Output) Push pull output
| |_____________ SDA (I/O ) Push pull output
DDR 0 1 1 0 0 0 0 0
CR1 0 1 1 0 0 0 0 0
CR2 0 0 0 0 0 0 0 0
*/
GPIOD->DDR = 0x70;
GPIOD->CR1 = 0x70;
GPIOD->CR2 = 0x00; Does the STM8S103F3 support 8051 MCU quasi-bidirection mode ?
举报