Shop OBEX P1 Docs P2 Docs Learn Events
How is 'operand' term applied here? — Parallax Forums

How is 'operand' term applied here?

T ChapT Chap Posts: 4,223
edited 2009-01-27 17:04 in General Discussion
I am trying to write the setups for a QT60160 touch sense IC with I2C from the Propeller. The info from the datasheet says:
info said...

Lower nibble = Neg Threshold - take operand and add 4 to get value


info said...


Typical values: 3 to 8
(7 to 12 counts of threshold; 4 is internally added to
NTHR to generate the threshold).
Default value: 6
(10 counts of threshold)

If trying to write the default value of 6, are they suggesting use the number 2 for my write, and it will internally add 4 to the 2 to arrive at your desired value? I don't get why they used this convention.

Thanks
801 x 62 - 11K

Comments

  • MikerocontrollerMikerocontroller Posts: 310
    edited 2009-01-27 09:04
    · The data sheet shows that you are addressing a look-up table (table 6.2).· You supply the proper index number nibble and it will look up the desired key count.· You can see that NTHR key counts range from 4-19.· You only have 0-15 to work with so the lookup table is offset by four.· If you want·6 key counts then use·2 for your index.· I beleive you just missed the handy table diagram!


    ·
  • T ChapT Chap Posts: 4,223
    edited 2009-01-27 17:04
    Probably comes from staring at a data sheet too many hours trying to solve a problem! Thanks for the helping hand.
Sign In or Register to comment.