简体   繁体   中英

LGT8F328P-SSOP20 arduino clone and SPI

LGT8F328P clone I Would like to use the SPI interface.

as indicated on the datasheet:

LGT8F328P 数据表 It has everything necessary but I don't know how to configure <SPI.h>. and how to make it works for example with W5500?

I found out the problem, using LGT8F328P-SSOP20 there are two pins identical! the MOSI on 11 and SS on 10.

in this way I cannot communicate with SPI protocol.

这可能对您有所帮助: https : //github.com/dbuezas/lgt8fx/issues/54其他人通过覆盖 PB0 的默认引脚 IO 方向,使 SPI 在 SSOP20 封装上工作

For W5500 chip, you can using ethernet2 library. Edit the ethernet2.h file for replacing w5500_cspin to 9.

  EthernetClass() { _dhcp = NULL; w5500_cspin = 9; } //default 10
  void init(uint8_t _cspin = 9) { w5500_cspin = _cspin; }

This is specially for LGT8F328P-SSOP20

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM