Recent content by champ1

  1. C

    Ground plane PCB

    Hi, I don't know how to read PCB's layout. As you see an image, I am not able to understand which is a conductor and which is a non-conductor. I don't know which is ground plane
  2. C

    Transistor as a switch

    My guess is that if i give a 5v supply across the Base to emitter junction, transistor will be damaged.
  3. C

    Transistor as a switch

    I am trying to understand how NPN transistor BC547 work as switch. Transistor can be three state Cut off Threshold Saturation I'm trying to understand when the BC457 turns on or off
  4. C

    AC Power wiring to Light Bulb

    How would you connect this light bulb...
  5. C

    AC Power wiring to Light Bulb

    I am trying to understand how a power is connected to a light bulb. There are 2 wires coming out of the energy meter output, line and neutral. I don't understand how they are connected to the bulb. how to know which end of the light will connect to line or neutral ?
  6. C

    How do you change structure

    When I want to change int in function I pass pointer to int so int will change #include<stdio.h> void foo ( int *ptr ) { *ptr = 10; } int main () { int a = 1; foo (&a); printf("%d", a); return 0; } I am trying to understand how we change the structure in function int...
  7. C

    What happens inside if statement in code

    I am stuck in c structure program. I don't have idea What happens inside if statement in code #include<stdio.h> #include<stdlib.h> struct s { int x; int y; }; int main () { struct s *p = NULL; p = malloc(sizeof(*p)); if ( p != NULL ) { printf("%d\n"...
  8. C

    synchronization

    I am trying to understand what is thread synchronization...
  9. C

    Dangling pointers

    I am getting output 20 even after freeing pointer dp without calling malloc #include<stdio.h> #include<stdlib.h> int main() { int *dp = malloc(sizeof(*dp)); *dp = 10; free(dp); *dp = 20; printf(" %d", *dp); }
  10. C

    Dangling pointers

    I don't understand what is Dangling pointers in c language we can allocate dyamic memory for variables and we can also free it pointer can point to memory location of another variable...
  11. C

    How tasks are broken down into smaller task's

    I have no problem, you can also take an example of your choice to explain. I am just trying to understand how to apply concept in practical situation
  12. C

    How tasks are broken down into smaller task's

    Agreed This project can be done with RTOS and without RTOS. I take the situation that we have to do this project with RTOS. Now we come back to the original question, we have to split the task for the RTOS. Can you offer any help in understanding how the tasks would be divided for this application
  13. C

    How tasks are broken down into smaller task's

    @Harald Kapp as per your advice i choose a real time system https://www.electronics-notes.com/articles/test-methods/spectrum-analyzer/realtime-spectrum-analyser.php I have broken tasks into three tasks Sampling FFT processing Display Any idea How all tasks will execute in real-time
  14. C

    How tasks are broken down into smaller task's

    A real-Time operating system may be single or multitasking. What I'm trying to find out is how tasks are broken down into smaller tasks for real-time operating systems. I see that tasks execute on a priority basis. A high-priority task always runs first. I see some tasks have hard timing...
  15. C

    How does multidimensional array store variables

    I've seen tutorials and youtube videos but I can't figure out how does multidimensional array stores variables 1 D array When I write the below the line in code it means the compiler allocate five memory location and store five integer variable int [5] = { 1, 2,3, 4,5}; 2 D array When...
Top