×

Combined Accumulator and Maximum/Minimum Comparator

  • US 20130321289A1
  • Filed: 06/01/2012
  • Published: 12/05/2013
  • Est. Priority Date: 06/01/2012
  • Status: Active Grant
First Claim
Patent Images

1. A device comprising:

  • a touch sensor comprising a plurality of nodes;

    a microcontroller configured to provide a plurality of drive signals to the touch sensor and detect a touch at one or more of the plurality of nodes, the microcontroller comprising;

    a memory including a first location identified by a first address and a second location identified by a second address;

    a processor coupled to the memory, the processor operable to write a value to the first location or the second location of the memory by performing an instruction that specifies the value and the first address or the second address; and

    a hardware accelerator, the hardware accelerator coupled to the memory and configured to;

    perform the following in response to a detection that the value has been written to the first location of the memory;

    add the value to an accumulated value stored in an accumulator register of the hardware accelerator and store the result in the accumulator register;

    increment a counter of the hardware accelerator;

    compare the value to a maximum value stored in a first register of the hardware accelerator and overwrite the maximum value with the value if the value is greater than the maximum value; and

    compare the value to a minimum value stored in a second register of the hardware accelerator and overwrite the minimum value with the value if the value is less than the minimum value; and

    perform the following in response to a detection that the value has been written to the second location of the memory;

    compare the value to the maximum value stored in the first register of the hardware accelerator and overwrite the maximum value with the value if the value is greater than the maximum value; and

    compare the value to the minimum value stored in the second register of the hardware accelerator and overwrite the minimum value with the value if the value is less than the minimum value.

View all claims
  • 14 Assignments
Timeline View
Assignment View
    ×
    ×