Search found 15 matches

by qjones
Thu May 18, 2017 11:34 pm
Forum: ESP-IDF
Topic: LEDC: The values of "ledc_timer_bit_t"
Replies: 2
Views: 6503

Re: LEDC: The values of "ledc_timer_bit_t"

I have a question somewhat in reference to this. I am aware that recently there has been an implementation of the Low Speed Timer portion of the LEDC driver. I am curious as I have not exactly seen any use cases yet of what exactly this feature does vs the High Speed Timer modes? Does this also let ...
by qjones
Mon Apr 17, 2017 7:44 pm
Forum: Sample Code
Topic: Non DMA version of the spi_master driver
Replies: 14
Views: 31091

Re: Non DMA version of the spi_master driver

Everything seems to be running smoothly now. I will let you know if I run into anything. I have a particularly tricky spi device too so that is nice it is working well. Thanks again for your contribution!
by qjones
Fri Apr 14, 2017 4:00 pm
Forum: Sample Code
Topic: Non DMA version of the spi_master driver
Replies: 14
Views: 31091

Re: Non DMA version of the spi_master driver

Good deal. Also I am not sure if I was clear of what I think the main bug I had was. On lines 810 to 814. On line 810 I think you need the check for the usr_miso to be true. Otherwise in full duplex mode host->hw->mosi_dlen.usr_mosi_dbitlen ends up overflowing to 16.7 million (0 - 1 of an unsigned i...
by qjones
Thu Apr 13, 2017 4:53 pm
Forum: Sample Code
Topic: Non DMA version of the spi_master driver
Replies: 14
Views: 31091

Re: Non DMA version of the spi_master driver

Loboris, I have switched over to using your driver as I was having the same shifting issues with DMA transfers. I actually thought my sensor just might have been borked and spent WAY too long debugging this. However with you driver I have noticed what seems to be a bug for me on the write transmissi...
by qjones
Sun Mar 19, 2017 6:41 pm
Forum: ESP-IDF
Topic: Flashed app not running automatically
Replies: 1
Views: 4550

Flashed app not running automatically

Hello, I am not sure if I am doing something wrong here or just overlooking a menuconfig option. It took me a while to notice as most of my development has been connected over USB and doing a make flash, monitor etc which starts the code up fine. But now I am trying to get my project mobile. I notic...
by qjones
Fri Mar 03, 2017 3:35 am
Forum: ESP-IDF
Topic: [Answered] SPI Read Register Delay
Replies: 13
Views: 22512

Re: [Answered] SPI Read Register Delay

That's a good point. I am definitely getting a spics pin invalid error from that line though. I only looked briefly earlier and saw the logic as reversed. My mistake. I will have to do more debugging to see what is happening.

Thanks for your help.
by qjones
Thu Mar 02, 2017 4:02 pm
Forum: ESP-IDF
Topic: [Answered] SPI Read Register Delay
Replies: 13
Views: 22512

Re: SPI Read Register Delay

Then you can activate CS (set low any pin used as CS) before first transaction, execute transaction, wait some time, execute the 2nd transaction and deactivate CS. This is exactly what I ended up doing to get it working late last night. I did not realize at first I could separate the CS into a soft...
by qjones
Thu Mar 02, 2017 2:51 am
Forum: ESP-IDF
Topic: [Answered] SPI Read Register Delay
Replies: 13
Views: 22512

Re: SPI Read Register Delay

Sounds like a job for dummy bits and disable clk during dummy phase. Can you explain a little further. I see the dummy bits, and I believe I see where to set the clock disable in spi_dev_t struct definition. But I don't see an easy way to set this without a modified spi_master.c. I will keep lookin...
by qjones
Wed Mar 01, 2017 11:46 pm
Forum: ESP-IDF
Topic: [Answered] SPI Read Register Delay
Replies: 13
Views: 22512

Re: SPI Read Register Delay

It is the ADNS-3080 optical mouse sensor. Very cool board. I am needing to use it for some basic image processing and possibly for optical flow position calculations on a project. It's an older chip and this seems to be the best link. https://people.ece.cornell.edu/land/courses/ece4760/FinalProjects...
by qjones
Wed Mar 01, 2017 10:35 pm
Forum: ESP-IDF
Topic: [Answered] SPI Read Register Delay
Replies: 13
Views: 22512

Re: SPI Read Register Delay

I thought about this. I just have not had a chance to try it yet. I am still new to the ends and outs of the SPI bus particularly now that I am trying to write some of my own device interfaces. However the way I understand it is that the CS line will get toggled with each of the spi_device_transmit(...