Question: we use atmelstudio , atmega 1 2 8 and proteus. I need help for my project. Task 1 : Write the following code in main.c
we use atmelstudio atmega and proteus. I need help for my project.
Task : Write the following code in main.c file.
Author : hafize
#define FCPU L
#include
#include
int mainvoid
DDRB b;
while
PORTB b;
delayms;
PORTB b;
delayms;
code in report where your code each lines include comments and results discussions as well at the end of each
task.
Use the figure to design the circuit on proteus and connect the wire accordingly.
You can use any port to design the circuit.
Irrelevent discussion of results marked as zero.
Task : Use the lab task code and build a following circuit given in figure on proteus. After
completing the task, run the code and show it to instructor.
Double click on the controller and select the correct parameter fig b blue for the setting.
Do analysis on parameter that you select & why you choose? Mentioned in report.
Edit Component
Part Reference:
Part Value:
Element
PCB Package:
Program File:
CKOPT Oscillator Options
BOOTRST Select Reset Vector
WDTON Watchdog timer always on
CKSEL Fuses:
Boot Loader Size:
SUT Fuses:
Advanced Properties:
Clock Frequency
Task : Build a following circuit given in figure on proteus, write a code to toggle the state of the LED
when button is pressed.
Figure
Task : Using Atmega Connect LEDs to any port and toggle the pins of the port indefinitely.
Figure
Task : Wave Generation
Generate the square waves of and duty cycle using delay function for different
frequencies in C language.
Make a circuit design on proteus and verify your code.
o Hint: You can use the leds for shows the frequencies and the better understanding as well.
Figure
Task : Traffic Signal controller
You need to design a fourway traffic signal controller. Your code and design must be in a well
manner way to indicates each parameter. Fig
Make a flow chart.
Code
Circuit Diagram on Proteus.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
