-
Notifications
You must be signed in to change notification settings - Fork 18
OUT pin and SIDE_SET pin clash #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What version of CircuitPython are you running? Are any exceptions raised or does it just not work? |
Adafruit CircuitPython 8.0.4 on 2023-03-15; Raspberry Pi Pico with rp2040 Thonny is not showing any errors. |
Seems to be a false alarm. Thanks for your time. |
I have adapted the Morse demo program to show the (apparent) different behaviours. The first three work as expected, showing morse on the builtin LED, the 4th does not show any LED activity.
|
Hi! I think you have made a mistake with the StateMachine constructor, possibly carried over from an error in the examples. Certain directives, like As you can see in this session, this will make the StateMachine constructor receive the keyword arguments Without this, some defaults (sideset_enable=False) are used. This causes the bit pattern in the instruction without an explicit side-set >>> import adafruit_pioasm
>>> p = adafruit_pioasm.Program(".side_set 1 opt")
>>> p.pio_kwargs
{'sideset_enable': True, 'sideset_pin_count': 1} I'll make a pull request fixing the morse code example. |
This appears to be the cause of a user's problems in adafruit#55.
The UART_TX program, and my similar program, fail.
Single OUT pin and single SIDE pin mapped to same GPIO.
GPIO does not change with
out pins, 1
but stays at the last SIDE setting.In the UART program, the stop and start bits are output, but no data.
Setting the SIDE pin to a different GPIO sees the data on the OUT GPIO and the stop/start bits on the SIDE GPIO.
The text was updated successfully, but these errors were encountered: