Skip to main content
Visitor II
January 24, 2025
Question

STM8 fast output

  • January 24, 2025
  • 1 reply
  • 1304 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?

    This topic has been closed for replies.

    1 reply

    Graduate II
    January 24, 2025