I have been seeing some places that they are running micro controllers as pass through gpio pins without having to reprogram the microcontroller itself. Just running some script on the pc to display content on a oled screen or blink and led. I was curious on how is this possible from a programming point of view without having to reprogram the microcontroller itself?
Maybe using the Configurable Custom Logic feature that e.g. some Attinies have. That's like a configurable logic switchboard where you can connect peripherals, including pins, directly to each other and apply Logic Functions on the go.
Interesting. How would the microcontroller know what to do if it hasn't been told (i.e. programmed) which input to pass to which output. Even if it were CCL (which I know less than nothing about!) it would still involve transferring some "settings" to the microcontroller - which to me is still programming - just a different part of the device. Much like putting data into the EEPROM section of a 328P micro - to me that's still programming.
maybe you confuse a microcontroller with a logic logic circuit -chip
or with an FPGA. (An FPGA is a highly complex chip that can be pre-programmed for doing operations like you described it.
Hello all, @gcjr@StefanL38@markd833@jim-p@UKHeliBob@hmeijdam I’ll send some links when I get back home won’t be for a day. I’m on the road. I was just curious on from a programming point of view how is that possible and how would it work. I’m not home right now and I’ll upload some links when I get back.
it seems pretty common for someone inexperienced that exactly is needed to do things on an Arduino. So you write a program that turns on an LED, and a then a program to turn it on and off. Each change takes times to modifiy , compile, download and execute
similarly, if you write a bunch of functions, it's time consuming to exercise and test them -- modifiy , compile, download and execute
with todays processors and serial communications, it makes sense to support commands to exercise available functions, along with arguments to those commands.
so most modern day programs support diagnostic commands. The program needs to have functions to do so, it's not something generic to the processors.
And this is possible using the IDE's serial monitor to both output print statements from the code as well as sending commands to the Arduino