Post Created date
Maximum SPI clock
avrcandies wrote: May I ask what are considerations in setting the clock divider.  Solid wiring & proper bypassing are critical, these are high speed signals and need...
Tuesday, 23 June 2020 - 01:26
Maximum SPI clock
Thank you for the detailed explanation.
Tuesday, 23 June 2020 - 01:24
Enabling Atmega 2560 Analog ports ADC0 to ADC15
ki0bk wrote: Lets try this again: uint16_t ADC_read(uint16_t ch) //ADC read { ch &= 0x07; ADCSRB &= ~(1<<MUX5); //use mux 0-7...
Wednesday, 18 March 2020 - 12:35
Enabling Atmega 2560 Analog ports ADC0 to ADC15
ki0bk and Simonetta thank you for the hints. I tried to do the suggestions and I came up with the code below.  However it does not work as expected. What I am trying to...
Monday, 16 March 2020 - 15:03
Enabling Atmega 2560 Analog ports ADC0 to ADC15
ki0bk wrote: Welcome to AVRFreaks! there is only one ADC, so you select one channel via the mux and do a conversation, then set up the mux for the next one, rinse and repeat!...
Sunday, 15 March 2020 - 15:22
SPI interrupt code
  Read the datasheet description of how the SPI works What happens when you write to SPRD ? When does the interrupt occur ? Your code simply re-writes the value of data into...
Sunday, 2 February 2020 - 09:19
SPI interrupt code
ki0bk wrote: ryan2019 wrote:Do you see what is wrong with the code? Yes, you have a SPI Serial Transfer Complete ISR(), but you never initially send anything out the SPI, so the...
Saturday, 1 February 2020 - 08:51
SPI interrupt code
Are you already familiar with interrupts in general?   And SPI in general ? Yes in general though I am just starting with SPI. Still trying to figure out what went wrong on...
Friday, 31 January 2020 - 16:34
SPI interrupt code
ki0bk wrote: Since it takes so little time to send 8 bits, why have the overhead of an ISR for this simple function? Jim   Yes this is a simple function but my intention is...
Friday, 31 January 2020 - 15:47
SPI interrupt code
  What, exactly, do you mean by that?   What did you intend it to do ? What is it actually doing ? What investigation / testing / debugging have you done to account for...
Friday, 31 January 2020 - 15:20
SPI interrupt code
    It's entirely unrelated but, yes - of course you can do that.       Thank you for the tip. I was able to make the slave interrupt work.  However...
Friday, 31 January 2020 - 14:38
SPI interrupt code
awneil wrote: ryan2019 wrote:I am trying to learn the SPI ... establish a communication between the 2 MCUs. Never start by trying to do both ends of the link - any link - at once...
Friday, 31 January 2020 - 11:02

Pages