Sašo pošta wrote:
> Kelly Murray wrote:
>
>>
>> I'm working on a little NiCd/MH battery charger using the 1121 chip.
>> I need to get a temp and voltage level on the battery, and am trying
>> to use the comparator for this. I've looked over the slaa129 thermostat
>> example, as well as the fet110_ca_temp.S example.
>> The theory of slope is clear to me.
>>
>> My circuit is not working as expected.
>> I find the description of the comparator
>> configuration a bit confusing in the TI docs. let me start
>> with one simple question, do CA0 and CA1 provide two seperate inputs?
>> I have not seen that explicitly mentioned anywhere, and all examples
>> use only CA0. My circuit currently being tested uses CA1 for the
>> thermistor temp reading.
>>
>> thanks,
>> Kelly Murray
Just to mention, you have to configure pins (PxSEL) to give them
other functionallity. I am using comparator on 1111a, all levels are OK
the comparator is connected in parallel to the pin logic. you have to
set the pins as input, the module selection (P2SEL) does not realy
matter, but its a good idea to disable the input by setting the
appropriate bits in the CAPD register.
chris