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 / query

query

|

Microcontroller › AVR › query

  • This topic has 1 reply, 2 voices, and was last updated 12 years ago by Ashutosh Bhatt.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • April 3, 2014 at 4:57 pm #3014
    Kaushal Thacker
    Participant

    hello everyone, i am an entry level programmer trying to develop program of water level indicator using atmega16.i am using proteus emulator to verify the program.i’ve developed the code without simulation error but it is not working in proteus.so need help to find any logical error. here is my prepared code: #define F_CPU 8000000 #include #define n0 PC0 //top level #define n1 PC1 //3/4th level #define n2 PC2 // 1/2 level #define n3 PC3 // 1/4th level int main(void) { while(1) { DDRA=0x0f; DDRC=0x00; //PORTA=0x01; if (n0==1 && n3==0) { PORTA=0x01; } else if (n0==0) { PORTA=0x00; } else PORTA=0x00; } }

    April 3, 2014 at 5:02 pm #11460
    Ashutosh Bhatt
    Participant

    first let us know what do u want to do actually?

    what is ur input output?

    what is ur hardware?

    then post your code.

    pls post code properly

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

RSS Recent Posts

  • SDCC Array Access In Timer 0 Interrupt Handler April 14, 2026
  • Voltage comparator circuit verification April 13, 2026
  • EasyEda program has a major bug April 13, 2026
  • Chatter April 13, 2026
  • understanding transmission line properties from TDR plot April 13, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

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