Question: C Compiler, template: /* ******************************************************************** Program Name: _simple_LED_blink_ATtiny817XP_ver01.c Test environment: - Bare metal C via Atmel Studio 7 - ATtiny817 Xplained Pro development board Usage:

C Compiler, template: /* ******************************************************************** Program Name: _simple_LED_blink_ATtiny817XP_ver01.c Test environment: - BareC Compiler, template:

/* ********************************************************************

Program Name: _simple_LED_blink_ATtiny817XP_ver01.c

Test environment: - Bare metal C via Atmel Studio 7 - ATtiny817 Xplained Pro development board

Usage: - Run the program in Atmel Studio 7 - Observe the blinking LED0 ******************************************************************** */

// the AVR input/output header file #include

// 16MHz, the frequency of our main clock #define F_CPU 16000000

int main(void) { // Configure all pins on PORTB to be outputs PORTB.DIR = 0xFF; while (1) {

// SET all PORTB pins // which turns LED0 off PORTB.OUT = 0xFF;

// ***************************************************************** // *** // *** // *** // waste some time so we can see the LED flash // waste some time with a for loop // and some multiplies int index; int a = 10; for (index=0; index

// CLEAR all PORTB pins // which turns LED0 on PORTB.OUT = 0x00;

// ***************************************************************** // *** // *** // *** // waste some time so we can see the LED flash // waste some time with a for loop // and some multiplies int index; int a = 10; for (index=0; index

return 0; }

Exercise 1.08-Write a program on the ATtiny817 to flash the on-board user LED. Cause the user LED to output the message "Washington - July 2, 1862." irn Morse Code. Exercise 1.08-Write a program on the ATtiny817 to flash the on-board user LED. Cause the user LED to output the message "Washington - July 2, 1862." irn Morse Code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!