Connect with us

HELLO WORLD - LED BLINKING - HELP

Discussion in 'Microcontrollers, Programming and IoT' started by sheffladreece, Feb 23, 2015.

Scroll to continue with content
  1. sheffladreece

    sheffladreece

    22
    0
    Jan 24, 2014
    Newbie here learning how to program.

    Quick brief of equipment-
    Using a USBtinyISP with a ATMega328p MCU on windows 8.1 using programmers notepad in C/C++

    Cant seem to get the LED to turn on at all nethermind blinking.

    Any help woud be appreciated thanks.

    See image of setup and coding as attached
     

    Attached Files:

  2. sheffladreece

    sheffladreece

    22
    0
    Jan 24, 2014
    The LED wont even light with the simplest of code, but no problem with make all or programming?????



    #include <avr/io.h>

    int main(void)
    {
    DDRB = 0b00000001; //Data Direction Register setting pin0 to output and the remaining pins as input
    PORTB = 0b00000001; //Set pin0 to 5 volts
    }
     
  3. sheffladreece

    sheffladreece

    22
    0
    Jan 24, 2014
    [FIXED] I didnt connect the MCU GND to the GND on my board
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-