Search found 37 matches

by colman
Fri Mar 17, 2017 2:32 am
Forum: Hardware
Topic: SENSOR_CAPN and SENSOR_VN pin used as external interrupt pins
Replies: 3
Views: 9387

SENSOR_CAPN and SENSOR_VN pin used as external interrupt pins

I want to use SENSOR_CAPN and SENSOR_VN pins to act as external interrupt pins to read a rotary dial. SENSOR_CAPN is ok, but SENSOR_VN always trigger the interrupt even the pin does not change state. Is it relate to the ADC_PRE_AMP function? Below is my code: // Rotary encoder #define PIN_ROT_A 38 /...
by colman
Thu Mar 16, 2017 3:49 am
Forum: ESP-IDF
Topic: Max tx length of spi_transaction_t?
Replies: 13
Views: 19521

Re: Max tx length of spi_transaction_t?

I have a buffer of 76.8K bytes(half of the LCD screen buffer), I want to use spi_master to transmit the whole buffer to SPI port in one transaction. After a trial, I found the maximum bytes that can be transfered in one transaction is 4095 bytes. It will send wrong data when the length is more then ...
by colman
Wed Mar 15, 2017 7:11 am
Forum: ESP-IDF
Topic: Max tx length of spi_transaction_t?
Replies: 13
Views: 19521

Max tx length of spi_transaction_t?

1. What is the maximum value of the length of spi_transaction_t that can be transfer in one transaction?
2. Can the transmitted data be held in SPI Flash?

Colman
by colman
Tue Mar 14, 2017 7:11 am
Forum: Hardware
Topic: 32K_XP(GPIO32) and 32K_XN(GPIO33) pins used for MDC and MDIO pins
Replies: 9
Views: 14700

Re: 32K_XP(GPIO32) and 32K_XN(GPIO33) pins used for MDC and MDIO pins

I am using a custom made PCB, not using module.

Colman
by colman
Mon Mar 13, 2017 7:23 am
Forum: Hardware
Topic: Needed additional pins for PSRAM
Replies: 22
Views: 34834

Re: Needed additional pins for PSRAM

Is it possible to share the PSRAM's clock with SPI Flash clock on pin 31, just like sharing the data lines; so that only one extra pin is required for the PSRAM chip select?

Colman
by colman
Mon Mar 13, 2017 2:10 am
Forum: Hardware
Topic: 32K_XP(GPIO32) and 32K_XN(GPIO33) pins used for MDC and MDIO pins
Replies: 9
Views: 14700

Re: 32K_XP(GPIO32) and 32K_XN(GPIO33) pins used for MDC and MDIO pins

Dear Rudi,

Yes, I need to append gpio_set_direction(PIN_SMI_MDIO, GPIO_MODE_INPUT) in order to make it work.

Regards,
Colman
by colman
Sat Mar 11, 2017 4:27 am
Forum: Hardware
Topic: 32K_XP(GPIO32) and 32K_XN(GPIO33) pins used for MDC and MDIO pins
Replies: 9
Views: 14700

Re: 32K_XP(GPIO32) and 32K_XN(GPIO33) pins used for MDC and MDIO pins

Dear Rudi,

I finally get it work, it need a "gpio_set_direction(PIN_SMI_MDIO, GPIO_MODE_INPUT);" to make the input working.

Regards,
Colman.
by colman
Sat Mar 11, 2017 1:52 am
Forum: Hardware
Topic: 32K_XP(GPIO32) and 32K_XN(GPIO33) pins used for MDC and MDIO pins
Replies: 9
Views: 14700

Re: 32K_XP(GPIO32) and 32K_XN(GPIO33) pins used for MDC and MDIO pins

Dear Rudi,

Thank you very much. The MDC and MDIO seems working, but the MDIO value always read "0" even the waveform shown on the oscilloscope is correct. It seems the MDIO value on the physical pin cannot reach the SMI section of the EMAC.

Regards,
Colman
by colman
Fri Mar 10, 2017 10:15 am
Forum: Hardware
Topic: 32K_XP(GPIO32) and 32K_XN(GPIO33) pins used for MDC and MDIO pins
Replies: 9
Views: 14700

32K_XP(GPIO32) and 32K_XN(GPIO33) pins used for MDC and MDIO pins

I try to use 32K_XP(GPIO32) for EMAC MDC and 32K_XN(GPIO33) for EMAC MDIO pin without success. GPIO32 always in HiZ state, and GPIO33has bus contention(cannot reach logic 0) in outputing a negative pulse. Below is my code: #define MDC_PIN_NUM 32 #define MDIO_PIN_NUM 33 //mdc to gpio32 gpio_pad_selec...
by colman
Fri Mar 10, 2017 3:45 am
Forum: ESP-IDF
Topic: Boot strapping pins and power-on reset
Replies: 2
Views: 8526

Boot strapping pins and power-on reset

According to the ESP32 datasheet, the latching of the strapping pins is done during chip power-on reset and these bits are held until the chip is powered down or shut down. But in my experiment, the level on these strapping pins also affect the boot mode during RTCWDT_RTC_RESET. In my design, I have...