Skip to main content
Associate
January 24, 2025
Question

STM8 fast output

  • January 24, 2025
  • 1 reply
  • 1898 views

Hi,

I have a STM8s003 which I have already programmed with the Arduino IDE but the commands “digitalWrite” and “digitalRead” were too slow for me. I also found an alternative that works with the Arduino but not with the STM8: CLR(PORTA, 2); SET(PORTA, 2); I got these commands from the site:
https://electronics.stackexchange.com/questions/22585/arduino-faster-alternatives-to-digitalread-and-digitalwrite
When compiling for the STM8, the error message is: “Undefined identifier ‘PORTA’ ”
Do you have any idea how else the ports are addressed or something?

    1 reply

    Tesla DeLorean
    Guru
    January 24, 2025
    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..