AnsweredAssumed Answered

bf537 SPI Bus: To use Kernel, Userspace, or Bitbang control

Question asked by ShutEyeThinkin on Mar 20, 2013
Latest reply on Mar 20, 2013 by Aaronwu

I am wanting to use the bf537 SPI Bus to communicate with a device, Full-Duplex, at an SCLK speed of 64 KHz. Due to restrictions, only 1 byte can be written and 1 byte read every 250 us, at the SCLK rate of 64 KHz.

 

What is the best approach to implement this: using the Kernel driver, the Userspace driver (spidev), or to write my own driver which has a timer (say, TMR3) interrupt every 250 us and use Bitbanging to write and read a byte?  Is it even practical to use the Kernel or Userspace drivers in this case?

Outcomes