• AVR Freaks

Can Harmony V3 AT25 driver share SPI hardware instance with other clients?

Author
MantasP
New Member
  • Total Posts : 15
  • Reward points : 0
  • Joined: 2019/02/20 03:31:39
  • Location: 0
  • Status: offline
2019/09/20 04:26:32 (permalink)
0

Can Harmony V3 AT25 driver share SPI hardware instance with other clients?

Hi all, 

I'm trying out the new Harmony V3.
I have a question regarding the SPI eeprom AT25 driver. In the configurator I have SPI1 used by the AT25 driver and also SPI driver that serves multiple clients. 

I expected the AT25 would be one of the clients of the SPI driver rather than use SPI1 plib directly. 
How does the SPI driver and AT25 driver use the same SPI1 hardware without issues in an RTOS enviroment? 

If they can't work together then what is the purpose of the AT25 driver if it can be the only device on the SPI bus?

Attached Image(s)

#1
vgandhi
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2016/10/24 21:28:35
  • Location: 0
  • Status: offline
Re: Can Harmony V3 AT25 driver share SPI hardware instance with other clients? 2019/09/20 08:19:02 (permalink)
5 (1)
You are right. The AT25 driver is built on top of the SPI PLIB. Hence, you cannot have multiple SPI slaves on the same SPI bus. 
Having said that, Harmony 3 does have demo applications that demonstrate communication with the AT25 using the SPI driver in multi client configuration. You can refer to the demo examples here:
https://github.com/Microchip-MPLAB-Harmony/core/tree/master/apps/driver/spi/async/spi_multi_slave/firmware
Demo application help:
https://microchip-mplab-harmony.github.io/core/frames.html?frmname=topic&frmfile=index.html
#2
Jump to:
© 2019 APG vNext Commercial Version 4.5