This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to start C167 with defined state of all ports?

At the startup of the C167 (C167-CR-LM) the state of all Ports (except Port 0) are undefined, right?
How can I set them to a defined state BEFORE running my programm?
Is there only the way by doing a restart an using RSTOUT or ist it possible by a cold start too?

Thanks!

Torsten

  • At the startup of the C167 (C167-CR-LM) the state of all Ports (except Port 0) are undefined, right?

    The microcontroller manual says the ports are configured as inputs (high impedance.) One could argue if that's a defined state or an undefined one :-)

    How can I set them to a defined state BEFORE running my programm?

    Well, if you want a port pin to be high or low when it's in high impedance state, you could use external pull-up or pull-down resistors.

    - mike

  • Thanks for your FAST reply!

    Meanwhile I have found another solution. I can set the ports and their directions in start167.a66 ...

    Best regards

    Torsten