Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
This is my final code but it's blinking really weird...3 times, then 4 times, then again 3 times, then 4 times, and so on....:
#include <mega164a.h>
#include <stdio.h>
#include <delay.h>
#include <string.h>
#include <stdlib.h>
#define LED1 PORTD.6 // PORTx is used for output
#define...
Here it's a simplified version of the main function:
/*********************************************
Project : Test software
**********************************************
Chip type: ATmega164A
Clock frequency: 20 MHz
Compilers: CVAVR 2.x
*********************************************/
#include...
Hello guys, I'm trying to make a led blink at 3 different frequencies, upon successive keypresses. My problem right now it's that it's only blinking 2 times and I don't understand why. D6 is LED, D4 is the test output. Here it's my main function:
/*********************************************...
Unfortunately I don't have the access to some real components...I couldn't find on the internet a complete schematic for ATmega164 and LM35 sensor, so that's why it's a little bit complicated for me to do it...
1606418611
To rewrite my question:
So, what I want to achieve in this is project is...
Sorry Klaus, I'm a beginner in this area, I just want to pass my subject and I don't know what to do, I have a teacher that doesn't want to help us so I need to figure out myself how can I solve this problem... What I need to do is to build a graphic display thermometer in Proteus, with an LM35...
This is what I have now: My problem is that I can't translate mikroC code to CodeVisionAVR language :( How can I translate this to CodeVision Code:
char arr[11]="0123456789";
int res = 0;
res=ADC_Read(0);
LCD_Chr(2,1,arr[res/100%10]);
LCD_Chr(2,2,arr[res/10%10])...
I don't have any error displayed since the program that I have here compiles successfully, but as I've said I can only power the display and that's it..The power supply it's connected from the pin nr 4(Reset)
Right now I'm not interested in doing ,,the real thing", it's just for learning purposes.. I have made a code but I can't display the temperature on the display, I can only power it...Can you please help me?
#include <mega164a.h>
#include <delay.h>
// Alphanumeric LCD functions
#include...
Hello guys,I'm trying to build a graphic display thermometer in Proteus, with an LM35 sensor using the ATmega 164 microcontroller.
My problem is that I don't know how to connect the temperature sensor to the microcontroller. When I'm trying to program this using the CodeVisionAVR I'm receving...
Hello, I need to simulate the following circuit in LTSpice. I made the scheme but I don't know what value to choose for R2 and Cinf in order to have theoretical gain Av=1500. The following constraints are imposed: Vcc=10v; VCM=1.5V; vg it's a sine wave with a frequency of 1Khz and R1=15kOhms. I...
Thanks for your help! What I found is that ICq5=ICq6=ICq7=ICq8=(Vcc - Vbe)/R2; ICq1=ICq2 = [ICq7 / 2 ] * [Beta/(Beta+1)]; ICq4=iCq2-current of Q5; ICq3=ICq1-current of Q3-current of Q4; Beta in my case it's 182.1 because I'm using an BC847A transistor.
A=Vo/Vg = Gm_q2 * Beta_q5 * R1
Gm_q2=ICq2 /...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.