Post Created date
Setting SPI with 20MHz clock
Thank you,   Does that mean that a clock divider of 4 is explicit  if nothing is set?  I was under the impression that I could run SCK at 20MHz but couldn't find a...
Tuesday, 19 January 2021 - 11:31
Communicating with a TLC5947
Thanks for all your help guys,   In the end I couldn't get rid of flicker at certain pwm levels with more than 1 TLC5947 despite trying numerous options.  In the end I...
Tuesday, 1 December 2020 - 18:13
Simple timer with 20mHz clock
I might be wrong, but with a clock speed of 20mHz, I don't think an 8bit timer would work would it?   regards  
Friday, 20 November 2020 - 20:36
Simple timer with 20mHz clock
Good point, though I have 3 16bit timers in the Atmega324PB   regards  
Friday, 20 November 2020 - 19:53
Simple timer with 20mHz clock
Ah, thank you, I assumed it was a standard formula   Atmega324PB -  for no prescaler, CS11 is not set. so    TCCR1B |= (1 << WGM12)|(1 << CS10);...
Friday, 20 November 2020 - 19:52
Simple timer with 20mHz clock
Thanks,   However all the examples have a prescaler of 64     ie // set up timer with prescaler = 64 and CTC mode TCCR1B |= (1 << WGM12)|(1 << CS11)|(1...
Friday, 20 November 2020 - 18:10
Simple timer with 20mHz clock
Thank you.   My question then is, how do I get the timer to generate an interupt at 1,250? and would a prescaler of CLK/64 be better? (625 ticks)?   regards  
Friday, 20 November 2020 - 12:15
encoder rotation speed detection
I guess it's because I went down the route of using Pcint's and it's working (apart from the 'fast' mode. Using hardware debounce simplifies the code (I have small caps on each...
Thursday, 19 November 2020 - 21:02
Communicating with a TLC5947
Thanks Guys,   All the advice given here got it working, many thanks   I have 2 questions though which relates to Kartman's posted code.   In the converted write...
Monday, 23 December 2019 - 20:36
Communicating with a TLC5947
It's written for the Arduino.  I'm using Studio 7.  Plus there's the license issue.   regards  
Wednesday, 18 December 2019 - 17:10
Communicating with a TLC5947
Forgive me, I'm still fairly new to this hardware stuff.     The code examples I looked at weren't very obvious in their workings with regards to SPI or at least they...
Wednesday, 18 December 2019 - 13:38
Communicating with a TLC5947
Thanks for looking, I appreciate it.   I've had a good search over the last 36 hours, most code snippets are based on hardware but I have enough to go on now.    ...
Wednesday, 18 December 2019 - 13:34

Pages