It would help to see some code.
This chip has ADC so...