home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.engineering.electrical      Electrical engineering discussion forum      2,548 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,650 of 2,548   
   lovesunnytexas@gmail.com to All   
   Getting stuck in this project (1/7)   
   31 Jan 16 17:04:22   
   
   Here is the first project...I have to write it in C programming language and i   
   used codewarrior as my software. Please help me   
      
   Project 1   
      
   Tone-Generation Sub-Program:   
      
   Write a sub-program that causes the speaker to sound a tone at a given   
   frequency.   
   The speaker is to be connected to a Pulse-Width-Modulation (PWM) output.   
   The duty cycle is to be 50%.   
   The frequency is to be supplied as an argument that is a 32-bit integer with   
   units of 1/100000 Hz.   
   The tone is to be sounded as a result of calling the sub-program one time.   
   The tone is to continue until the sub-program is called again at which time a   
   different tone will be sounded.   
   If the supplied frequency is zero, the tone is to be turned off.   
   No interrupts are allowed.   
   No wait loops are allowed in the tone-generation sub-program.   
   The range of frequencies is from 10.000000 Hz to 5000.000000 Hz., which   
   includes the musical notes listed in Table F.1 of the text. The    
   one-generation sub-program is to be as accurate as possible.   
      
   Test Program:   
      
   Write a test program to call the sub-program described above.   
   The test program is to cause ten different tones (including 100 Hz and 5000   
   Hz) to be sounded.   
   The test program shall step from one tone to the next as a result of pressing   
   a button on the Dragon12-Plus board.   
   After ten tones have been sounded, the next press of the button causes the   
   tone to stop.   
      
      
      
      
   What I have done   
      
      
   ** Abaqus input deck created with Supersurge Submodel (SSS) automation   
   ** Version: 150205   
   ** Units: length = mm, mass = kg, time = s, force = mN, pressure = kPa   
   ** 05/08/15 00:12:09   
   **   
   *HEADING   
   Super Surge Submodel   
   ****************************************************************   
   ***************   
   **                                  Includes                                    
   **   
   ****************************************************************   
   ***************   
   *INCLUDE, INPUT=interactions.inp   
   *INCLUDE, INPUT=parameters.inp   
   *INCLUDE, INPUT=part_package.inp   
   *INCLUDE, INPUT=part_closure_simple.inp   
   *INCLUDE, INPUT=part_fluid_single_cavity.inp   
   *INCLUDE, INPUT=part_plate_rigid_back.inp   
   *INCLUDE, INPUT=part_plate_rigid_bottom.inp   
   *INCLUDE, INPUT=part_plate_rigid_front.inp   
   *INCLUDE, INPUT=part_rail_rigid_Solus_WideFlat.inp   
   ****************************************************************   
   ***************   
   **                                  Assembly                                    
   **   
   ****************************************************************   
   ***************   
   *ASSEMBLY, NAME=SSS   
   *********************************** Packages *******************   
   ***************   
    *INSTANCE, NAME=PACKAGE_1, PART=PART_PACKAGE   
     , ,    
     , , 0.0, , , 1.0,   
      
    *END INSTANCE   
    *INSTANCE, NAME=PACKAGE_2, PART=PART_PACKAGE   
     , ,    
     , , 0.0, , , 1.0,   
      
    *END INSTANCE   
   *********************************** Closures *******************   
   ***************   
    *INSTANCE, NAME=CLOSURE_SIMPLE_1, PART=PART_CLOSURE_SIMPLE   
     , ,    
     , , 0.0, , , 1.0,   
      
    *END INSTANCE   
    *INSTANCE, NAME=CLOSURE_SIMPLE_2, PART=PART_CLOSURE_SIMPLE   
     , ,    
     , , 0.0, , , 1.0,   
      
    *END INSTANCE   
   ************************************ Fluids ********************   
   ***************   
    *INSTANCE, NAME=FLUID_SINGLE_CAVITY_1, PART=PART_FLUID_SINGLE_CAVITY   
     , ,    
     , , 0.0, , , 1.0,    
    *END INSTANCE   
    *INSTANCE, NAME=FLUID_SINGLE_CAVITY_2, PART=PART_FLUID_SINGLE_CAVITY   
     , ,    
     , , 0.0, , , 1.0,    
    *END INSTANCE   
   ************************************ Rails *********************   
   ***************   
    *INSTANCE, NAME=RAIL_RIGID_SOLUS_WIDEFLAT_BOTTOM_RIGHT, PART=PA   
   T_RAIL_RIGID_SOLUS_WIDEFLAT   
     0.0, ,    
     0.0, , , 1.0, , ,    
    *END INSTANCE   
    *INSTANCE, NAME=RAIL_RIGID_SOLUS_WIDEFLAT_BOTTOM_LEFT, PART=PAR   
   _RAIL_RIGID_SOLUS_WIDEFLAT   
     0.0, ,    
     0.0, , , 1.0, ,   
   ,    
    *END INSTANCE   
    *INSTANCE, NAME=RAIL_RIGID_SOLUS_WIDEFLAT_MID_RIGHT, PART=PART_   
   AIL_RIGID_SOLUS_WIDEFLAT   
     0.0, ,    
     0.0, , , 1.0, ,   
   ,    
    *END INSTANCE   
    *INSTANCE, NAME=RAIL_RIGID_SOLUS_WIDEFLAT_MID_LEFT, PART=PART_R   
   IL_RIGID_SOLUS_WIDEFLAT   
     0.0, ,    
     0.0, , , 1.0, ,   
   ,    
    *END INSTANCE   
    *INSTANCE, NAME=RAIL_RIGID_SOLUS_WIDEFLAT_TOP_RIGHT, PART=PART_   
   AIL_RIGID_SOLUS_WIDEFLAT   
     0.0, ,    
     0.0, , , 1.0, ,   
   ,    
    *END INSTANCE   
    *INSTANCE, NAME=RAIL_RIGID_SOLUS_WIDEFLAT_TOP_LEFT, PART=PART_R   
   IL_RIGID_SOLUS_WIDEFLAT   
     0.0, ,    
     0.0, , , 1.0, ,   
   ,    
    *END INSTANCE   
   ************************************ Plates ********************   
   ***************   
    *INSTANCE, NAME=PLATE_RIGID_BACK, PART=PART_PLATE_RIGID_BACK   
     , 0.0, 0.0   
     , 0.0, 0.0, , 0.707107, 0.707107, 180.0   
    *END INSTANCE   
    *INSTANCE, NAME=PLATE_RIGID_BOTTOM, PART=PART_PLATE_RIGID_BOTTOM   
     0.0, 0.0, 0.0   
     0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 90.0   
    *END INSTANCE   
    *INSTANCE, NAME=PLATE_RIGID_FRONT, PART=PART_PLATE_RIGID_FRONT   
     0.0, 0.0, 0.0   
     0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 90.0   
    *END INSTANCE   
   ************************************  Ties  ********************   
   ***************   
    *TIE, NAME=PACKAGE_CLOSURE_ASSEMBLY_1   
     CLOSURE_SIMPLE_1.CLOSURE_INTERNAL, PACKAGE_1.PACKAGE_INTERNAL   
    *TIE, NAME=PACKAGE_CLOSURE_ASSEMBLY_2   
     CLOSURE_SIMPLE_2.CLOSURE_INTERNAL, PACKAGE_2.PACKAGE_INTERNAL   
   **********************************  Springs  *******************   
   ***************   
      
   [continued in next message]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca