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 / How could these program compiled?

How could these program compiled?

|

Microcontroller › AVR › How could these program compiled?

  • This topic has 16 replies, 3 voices, and was last updated 13 years, 9 months ago by Amrith.
Viewing 2 posts - 16 through 17 (of 17 total)
← 1 2
  • Author
    Posts
  • June 29, 2012 at 7:50 pm #8155
    Ghulam Mustafa
    Participant

    Hello,

    I have found this program and is working wel for AVR ATmega16 for ADC conversion and wanted to share

     

    I found it in Avr Microcontroller’s Book by Mazidi
    .INCLUDE “M16DEF.INC”
    LDI R16,0xFF
    OUT DDRB,R16
    OUT DDRD,R16
    LDI R16,0
    OUT DDRA, R16
    LDI R16,0x87
    OUT ADCSRA,R16
    LDI R16,0xC0
    OUT ADMUX, R16
     
    READ_ADC:
    SBI ADCSRA,ADSC
    KEEP_POLING:
    SBIS ADCSRA,ADIF
    RJMP KEEP_POLING
    SBI ADCSRA,ADIF
    IN R16,ADCL
    OUT PORTB,R16
    IN R16,ADCH
    OUT PORTD,R16
    RJMP READ_ADC
     
    June 30, 2012 at 12:36 am #8159
    Amrith
    Participant

    Hi Ghulam,

    Strange issue. I’m working on it, will let you know if any solution found. Till then keep trying to solve it.

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

RSS Recent Posts

  • Getting into an LED bulb April 21, 2026
  • understanding of resonance in time domain April 21, 2026
  • Beginner Questions About CNC Machines – G-code, Control Systems & Accuracy April 21, 2026
  • A Must-Watch Video Showing Dangerous Construction of Cheap Lithium-Ion Cells April 21, 2026
  • S1MJ ? April 20, 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