Recent content by angelspikes

  1. A

    Can I Improve Software Processing Speed?

    Introduction I'm using a 2.2 GHz processor and it's taking me up to 10 seconds to open a 20 kB word document. Most of the time is the time it takes to open the software itself. It takes up to 3 seconds to open the file when the software is already running. Problem I need this process to...
  2. A

    C Programming: acos() not accepting variable

    No matter what data type I use, even float, will return acos(variable) as an error.
  3. A

    C Programming: acos() not accepting variable

    Yes, it's one of those days.
  4. A

    C Programming: acos() not accepting variable

    The following function acos() does not accept any variables. I have included the math.h header. For example i = 1; acos(i/2); // This should be equal to 60
  5. A

    Dynamic Memory Allocation - malloc versus realloc

    There are two ways I'm used to allocate memory dynamically. int * array = malloc(10 * sizeof(int)); But this type of memory allocation, have a predefined size, which is not desirable. I keep hearing about linked list and push & pop. I've reviewed them over and over again, and they just...
  6. A

    DigitalWrite in Teensy microcontroller?

    I'm trying to use the function pinMode so that I can use an analog pin as a digital output pin. But when I debug the source file, it states that OUTPUT and PIN_AO is undeclared, and that pinMode and digitalWrite are implicit declarations. I assume I'm missing a library which i should include...
  7. A

    ISC Bit Setting for Interrupt Service Routine

    I'm setting up an interrupt service routine, but I'm unsure which ISC bit setting I should use. ISC bit settings: ISCx1 ISCx Description 0 0 Low level of INTx generates an interrupt request 0 1 Any logic change on INTx generates an interrupt request 1 0 The falling edge of INTx...
  8. A

    When 1 mega Ohm resistors are used?

    When and "for what purpose"/why are 1 mega ohm (1 MΩ) resistors used in filters, such as high pass filters? Is it with regards to electrostatic discharge or impedance matching? What difference does it make, if I only use a 10 K ohm resistor, when the high pass frequency will be the same (by...
  9. A

    Improved Precision Rectifier Circuit Benefits

    I'm having trouble understanding the following sentence, regarding an improved precision rectifier circuit: This circuit has the benefit that the op-amp never goes into saturation, but its output must change by two diode voltage drops (about 1.2 V) each time the input signal crosses zero...
  10. A

    What could be causing my destinationVariable to not update in my timer program?

    I've debugged and run my program without seeing any results from my "destinationVariable". What could be wrong? sub main() call myfunction() end sub sub myfunction() static myClock As Single myClock = timer if (timer - myClock) > 100 Then destinationVariable += 1 // This...
Back
Top