Post Created date
atmega
okay  
Monday, 6 January 2020 - 18:24
atmega
Ok i understand but ReadADC only chooses the right adc channel and returns it during the interuppt which seems to work 
Monday, 6 January 2020 - 16:29
atmega
Okay so i shouldnt use readADC in the interrupt? So i can use the transmission inside the isr like this?   ISR(TIMER1_COMPA_vect){   SPI_transmit_data(adcVal);...
Monday, 6 January 2020 - 16:11
atmega
if i want to send the value through spi every 1s can i put the transmission inside the isr interuppt or should it be in the while(1) instead? Two diffrent examples ->...
Monday, 6 January 2020 - 15:16
atmega
Okay i think so i get value 344!
Sunday, 5 January 2020 - 11:22
atmega
Okay thx!! i understand chan, but why do you right shift adcVal with 8? do u put it to channel 8? Oh i used the timers to send the adc value every 0.5ms
Sunday, 5 January 2020 - 02:39
atmega
Im not sending it to another mcu devie (slave), i just want to use the intern tempsensor in a SPI bus. The problem is i wan't to see if i'm putting the correct intern temperature...
Saturday, 4 January 2020 - 12:45
atmega
Oh okay i changed it, but how am i able to see the internal temperature ?  
Friday, 3 January 2020 - 17:24
atmega
Oh sry it was in my adc.h file but i had it tho #include <avr/io.h> #include "ADC.h" void ADC_init(){ ADMUX = (1 << REFS0) | (1 << REFS1) | (1 << ADLAR...
Thursday, 2 January 2020 - 20:37
atmega
yes i already did that !
Thursday, 2 January 2020 - 20:27
atmega
Ive change the code a little bit, my main issue is i cant see the internal temp when i try to print it? I haven't connected it with pins or anything i assume it works directly by...
Thursday, 2 January 2020 - 20:00
atmega
No sry i meant 0.5 ms
Thursday, 2 January 2020 - 15:35

Pages