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.
工具与软件:
大家好、我正在尝试从 DDC264向 STM32 MCU 接收数据
我根据附图中的手册建立了协议、您可以从示波器上看到图像
但我没有收到任何有意义的数据、它只是一个随机值。
DDC264的复位引脚连接到3.3V
设置频率- 2MHz 的"CLK"的方框图
我没有向 DDC264写入任何寄存器、我只是想从 采用出厂设置的 DDC264读取数据。
工作原理是这样的
HAL_TIM_PWM_Start(&htim1, TIM_CHANNEL_1); // for CLK while (1) { if (HAL_GPIO_ReadPin(GPIOA, GPIO_PIN_6) == GPIO_PIN_RESET) // detect { HAL_SPI_TransmitReceive(&hspi2,(uint8_t*)&test_64,&received_Byte_64,128,0x100); data_bytes[1] = received_Byte_64[127]; data_bytes[0] = received_Byte_64[126]; dataPacket = (data_bytes[0] << 8) | data_bytes[1]; send_data_by_uart(dataPacket); // only send firts channel HAL_GPIO_TogglePin(GPIOK, GPIO_PIN_1); // Toggle CONV } }
您能告诉我错误可能在哪里吗?
此致、Ildar