12 Comments

  1. mary

    Hi
    can you help me about default values of clock sources in QFN or PIDP packages of atmega16?How can I recognise that?

    Reply
    • Elecrom

      They are same. Please check the datasheet pin diagram.

      Reply
  2. ys

    Thank you. useful.

    Reply

  3. Thanks for sharing. Sometimes I found fuse setting like this: Start-up time: xx CK + x ms , what is that mean? Thanks.

    Reply

  4. Good article and I appreciate that!

    Reply

  5. Thanks for sharing!

    It’s impressive!

    Reply
  6. Aïssar

    Are there any C codes showing how to use CKSEL fuses to swith to an external clock source?
    thx

    Reply
    • elecrom

      Fuse bits are not configured in the “C” code. They don’t have any relation with C code. These bits have to be programmed manually.

      Reply
  7. piscianemperor

    ok thanks…but can you tell my why i cannot connect one pin of the TX to ground directly ? bcoz i have tested the TX with a function generator ,n it works fine. wouldn’t LOW of the uC be equal to ground ?

    Reply
  8. piscianemperor

    Hello…i’m new to avr’s,and have used only 8051 before. i’m doing a project,in which i shall be operating the atmega-32 uc such that the OC2/D7 pin is the output. The OC2 o/p will be used to drive an ultrasonic transmitter,and my tests reveal that the ultrasonic transmitter needs atleast 3V for sufficient range.
    Can you tell me what the output voltage of the OC2 pin is ? also,if it is less than 2 V,can u suggest some way of pulling it up ? Can i use a opamp? OC2 frequency will be 40 Khz.

    Reply
    • elecrom

      >>piscianemperor
      HIGH voltage level on the all I/O Pins of uC is always close to VCC. If you give 5V as VCC to ur uC output high voltage will be close to 5V. So you can connect ultrasonic TX to the uC directly. However you cannot connect one pin of TX to uC and other pin to GND. For proper operation and increased range you will have to give complementary signals to each pin of TX. You generate such complementary square wave signals using CTC mode of the timers.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.