ESP8266 Developer Zone The Official ESP8266 Forum 2015-07-10T03:26:22+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=558 2015-07-10T03:26:22+08:00 2015-07-10T03:26:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=558&p=2605#p2605 <![CDATA[Re: HSPI Clock Polarity]]>

Code:

#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)


in the spi_overlap.* sources, will try soon.

Not sure if this is for slave mode, though, as it's called _SAMPLE.

Statistics: Posted by 0xPIT — Fri Jul 10, 2015 3:26 am


]]>
2015-07-09T13:12:09+08:00 2015-07-09T13:12:09+08:00 https://bbs.espressif.com:443/viewtopic.php?t=558&p=2594#p2594 <![CDATA[Re: HSPI Clock Polarity]]>

Statistics: Posted by leeshine — Thu Jul 09, 2015 1:12 pm


]]>
2015-07-09T05:31:44+08:00 2015-07-09T05:31:44+08:00 https://bbs.espressif.com:443/viewtopic.php?t=558&p=2577#p2577 <![CDATA[Re: HSPI Clock Polarity]]> Have you seen this document:

download/file.php?id=577

It is:

8Q-ESP8266 HSPI Host Multi-device API v1.0

If I look on page 6, I find a parameter called "clk_polar"

This is associated with the function called hpsi_master_dev_init().

Is this what you are looking for?

Neil

Statistics: Posted by kolban — Thu Jul 09, 2015 5:31 am


]]>
2015-07-09T02:07:00+08:00 2015-07-09T02:07:00+08:00 https://bbs.espressif.com:443/viewtopic.php?t=558&p=2576#p2576 <![CDATA[Re: HSPI Clock Polarity]]>
please dig out this information, can that be so hard?

Thanks again,

pit

Statistics: Posted by 0xPIT — Thu Jul 09, 2015 2:07 am


]]>
2015-06-18T10:41:38+08:00 2015-06-18T10:41:38+08:00 https://bbs.espressif.com:443/viewtopic.php?t=558&p=2301#p2301 <![CDATA[Re: HSPI Clock Polarity]]>
I'll post back if I find anything.

Statistics: Posted by OverKill — Thu Jun 18, 2015 10:41 am


]]>
2015-06-17T05:05:43+08:00 2015-06-17T05:05:43+08:00 https://bbs.espressif.com:443/viewtopic.php?t=558&p=2271#p2271 <![CDATA[Re: HSPI Clock Polarity]]> Hey Espressif, any help here please?
It's OK if it is not possible, I just need to know.

Thanks,

pit

Statistics: Posted by 0xPIT — Wed Jun 17, 2015 5:05 am


]]>
2015-06-07T22:41:46+08:00 2015-06-07T22:41:46+08:00 https://bbs.espressif.com:443/viewtopic.php?t=558&p=2082#p2082 <![CDATA[HSPI Clock Polarity]]>
how can I change the Clock Polarity for Hardware-SPI? I need the clock to be low-active instead of the default which is high-active.

I've been playing with SPI_CTRL2, but this did not work as advertised in the Register-Description Excel file.
I was unable to delay MOSI for half a cycle.

Any help? Any examples?

Thanks,

- pit

Statistics: Posted by 0xPIT — Sun Jun 07, 2015 10:41 pm


]]>