[INSTRM-609] Make SPI bit-banging take less time. Created: 13/Feb/19  Updated: 13/Feb/19  Resolved: 13/Feb/19

Status: Done
Project: Instrument control development
Component/s: ics_xcu_smb
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: cloomis Assignee: cloomis
Resolution: Done Votes: 0
Labels: SM1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Story Points: 1

 Description   

The spi_bus.py loop puts 0 and 1 bits on the SPI bus by flipping, separated by time.sleep(1e-6). Which of course take ~75us.

This particular loop should probably be in cython/c, but for now use a null method, which takes about 1 us on a Pi3.
Also, this calls GPIO.output(), which obviously takes >1us itself. Will try removing all sleeps, but that will need more testing.



 Comments   
Comment by cloomis [ 13/Feb/19 ]

Merged at 4084e64, tagged 1.1.0

Generated at Sat Apr 26 18:01:47 JST 2025 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.