whitequark changed the topic of #glasgow to: digital interface explorer · code https://github.com/GlasgowEmbedded/glasgow · logs https://libera.irclog.whitequark.org/glasgow · discord https://1bitsquared.com/pages/chat · production https://www.crowdsupply.com/1bitsquared/glasgow (FUNDED)
adamgreig is now known as agg
jstein has quit [Quit: quit]
GNUmoon has quit [Ping timeout: 258 seconds]
GNUmoon has joined #glasgow
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #glasgow
marcus_c has quit [*.net *.split]
lsneff has quit [*.net *.split]
nafod has quit [*.net *.split]
itsmk has quit [*.net *.split]
edf0 has quit [*.net *.split]
nafod has joined #glasgow
lsneff has joined #glasgow
itsmk has joined #glasgow
edf0 has joined #glasgow
koolazer has joined #glasgow
marcus_c has joined #glasgow
bgamari_ has quit [Ping timeout: 260 seconds]
bgamari has joined #glasgow
joerg has quit [Ping timeout: 260 seconds]
joerg has joined #glasgow
bvernoux has joined #glasgow
ar-jan has joined #glasgow
cr1901_ has joined #glasgow
cr1901 has quit [Ping timeout: 248 seconds]
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #glasgow
fbrozovic has joined #glasgow
<fbrozovic> Hi guys, has anyone used the SPI controller with a peripheral that only supports mode 1 (CPOL 0 and CPHA 1)? I'm currently trying to interface to an ADS131M08 ADC and running into issues. If I simply set sck_idle to 0 and sck_edge to falling, the data is shifted out half a clock cycle too early...
<fbrozovic> I'm trying to fix the SPI controller to support mode 1 as well, but I'm unsure of the best way to do that
<whitequark> oh, oops, there might be bugs lurking in that code
<fbrozovic> is there an easy way to simulate the controller and write out a vcd file? so far i've been measuring the bus with a logic analyzer, but of course i have no visibility into the state of the controller like this, making it hard to debug
<whitequark> take a look at the unit tests that are present in some applets
<fbrozovic> looks like it might be enough to insert a delay of half an sck period between the RECV-DATA and TRANSFER states when CPHA=1. is there a better way to do that than simply counting sys_clk cycles?
<fbrozovic> scratch that, that just delays sck further
GNUmoon has quit [Ping timeout: 258 seconds]
GNUmoon has joined #glasgow
GNUmoon has quit [Remote host closed the connection]
fbrozovic has quit [Quit: Client closed]
potash has quit [Read error: Connection reset by peer]
potash has joined #glasgow
Guest59 has joined #glasgow
Guest59 has quit [Client Quit]
cr1901_ is now known as cr1901
GNUmoon has joined #glasgow
brolin has joined #glasgow
balrog has quit [Ping timeout: 268 seconds]
balrog has joined #glasgow
brolin has quit [Read error: Connection reset by peer]
jstein has joined #glasgow
kmehall_ has quit [Remote host closed the connection]
kmehall has joined #glasgow
puck has quit [Excess Flood]
puck has joined #glasgow
ar-jan has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
bvernoux has quit [Quit: Leaving]
ar-jan has joined #glasgow