Post Created date
Half-second delay by Timer 1 in CTC mode is much shorter than expected
Kartman wrote:How much shorter? That usually gives a clue. Your code is littered with ‘magic numbers’ - eg: what modes does 0x0d invoke?   I cannot measure how much shorter...
Monday, 26 August 2019 - 21:51
ADC gives unexpected binary numbers in proteus
Now I have a question related to the ADC : If at some moment the ADH, and ADCL registers have a result of a conversion, and a new conversion starts while the data in the ADCH,...
Thursday, 22 August 2019 - 23:45
ADC gives unexpected binary numbers in proteus
It was all about connecting a capacitor to the AREF pin, and connecting a capacitor and an inductor to the AVCC pin. These extra connections gives the ADC the required accuracy to...
Thursday, 22 August 2019 - 23:43
ADC gives unexpected binary numbers in proteus
clawson wrote: It's a simulator - add a simulated terminal and print the results to the simulated UART that is attached to the simulated terminal   I know the serial port,...
Thursday, 22 August 2019 - 16:34
ADC gives unexpected binary numbers in proteus
clawson wrote: What do you have in ADMUX? The way you read ADCL/ADCH suggests you are using ADLAR but what's the point in that if you plan to read all 10 bits? Why not forget...
Thursday, 22 August 2019 - 16:25
ADC gives unexpected binary numbers in proteus
avrcandies wrote: Forget the leds, just provide the counts.  what count do you get & what count do you expect?   If you think you might get ...
Thursday, 22 August 2019 - 16:20
How does the compiler know the proper function to call when a certain interrupt occurs? using function attribute to handle interrupts.
Thank you, it seems that I should just use the ISR(INT0_vect) method in this stage. The details are confusing for me now, but they will be clear later.
Thursday, 22 August 2019 - 15:01
How does the compiler know the proper function to call when a certain interrupt occurs? using function attribute to handle interrupts.
clawson wrote:I just showed you exactly how something like ADCvect gets linked.   It is a little advanced for me to understand it, I've learnt this __vector_x method from...
Tuesday, 20 August 2019 - 14:55
How does the compiler know the proper function to call when a certain interrupt occurs? using function attribute to handle interrupts.
El Tangas wrote: This is related to another question: how does main() get called?   So, this is how it's done: Every CPU architecture has a default entry point where code...
Tuesday, 20 August 2019 - 14:23
Mapping a switch pressed in a keypad into the character it represents
ki0bk wrote: keypad[4,4] = {'1','2','3','A'......};     //does that help?   Jim     Thanks, I discovered it before seeing your post. But that...
Tuesday, 6 August 2019 - 18:50
A character LCD does not display - AtMega32
avrcandies wrote:     Thanks for the library, but my job scope is implementing the libraries and drivers myself. Then writing codes based on my libraries for a project....
Tuesday, 6 August 2019 - 15:29
A character LCD does not display - AtMega32
ki0bk wrote:   No harm in looking at how he solved the problem!!!   Jim       It was all about using the following in the initialization stage for the...
Tuesday, 6 August 2019 - 15:27

Pages