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

Ghulam Mustafa

  • Profile
  • Topics Started
  • Replies Created
  • Engagements

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • July 11, 2012 at 6:04 pm in reply to: Sending data serially to pc #8243
    Ghulam Mustafa
    Participant

    wysiwyg_imageupload:5410:

    wysiwyg_imageupload:5411:wysiwyg_imageupload:5412:

    June 29, 2012 at 7:50 pm in reply to: How could these program compiled? #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 29, 2012 at 12:04 pm in reply to: How could these program compiled? #8151
    Ghulam Mustafa
    Participant

    An important observation:

    When the input voltages are less than 2V this error doesnt occour!

    June 28, 2012 at 9:55 pm in reply to: How could these program compiled? #8149
    Ghulam Mustafa
    Participant

    i think that the coder has send all the 10 bits to port b this is the reason that the port is flashing. What do you ppl think?

    June 28, 2012 at 9:36 pm in reply to: How could these program compiled? #8148
    Ghulam Mustafa
    Participant

    I have added 4Mhz crystal now, but still facing the same error.

    I have tried some other program which is running correctly.

    So the problem, i think is in the code. http://www.engineersgarage.com/embedded/avr-microcontroller-projects/adc-circuit

    Kindly check it and inform me, why the ports are continously blinking.

    Thanks

    June 27, 2012 at 5:50 pm in reply to: How could these program compiled? #8141
    Ghulam Mustafa
    Participant

    Thanks very much

    Two thinks to ask before implementing.

    1- this program was simulated on Proteus and was running well without the oscillator

    2- Is there any prblem in the fuse bits

    Pls reply so that i may implement it now

    June 27, 2012 at 4:15 pm in reply to: How could these program compiled? #8138
    Ghulam Mustafa
    Participant

    Hello Amrith

    Thanks for replying, i have mentioned the link which i am following to develop the circuit. Actually i doesnt contain any external oscillator.

    Thanks

    June 27, 2012 at 4:10 pm in reply to: How could these program compiled? #8137
    Ghulam Mustafa
    Participant

    wysiwyg_imageupload:5162:Hello,

    I am using the following cofiguration for the atmega16 controller.

    I think that the last reason may be this issue.

    Kindly check and inform if this is the main issue.

    Thanks

     

    June 27, 2012 at 1:41 pm in reply to: How could these program compiled? #8132
    Ghulam Mustafa
    Participant

    I tried it all but the program is not running. Also when i simulated the circuit in Proteus it is working correctly, while not on the bread board.

    Also another simple circuit has the same problem

    Pls guide what migt be the problem and how it could be resolved.

    Thanks

    June 22, 2012 at 3:10 pm in reply to: How could these program compiled? #8114
    Ghulam Mustafa
    Participant

    Thanks alot,

    I compiled and burn the program on the chip, i am facing a problem that the LED present at the output are continously blinking if i provide some voltage on the adc pin, otherwise if i connect this pin to VCC or GND, they are continously high or low.

    Pls guide what could be the problem now.

    Thanks again

    June 22, 2012 at 2:57 pm in reply to: How could these program compiled? #8113
    Ghulam Mustafa
    Participant

    Thanks alot

    I have programmed the AVR, http://www.engineersgarage.com/embedded/avr-microcontroller-projects/adc-circuit but LED’s are flashing continously, while when i switch them to Gnd all are Off, and when Vcc is supplied all are High.

    While when connected to Pot, they flash with different values.

    What might be the problem now?

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)

RSS Recent Posts

  • Projector focus circuit May 18, 2026
  • Relay question May 18, 2026
  • Phone Charger 5v to 12v May 17, 2026
  • reviving old swordfish program but? May 17, 2026
  • Assistance locating a 'trail' camera gadget, please ? May 16, 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