EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / help in input of atmega 8l

help in input of atmega 8l

|

Microcontroller › AVR › help in input of atmega 8l

  • This topic has 2 replies, 3 voices, and was last updated 8 years, 8 months ago by Ashutosh Bhatt.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 2, 2011 at 7:15 am #610
    Ahmet
    Participant

      

    im a begineer 
    i have learn`t to use avr`s outputs (did sum blinking..,patterns,7seg display..etc) 
    but its a week now and im not able to read inputs.. 
    PLZ HELP 
    also tell that can avr detect an output high of 3v..

    October 17, 2016 at 7:17 am #14199
    GANEEV SINGH
    Participant

    Hi Ahmet

    Make sure that you are defining a particular pin/port as input, also after that declare whether it is pulled up or not. Go as follows:

    DDRC & = ~(1<<0);    // defined PORTC's 0 pin as i/p pin

    PORTC | = (1<<0);     // declared it as a pulled up i/p pin

    Now if you try reading this pin's value it will give you a high state unless any logic 0 is applied to it externally, this is because its pulled up.

    This might help, good luck :)

    October 21, 2016 at 9:52 am #14205
    Ashutosh Bhatt
    Participant

    always connect pull up resistor of 1K-10K with ATmega pin when it is used as input

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Is AI making embedded software developers more productive? June 17, 2025
  • Can I make two inputs from one?? June 17, 2025
  • Why can't I breadboard this oscillator? June 17, 2025
  • Cataract Lens Options? June 16, 2025
  • Back to the old BASIC days June 16, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise