chipKIT® Development Platform

Inspired by Arduino™

UNO32 SPI Libraries

Created Sun, 25 Sep 2011 17:03:24 +0000 by mike.e.walczak


mike.e.walczak

Sun, 25 Sep 2011 17:03:24 +0000

Hello,

I am using the MAC version mpide and I am looking for where the SPI library is located? Also I would like to know how to set the SPI word size to 16 bits and the clock rate? This does not seem to be part of the standard SPI library on the Arduino web site.

Thanks,

M


lloyddean

Sun, 25 Sep 2011 19:53:03 +0000

Assuming an installation in '/Applications' -

/Applications/Mpide.app/Contents/Resources/Java/hardware/pic32/libraries


mike.e.walczak

Sun, 25 Sep 2011 20:54:43 +0000

Thanks, all I need now is set it to 16 bits.


lloyddean

Mon, 26 Sep 2011 03:23:58 +0000

As I see it there is nothing supported in the current library implementation.

As you may have noticed

class SPIClass {
public:
  inline static uint8_t transfer(uint8_t _data);

the only transfer method, 'transfer', both accepts and returns a 'uint8_t'.


mike.e.walczak

Mon, 26 Sep 2011 14:13:51 +0000

Thanks I did notice and I have worked around the problem.