Other Parts Discussed in Thread: LP5009
Tool/software:
Can the PCF8575 generate PWM?
Does it have internal clock?
I assume it is possible to generate something like PWM in software, yet this will not be accurate and require a lot of CPU resources.
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.
it is a small robot car, based on ESP32. The PCF8575 will bring more IOs, yet PWM could be helpful because of the DC motor controls, and the servo motors.
One more question about the PCF8575: Is it possible to verify it's existence by software? In order to to do power up checks, the software needs to verify the units are connected and alive. Is there a software command like status read?
In general, such PWM signals are generated directly by the microcontroller.
The only way to check for the existence of the PCF is to try to read from it.
Hi Yigal,
PCF8575 does not have internal clock.
PWM would need to be generated via constant I2C writes to control the output.
In addition to Clemens' comments, we also offer the TCA6507 'which does have internal clock and is I2C controlled.
Clemens is correct about the existence of the IO expander on the bus. You would need to send a read with correct I2C address of the device to see if it ACK's as a presence detect.
Also, feel free to email me at t-townsend@ti.com to talk more about the use case you are defining. I am interested in the small robot car application.
Regards,
Tyler