is it possible to configure an input port? A parallel input on 8 pins that loads a register?
Posted: Tue Sep 10, 2024 11:25 am
I'm thinking to do a mini-revolution on my plans and to use the ESP as a main uC, instead to demand just some ops to it, governed by a main faster microcontroller (650mhz).
Its main limitation seems to be the lack of not dedicated GPIO pins, IMHO.
I could think about the usage of an external I2C GPIO extender, such a PCA9539 that extends the GPIO pins number of 16 units (in my case, more units can be commanded by the same I2C port), completely and individually configurable, but they are serially managed, and the input strategy in this case is too slow for me.
It's not the first time that I use such IC family, and they work flawlessly, but in this case I need to load the content of a whole byte to be written in a uC byte register in a single uC cycle, using what is normally called a "port" in many uC's, cause I need to interface a 8bit 80SMPS ADC.
Is it possible to configure 8 pins as a "port" and store their content in a register of one byte, in just one uC cycle? In that case I could just test the content with a simple if.
thank you
Its main limitation seems to be the lack of not dedicated GPIO pins, IMHO.
I could think about the usage of an external I2C GPIO extender, such a PCA9539 that extends the GPIO pins number of 16 units (in my case, more units can be commanded by the same I2C port), completely and individually configurable, but they are serially managed, and the input strategy in this case is too slow for me.
It's not the first time that I use such IC family, and they work flawlessly, but in this case I need to load the content of a whole byte to be written in a uC byte register in a single uC cycle, using what is normally called a "port" in many uC's, cause I need to interface a 8bit 80SMPS ADC.
Is it possible to configure 8 pins as a "port" and store their content in a register of one byte, in just one uC cycle? In that case I could just test the content with a simple if.
thank you