Skip to main content
Arduino

Timeline for L9780 and SPI communication

Current License: CC BY-SA 4.0

11 events
when toggle format what by license comment
Aug 19 at 18:01 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Apr 21 at 16:04 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Dec 22, 2024 at 15:01 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Aug 24, 2024 at 15:00 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jul 24, 2024 at 12:49 answer added jungle_jim timeline score: 0
Jul 20, 2024 at 14:33 comment added jungle_jim @hcheung Also, thanks for the heads-up on the endianness. That'll be easy to implement and at least provide another known. I had looked into how pointers/addresses worked with big/little endian on the worry I was mixing something up. I wasn't 100% clear on how the endianess worked with a #define that was expanded at compile time and the SPI.transfer order. That's reason why I used a secondary local variable in the function call with the hope was implementing a local var would alleviate issues. I'll try both and see what happens!
Jul 20, 2024 at 14:28 comment added jungle_jim @hcheung thanks, some good feedback. I've run some SPI devices capable up around 10MHz before but I never really dug into their library far to see if they were adjusting the prescalar or not; that's a poor assumption on my part, it's never a bad thing to slow it down first so that'll be a good start to check things.
Jul 20, 2024 at 13:46 comment added hcheung 1) The datasheet say maximum 8MHz, it doesn't mean you have to run at 8MHz, in fact since you are using an Uno which has a clock speed of 16MHz, you probably shouldn't run the SPI higher than 4MHz. 2) I don't think your code send the correct command due to Endianness. So instead of defining the L9780_status_reg as 0xF7FFFFFFFFFFFFFF, defined it with an array L9780_status_reg[] = { 0xF7, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}, this will ensure the MS bit of the MS Byte get send out first with SPI.transfer(L9780_status_reg, sizeof(L9780_status_reg));
Jul 20, 2024 at 1:17 history edited jungle_jim CC BY-SA 4.0
added 359 characters in body
S Jul 20, 2024 at 1:13 review First questions
Jul 20, 2024 at 1:15
S Jul 20, 2024 at 1:13 history asked jungle_jim CC BY-SA 4.0

AltStyle によって変換されたページ (->オリジナル) /