Home/Support/Support Forum/ConnectCore UL Express - how to quickly get PWM or GPIO high right after system reset?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

ConnectCore UL Express - how to quickly get PWM or GPIO high right after system reset?

0 votes
I'm getting started with the ConnectCore UL Express. The plan is to have it replace a microcontroller in an existing product, and among the many ways I plan on using it, one is to have the PWM1 module control a motor. When the ConnectCore starts up, the PWM1 IO line is low. The existing motor control circuitry is active low, so the motor starts spinning when power is applied. With the microcontroller, it's pretty straightforward getting the IO line high at startup, but with the whole Linux thing on the ConnectCore, it's not as obvious to me how to achieve this. I'm looking through the forums and working through the documentation right now, but it would definitely be helpful if someone could provide a summary of steps to get the PWM1 IO line (and in general, any other GPIO line) to be high right after coming out of reset, and hopefully it is not necessary to wait until Linux boots before do so. The motor control is a minor side show to what I am trying to demonstrate, so if I can get through this, then it will be very helpful.

Thanks in advance.
asked May 14 in Linux by stejfisch New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

0 votes
change it in u-boot source code and recompile it. It will get high shortly after power-up or reset. Also depending on your application, you can perhaps add a week pull-up resistor. The pin by default is an input, so CPU does not drive it. And when you need to drive it low, CPU can still do it because the pull-up is weak.
answered May 14 by LeonidM Veteran of the Digi Community (2,107 points)
Contact a Digi expert and get started today! Contact Us