Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Timer Interrupt of AVR

Status
Not open for further replies.
Hi Imran,

Are you sure it is 4822 bytes, not 4822 words?

Klaus
 

Dear KlausST,

It is kBytes not word.
kindly find attachment.

But in the compiler I do not confirm that it is byte or word.
How to reduce memory allocation?



Dear KlausST,

Where are you?
 

Attachments

  • Atmega8.png
    Atmega8.png
    76.9 KB · Views: 63
Last edited:

Hi Imran,

I'm not familiar with C.

You have to find how much data and for what it is used.
Maybe look into the asm code,
May you have to choose another Avr.
Other members may assist you better here.

Klaus
 
Its Ok dear KlausST,

I have changed Atmega8 to Atmega16 and problem solved and voltmeter runs excellently.
 

Dear KlausST,

I built voltmeter on Printed Circuit Board , it runs successfully but some flickering appears in the digits not smooth
displaying.What should I do for repair it?
 

Hi Imran,

please describe "some flickering appears in the digits not smooth
displaying" better.

Klaus
 
Dear KlausST,

Means the voltage is displaying i.e 123 but 123 very fastly on and off.
 

Imran,

Post in its entirety the current version of your code, including any functions/routines you've written.


BigDog
 

Dear bigdogguru,

Please reply on given code.

- - - Updated - - -

Dear KlausST,

Please read given code the only problem is flickering of display.
 

Hi Imran,

Sorry for the late answer...

The answer fir the flickering is in my posts 23 and 36.

You update the disply values too often.
Just use the "flag" solution and see what happens....

.............

I only had a short look to your code:
* sometimes there is portd used for display, sometimes portc. Some more remarks in your code could help us to understand what it does / should do. What is the multiplex rate.
* Did you check the timing with all your code. Check how often per second runs the one and the other isr? What runtime have the two isr?

Klaus
 
Dear KlausST,

Thank you for reply no problem,

The problem is solved, the problem was I did not reload timer0 counter "TCNT0=0 "in ISR.After that it runs perfectly nice.

Again thank you for you because you teach me and excellent co-operation with me.
 

Dear KlausST,

Please discuss on this thread "Proper Selection of a Current Transformer for DMM Design"
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top