Search found 49 matches
- Tue Feb 03, 2015 2:45 pm
- Forum: User Projects
- Topic: [TODO] QEI driver
- Replies: 9
- Views: 9234
Re: [TODO] QEI driver
Worked well for handling the A/B phases on one of these cheapo laser printer motors with attached 448 line encoders. Any ideas about handling more than 16 bits of offset? The encoders can generate around 250,000 transitions per second. A few tweaks were needed for 3.0, mostly to do with debug. Thanks
- Tue Sep 23, 2014 4:47 pm
- Forum: Kinetis Support
- Topic: SPI driver for KINETIS K20.
- Replies: 35
- Views: 24046
Re: SPI driver for KINETIS K20.
All good, I will include them in my next SPI update.
- Mon Sep 22, 2014 1:23 am
- Forum: Kinetis Support
- Topic: SPI driver for KINETIS K20.
- Replies: 35
- Views: 24046
Re: SPI driver for KINETIS K20.
Fabio,
Thanks, configured Linux and downloading ISE...
Thanks, configured Linux and downloading ISE...
- Mon Sep 22, 2014 12:26 am
- Forum: Kinetis Support
- Topic: SPI driver for KINETIS K20.
- Replies: 35
- Views: 24046
Re: SPI driver for KINETIS K20.
I hadn't thought about the memory bandwidth issue. I was more interested in the simplicity of always waiting for the data to cycle through the RX path. Also the I/O hasn't finished until the RX has happened. Is there a danger of starting a new TX before the RX is finished? I see this as more of an i...
- Sun Sep 21, 2014 10:34 pm
- Forum: Kinetis Support
- Topic: SPI driver for KINETIS K20.
- Replies: 35
- Views: 24046
Re: SPI driver for KINETIS K20.
fpga_comp, Well I won't make any claims about this being well tested so don't burn your code just yet! The DMA channel allocator is a good idea, feel free to integrate it into spi_lld.c. It is still a work in progress. I was planning on tweaking SPI to work well with uGFX. It would be nice to have a...
- Sun Sep 21, 2014 7:15 pm
- Forum: Kinetis Support
- Topic: Kinetis support in trunk
- Replies: 18
- Views: 12000
Re: Kinetis support in trunk
I fixed that earlier on today. It should be good now.
- Sun Sep 21, 2014 5:12 pm
- Forum: Kinetis Support
- Topic: SPI driver for KINETIS K20.
- Replies: 35
- Views: 24046
Re: SPI driver for KINETIS K20.
I have reimplemented the K20x SPI driver using DMA using the following advice as a guide, thanks to fpga_comp for the pointer. There is a DMA SPI library for the Teensy 3.X (K20) ... The upper control words are defaulted to all 0's. None of the fancy hardware SPI chip select stuff can be used. Those...
- Wed Sep 10, 2014 5:38 pm
- Forum: Kinetis Support
- Topic: RTC driver for Kinetis.
- Replies: 13
- Views: 10066
Re: RTC driver for Kinetis.
Giovanni, I added conversions between RTCDateTime and time_t to the Kinetis rtc_lld.c based on the toolchain provided mktime() and localtime_r() functions. void RTCDateTime2TimeT(time_t *tt, const RTCDateTime *dtp); void TimeT2RTCDateTime(const time_t *tt, RTCDateTime *dtp); The downside is that it ...
- Wed Sep 10, 2014 1:54 pm
- Forum: Kinetis Support
- Topic: RTC driver for Kinetis.
- Replies: 13
- Views: 10066
Re: RTC driver for Kinetis.
Hmmm, DST changes at between 2AM and 3AM in the US. Some nights have 2 x 2:30AM, some nights have none. Alarms which span DST changes would be tricky.
- Wed Sep 10, 2014 1:50 pm
- Forum: Kinetis Support
- Topic: RTC driver for Kinetis.
- Replies: 13
- Views: 10066
Re: RTC driver for Kinetis.
Three "reasons". 0. When did the Epoch become 1980!!! 1. rtcSetAlarm() and rtcGetAlarm() are only declared when STM32_RTC_NUM_ALARMS > 0 2. Lastly, and the only real one, for the STM32 RTCv2 driver it is really easy to map the DateTime onto the registers. For a processor using uint32_t it ...