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
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 5 years, 10 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

  • Nokia 5110 HW in Oshonsoft August 17, 2022
  • Digital Display Information August 17, 2022
  • Seeking Help to compile code August 17, 2022
  • 2nd pcb design program? August 17, 2022
  • Door exit button August 17, 2022

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2022 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