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.
I know this is not PCB. I just mean if i designed same circuit in PCB. which one would be the best?? i know in PCB no circuit will be connected 90 degree.
OK.. i came to know that the data written in RAM is not necessary to be erased after coming out from the function. But, it can be erased whenever necessary. But, again i have one doubt how can it be found out that particular memory in RAM is not in use, and so can be replaced by some other...
Hi everyone,
Does the variables declared in some function totally destroyed when we come out of the function. Or, is it that the memory address allocated by the variable can be replaced by other programs/functions at any time?
Let me write another example exactly as above but with pointer to integer.
#include<iostream>
#include<conio.h>
#include<stdio.h>
using namespace std;
int main()
{
int *b,*a,*c;
c=new int;
b=NULL; //it is not pointed any where
a=b; //according to you this is...
When i write this it works fine
#include<iostream>
#include<conio.h>
#include<stdio.h>
using namespace std;
typedef struct stack
{
int num;
stack *lpnext;
};
stack *head=0;
void push_me_back(int num)
{
stack *tmp,*tmp2;
tmp=new stack;
tmp->num=num...
Yes, i am asking for same thing as told by FoxyRick and not about SPI or expanding input/ouput pins. If you have any idea about it please do help me.
thanks in advance.
Hello everybody,
I have used 74595 to extend output pin and 74165 to extend input pin of my micro-controller separately. In micro-controller we can use same pin as input or output. Is there any way, I can do to my extended pins same as in microcontroller
i don't know which shift register you are talking about ... if 8-bit is ok then here i have written a program for 8-bit 74595 shift register
#ifdef F_CPU
#undef F_CPU
#endif
#define F_CPU 8000000L
#include<avr\io.h>
#include<util\delay.h>
#define SR_DDR DDRC
#define SR_PORT PORTC
#define...
Which programmer are you using for downloading your hex file into atmega32 ?? I don't know about other programmers but if you are using usbasp then your pin 25 must be grounded .. this slows down ISP clock
i think second one is better between these two. but just looking at those two functions writing fscanf inside loop is useless.
i think it would be better if we do it in this way...
char *arr;
unsigned int length;
file=fopen(argv[1],"r");
fseek(file,0,SEEK_END);
length=ftell (file)...
thanks for your reply Alex....
But,there are no any loops inside overflow interrupt. on top of that, we are getting desired frequencies as output this means interrupt function must exit at required time. Due to this reason, i changed the value of freq_pb0 in interrupt function because while i...
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.