Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ONLY for people who know about AtmelStudio 7 We are using atmega1280, and we customized our own PCB with this chip to it. We want

ONLY for people who know about AtmelStudio 7

We are using atmega1280, and we customized our own PCB with this chip to it.

We want to program to it.

The picture below says these are not defined, but this is the exact code from the hello world example.

Is my avr/io.h file not included rightly? How do i manually add this include path.

image text in transcribed

#include int main(void) PORTB.DIRSET = PIN4_bm; PORTB.PINSCTRL = PORT PULLUPEN_bm; while(1) /* Configure LED Pin as output */ /* Enable pull-up for Swo pin */ if (!(PORTB.IN & PINS_bm)) /* Check switch state */ PORTB.OUTCLR = PIN4_bm; /* Turn LED off */ else PORTB.OUTSET = PIN4_bm; /* Turn LED on */ #include int main(void) PORTB.DIRSET = PIN4_bm; PORTB.PINSCTRL = PORT PULLUPEN_bm; while(1) /* Configure LED Pin as output */ /* Enable pull-up for Swo pin */ if (!(PORTB.IN & PINS_bm)) /* Check switch state */ PORTB.OUTCLR = PIN4_bm; /* Turn LED off */ else PORTB.OUTSET = PIN4_bm; /* Turn LED on */

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

explain the concept of strategy formulation

Answered: 1 week ago