Raspberry Pi Pico W LESSON 89: Mastering the PIO State Machine Tx and RX FIFO Operations

Raspberry Pi Pico W LESSON 89: Mastering the PIO State Machine Tx and RX FIFO Operations

Paul McWhorter

3 месяца назад

2,536 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@kevinshaver5613
@kevinshaver5613 - 24.10.2024 03:52

I love this stuff!

Ответить
@deniszawad
@deniszawad - 08.10.2024 18:56

Thank You Paul

Ответить
@greenpotatochip
@greenpotatochip - 05.10.2024 18:04

Keep up the good work! Everybody else is doing the micropython simple stuff. You are taking this little pico to it's limits!

Ответить
@larryplatzek9017
@larryplatzek9017 - 05.10.2024 02:37

GREAT LESSON, NOT BORING AT ALL! Thank you PAUL!

Ответить
@larryplatzek9017
@larryplatzek9017 - 05.10.2024 01:58

NOT ACTIVE.

Ответить
@peterhartshauser5176
@peterhartshauser5176 - 03.10.2024 04:29

Hi Paul, That is a great series. I like the deep dive keeps my wheels spinning :)

Ответить
@shawnlowe1392
@shawnlowe1392 - 03.10.2024 03:55

I am enjoying the PIO series, I'm looking forward to advancing with them! Great video

Ответить
@leeg.1402
@leeg.1402 - 03.10.2024 00:01

NO! Definitely not boring. Thoroughly enjoying the lessons on the state machines. Hope we can keep going and dive deeper into their possible uses (DMA, IRQs, etc). Thanks for all you do for us. It's truly appreciated.

Ответить
@TinFoot
@TinFoot - 02.10.2024 22:35

Terrific session. Since we have 8 State Machines, I look forward to learning how to get all working together for some parallel processing.

Ответить
@gofosw
@gofosw - 02.10.2024 20:34

Please go on with the state machines!
I wonder about the question you put at 31m08s: "did it hang"or "did it crash" - is there a way to find out?

Ответить
@edSabio572
@edSabio572 - 02.10.2024 19:37

Thanks Paul! Far from it, these lessons are what sets you apart from the 'Turn an LED' crowd. Still here and looking forward to next week (Not fast enough!)

Ответить
@balagautum6937
@balagautum6937 - 02.10.2024 18:52

Greatest video on PIO state machines in detail. Waiting for more videos

Ответить
@ardespmaker
@ardespmaker - 02.10.2024 16:02

Hi Paul - this really is an area I wanted to understand better so thanks for covering it from the ground up. I agree with this approach as you have to understand what is happening ( like you it's a long tome since I was programming the Z80 🙂) What I'd like to know is if you are going to set up multiple State machines and show how they work simultaneously - I don't know what the capabilities are and what the advantages are going to be over something like FreeRTOS or asynchio which could arguably be easier to program. Will we be able to control just for example 3 steppers simultaneously ? Thanks and looking forward to completing this section.

Ответить
@gdavids57
@gdavids57 - 02.10.2024 14:46

I enjoy the work with the PIO facility. Its real power is in implementing communication protocols such as I2C and offloading the main CPU so it can do other functions. I was a Z80 application engineer and used one of its peripherals, the Z80-SIO for serial communications. The SIO is powerful and configurable but not programmable. So you only get the protocols it was built for (e.g., SDLC and HDLC). The Pico PIO allows us to program just about any protocol and have it run as an independent process, just like the SIO did for the Z80. Programming the PIO state machines is a little more straightforward in C++ as one uses a standard function declaration preceded by a compiler directive telling the compiler the following code is PIO assembly language. All the pin assignment is done in the function rather than in the instantiation.

Ответить
@shawnlowe1392
@shawnlowe1392 - 02.10.2024 05:38

Both will be 0, You should have 0xA in there the PIO isnt active, but it gave 1 so it represent no of words present; fifo rx is zero because PIO isnt active; The tx will go to zero, rx will go to 1 and the leds will light;

Ответить
@tomlynch5345
@tomlynch5345 - 02.10.2024 03:00

Thanks, I'm finally understanding the PIO

Ответить
@craigflorin1071
@craigflorin1071 - 02.10.2024 02:10

Good lesson. The print statements along with your narrative really helped me understand the processes, especially how the information stacked in the TX FIFO is directed to the RX FIFO. Once you tuned the state Machine on, I wasn't expecting all of the words to be received at the RX FIFO so quickly. I learned a lot, but now have to do some research to answer my "what now?" questions. No, this is not boring! Thank you once again.

Ответить
@jameslewellen150
@jameslewellen150 - 01.10.2024 21:49

I like the concept of the statemachine running in the background doing simple tasks. That free up the Pico to perform more complex tasks. Still trying to do a binary count in the statemachine, getting closer.

Ответить
@quaternion-pi
@quaternion-pi - 01.10.2024 21:15

Great series! I hope there is enough interest to do a much deeper dive: e.g. dma (direct memory access), wait, IRQ, jmp. Thanks!

Ответить
@charlotteswift
@charlotteswift - 01.10.2024 21:03

Hi Paul
It beggars belief that someone could be so rude🙃
Don't worry - the rest of us love you💘

Ответить
@keithlohmeyer
@keithlohmeyer - 01.10.2024 20:21

Great lesson, but all that copy and pasting made me cringe. Thanks Paul for all you do.

Ответить
@DrDave327
@DrDave327 - 01.10.2024 20:10

Getting the basics thoroughly mastered is excellent! Thank you for all of your efforts, Paul! Stay the course. Double chest bump!!

Ответить
@scottwait3585
@scottwait3585 - 01.10.2024 19:51

Thank you Paul!

Ответить
@philkelsall1207
@philkelsall1207 - 01.10.2024 18:52

I'm enjoying it because it's challenging.

Ответить
@patrickfox-roberts7528
@patrickfox-roberts7528 - 01.10.2024 18:52

Thanks Paul - v useful

Ответить
@dazecm
@dazecm - 01.10.2024 18:32

Just discovered your channel. Great content on working with microcontrollers and single board computers like the Raspberry Pi.

Ответить
@dice6918
@dice6918 - 01.10.2024 18:06

I have a Arduino code but one LED on off but our requirement 4 led please help me sir

Ответить
@dice6918
@dice6918 - 01.10.2024 18:03

Very good sir you can make A HC 12 Lora modules code for 4 led on off Arduino code ❤

Ответить