Search found 5 matches
- Thu Mar 24, 2022 4:43 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: RP2040 PIO Pin change to HIGH do not works
- Replies: 19
- Views: 13479
Re: RP2040 PIO Pin change to HIGH do not works
Hi I have tried your program with a push button on pin 20 which is connected between the pin and ground. Also activated the pullup resistor on this pin and it works as expected. ie in first case interrupt is generated when push button is pressed and in second case the interrupt occurs when the push ...
- Thu Mar 24, 2022 4:37 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: sm.exec() and Pin.value()
- Replies: 2
- Views: 2814
Re: sm.exec() and Pin.value()
Hi
In def prog replace pass with any valid instruction eg nop() and it works (don't no why)
regards
Gerry
In def prog replace pass with any valid instruction eg nop() and it works (don't no why)
regards
Gerry
- Thu Aug 19, 2021 11:54 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Pi Pico push seems to truncate value at 5 bits
- Replies: 2
- Views: 2082
Re: Pi Pico push seems to truncate value at 5 bits
Using set x you are limited to a 5 bit no. ie max value 31.
See the RP2040 data sheet section 3.4.10
To load a full 32 bit no. you have to load x(or y) using the ISR or OSR.
eg
mov(x,osr)
label("loop1")
jmp(x_dec,"loop1")
put(value) can be used to load the osr with a full 32 bit no.
regards
Gerry
See the RP2040 data sheet section 3.4.10
To load a full 32 bit no. you have to load x(or y) using the ISR or OSR.
eg
mov(x,osr)
label("loop1")
jmp(x_dec,"loop1")
put(value) can be used to load the osr with a full 32 bit no.
regards
Gerry
- Thu Apr 22, 2021 1:34 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Raspberry Pico Statemachine Restart
- Replies: 3
- Views: 3618
Re: Raspberry Pico Statemachine Restart
Hippy/Roberthh
Thank you both for your prompt replies.
regards
Gerry
Thank you both for your prompt replies.
regards
Gerry
- Thu Apr 22, 2021 11:53 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Raspberry Pico Statemachine Restart
- Replies: 3
- Views: 3618
Raspberry Pico Statemachine Restart
Hi
What is the purpose of the new statemachine restart function in MP 1.15.
A small sample of its use would be appreciated.
Regards & Thank you
Gerry
What is the purpose of the new statemachine restart function in MP 1.15.
A small sample of its use would be appreciated.
Regards & Thank you
Gerry