Posts

Showing posts from February, 2022

linear data structure-

Image
  Data structure -   1)linear data structure        i)  array       ii)  link list       iii) stack       iv) queue   2)non linear data structure          i) tree          ii) graph link list;- link list is linear data structure ,which are connected to link. thr  elements are not stored at contiguous memory locations.   types of link list- 1.singly link list 2.doubly link list 3.singly circular link list 4.doubly circular link list   operations on singly link  list & doubly link list:  1)creatlist 2) display 3)sorting 4)searching 5)insertion -              i)insert at begin      ii)insert at last      iii)insert at any position 6)deletion-...

Song

                Like My Father   I wanna come home to roses And dirty little notes on Post-its And when my hair starts turning gray He’ll say I’m like a fine wine, better with age I guess I learned it from my parents That true love starts with friendship A kiss on the forehead, a date night Fake an apology after a fight I need a man who’s patient and kind Gets out of the car and holds the door I wanna slow dance in the living room like We’re eighteen at senior prom and grow Old with someone who makes me feel young I need a man who loves mе like My father loves my mom I wanna road trip in thе summers I wanna make fun of each other I wanna rock out to Billy Joel And flip our kids off when they call us old He’ll accidentally burn our dinner  And let me be the Scrabble winner And when my body changes shapes He’ll say, “Oh my God, you look hot today” I need a man who’s patient and kind Gets out of the car and holds the door I wanna slow dance...

microcontroller programs (electronics)

  1)stepper motar using 8051 Microcontroller using "C"-  #include<reg52.h> #define phase_a 0x0A #define phase_b 0x06 #define phase_c 0x05 #define phase_d 0x09 sbit EN=P0^0;  void delay(int cnt);  void delay(int cnt)  { int i,j;   for(i=0;i<cnt;i++)       for(j=0;j<100;j++);  }   void clockwise(void);    void clockwise(void) { P1=phase_a;    delay(1000); P1=phase_b;    delay(1000);   P1=phase_c;    delay(1000); P1=phase_d;    delay(1000); } void main(void) { EN=1; while(1) {   clockwise(); } } 2) Sin Waveform generation using DAC interface to microcontroller-  //sin waveform generation using DAC interface to 8051 Microcontroller #include<reg51.h>  main()   { static int a[13]={128,192,238,255,238,192,128,64,17,0,17,64,128}; //calculate value of sin wave formula...