This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc2538 comparator API functions

hi, are there any analog comparator api functions? i have SWRU325.pdf and there are not should i use registers?

  • This has been assigned to the foundation SW expert.

  • hi, here i am again....i'm trying to let ADC and comparator work together, the adc seems to work fine, i have problems with the comparator: also setting the edge on PA4 with a resistor divider at 1.6V, the comparator takes the edge at 2V. i have joined the inputs PA5 for the comparator and PA6 for the ADC together to start the converter when the comparator output goes high. in the cose i set the following registers for the over functions to analog pins:

    hwreg(0x400D4090)|=0x1; pa4 analog

    hwreg(0x400D4094)|=0x1;pa5 analog

    hwreg(0x400D4098)|=0x1;pa6 analog

    it seems the pull-up default settings on the ports have highest priority on ours.


    moreover, could i set the over functions combined? for example 0x3 to ana|pde?

    thanks and sorry for my english