Hi,
Attempting my first ever implementation of SPI to communication with a TFT display driven by a ST7735 using 4-wire SPI.
A few questions regarding spi_device_interface_config_t:
The following three values, they actually specify a delay, right? For example, with clock_speed_hz = 2000000 (2MHz), a value of 16 would give a delay of 16 * 1/2000000 = 8ns. I assume these are used to fulfill the timing requirements for the device in question?
- dummy_bits
- cs_ena_pretrans
- cs_ena_posttrans
For example, on page 25; section 8.3 Tacc (read) is specified at 10-50ns, meaning I need to set dummy_bits to 20 to guarantee 10nS (with a clock_speed_hz @2Mhz)? Or am I overdoing it and I can just assume that if the device follows the SPI spec, things will work as expected?
According to the documentation command_bits & address_bits specifies whether or not the "command phase" or "address phase" should be performed. This confuses me a little when looking at the SPI master example, line 259 since it doesn't set these values, but still sends commands to the device.
Is it that some SPI devices require every transaction to be prefixed with a command and/or address and the IDF-driver provides this capability through these settings?
When specifying SPI_DEVICE_3WIRE for the flags value, shouldn't SPI_DEVICE_HALFDUPLEX be implicitly activated or are there devices which have one-way communication?
Questions about SPI timing etc.
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: No registered users and 439 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.