Post Created date
ATmega8 SPI
Hi, I've found root cause of problem! But first I must say that I have learned some things: working with led as a logic analyzer and working with proper logic analyzer. Also I did...
Thursday, 28 March 2019 - 20:23
ATmega8 SPI
ki0bk wrote: This line does not look right to me: #define LPS331AP_CS_PIN DDB0DDB0 i'm sure is defined in the header as an address where that register located  rather then...
Wednesday, 27 March 2019 - 20:18
ATmega8 SPI
I have tested my code and setup using logic analyzer (cheapest possible, I totally not recommend it if you only use windows, but after a fight I got it working under linux), and...
Wednesday, 27 March 2019 - 19:37
ATmega8 SPI
glitch wrote: did you try adding that NOP between the writing to SPDR, and the while wait loop? It is needed due to the fact that the bit is cleared after it would be sampled for...
Wednesday, 27 March 2019 - 10:05
ATmega8 SPI
Thanks for avatar idea! In previous post I forgot to mention that I connected master out to master in to check if spi is working - I saw on Arduino serial out byte 0x8F. This was...
Monday, 25 March 2019 - 21:58
ATmega8 SPI
glitch wrote: You need to pay attention to the required SPI mode, which defines the polarity and phase of when data is valid relative to the clock. I also thought that this may...
Monday, 25 March 2019 - 21:34