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.
Hi
i am using 8051 uc and 1.8 degree motor which is 4 wired hybrid bi polar stepper motor.
Done a coding to control a stepper motor and it is working fine in the frequency of 10-50 Hz.
void T0_ISR (void) interrupt 1 //Timer0 interrupt
{
TL0=0x65; // comes to ISR 1ms once
TH0=0xFC...
If clock speed does not matters means, how arbitration will happen.
Master2 will send faster than master1, if so always master2 wins the arbitration, right ?
Hello everyone,
i know the basic concepts of i2c arbitration.
If two masters try to communicate with a single slave at the same time means, master which sends the low will win the arbitration and another will back off.
But what happens, if two masters are configured with different speed say...
Hello experts,
I am working with pi3, 3.2 inch touch LCD and temperature sensor.
I got output for temp sensor, touch LCD.
Now i have displayed my sensor reading to the touch display in terminal .
But i need to display the temperature reading in GUI like graphical thermometer or analog speedo...
Hello all,
I need to generate variable frequency of range
125Hz to 500Hz.
Is it possible to generate variable frequency using PWM method ? (but not timer method).
I need constant duty cycle of 50%.
I want to control frequency using variable pot..
Thanks in advance
Hello experts,
I am having some doubts in Dynamic allocation of 2D array..
I understood the allocation using array of pointers.
int *arr[r];
for (i=0; i<r; i++)
arr[i] = (int *)malloc(c * sizeof(int));
but having doubts in pointer to pointer..
int **arr =...
SIM900 Memory Accessing using AT command ?
Is it possible to read/write sim card memory and sim900 module memory using AT commands ?
I saw the hardware design of sim card and it is like I2C communication. I need access it using AT commands.
Has anyone had experience on that ?
no sir, i am asking about optimization techniques in c. I know some optimization techniques like
Register allocation
Instruction scheduling
But i need to know it deeply.
Hi everyone,
I am very interested to learn various compiler optimizations and their reasons. Is there any video lectures available for that ?
Please suggest me any video tutorial along with the link..
Thanks in advance
I read the tutorial about function pointer. I understood the syntax and concept. But..
void A()
{
printf("HELLO");
}
void B(void (*p)())
{
p();
}
main()
{
B(A); or A();
}
Instead of calling a function indirectly, we can...
Re: Same program but different output ?
int main()
{
char a=1;
unsigned char b=1;
int c=1;
unsigned int d=1;
printf("%d\n",a<<32);
printf("%d\n",b<<32);
printf("%d\n",c<<32);
printf("%d\n",d<<32);
printf("%d\n",1<<31);
return 0;
}
O/P;
1
1
1
1
0
Here i am using...
Same program but different output ?
Hi ,
int main()
{
char a=1;
printf("%d\n",a<<32);
printf("%d\n",1<<32);
return 0;
}
OUTPUT:
1
0
I am using 32 bit compiler. When i shift beyond...
Hi,
A typical memory representation of C program consists of following sections.
1. Text segment (program)
2. Initialized data segment (static/global)
3. Uninitialized data segment (static/global)
4. Stack (local variables,function calls)
5. Heap (dynamic allocation)
out of these five, where...
Hi ,
In MPLAB IDE available compilers are
HITECH universal toolsuite
CCS C compiler
Microchip C18 toolsuite
Microchip MPASM toolsuite....etc
In HITECH C itself everything can be done ...?
Why so many compilers?
What is the purpose and difference?
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.