HSPI Chip Select Polarity
-
- Posts: 5
- Joined: Wed Apr 29, 2015 4:33 pm
HSPI Chip Select Polarity
Postby metalphreak » Tue May 12, 2015 11:25 am
I have an SPI device that requires CS be active high rather than the default active low. Is there a configuration bit to change the polarity of the HSPI CS pin?
Re: HSPI Chip Select Polarity
Postby 0xPIT » Fri Jul 10, 2015 3:27 am
In spi_overlap.c|h of SDK 1.2.0:
Code: Select all
#define HSPI_FALLING_EDGE_SAMPLE() SET_PERI_REG_MASK(SPI_USER(HSPI), SPI_CK_OUT_EDGE)
#define HSPI_RISING_EDGE_SAMPLE() CLEAR_PERI_REG_MASK(SPI_USER(HSPI), SPI_CK_OUT_EDGE)
Who is online
Users browsing this forum: No registered users and 12 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board 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. We are the manufacturer of ESP8266EX.