Search found 21 matches
- Tue Nov 12, 2024 5:29 pm
- Forum: General Discussion
- Topic: help with using registers to chagne pin dirrections and states.
- Replies: 12
- Views: 2987
Re: help with using registers to chagne pin dirrections and states.
This does work, but the time form high to low is a minimum of 696 ns. that won't work unfortunately.
- Sat Nov 09, 2024 8:16 pm
- Forum: General Discussion
- Topic: help with using registers to chagne pin dirrections and states.
- Replies: 12
- Views: 2987
Re: help with using registers to chagne pin dirrections and states.
I can change the mode easy enough with I can change the mode easy enough with GPIO_MODE_INPUT_OUTPUT_OD but I'm still not able to find the way to change directions when using bundles. Seems if I write low, the device can not talk ( good ) if I pull high the device cant talk ( good) but I can not wri...
- Sat Nov 09, 2024 2:16 pm
- Forum: General Discussion
- Topic: help with using registers to chagne pin dirrections and states.
- Replies: 12
- Views: 2987
Re: help with using registers to chagne pin dirrections and states.
yes I saw that, as I said, but I found my underlying issue. If I do as suggested it works, but its very sloppy and slow. The solution learned a ways back as to use GPIO bundle code. This makes the timing very fast and very smooth. But in in working with the info given in this thread, I now see thing...
- Sat Nov 09, 2024 3:30 am
- Forum: General Discussion
- Topic: help with using registers to chagne pin dirrections and states.
- Replies: 12
- Views: 2987
Re: help with using registers to chagne pin dirrections and states.
I see what was wrong, its my GPIO bundle code. I guess to get precise timing, you need to use the GPIO bundles. but need to disbale it to use inputs.
- Sat Nov 09, 2024 12:23 am
- Forum: General Discussion
- Topic: help with using registers to chagne pin dirrections and states.
- Replies: 12
- Views: 2987
Re: help with using registers to chagne pin dirrections and states.
yeah looks better, I do not see how to interface with it ( i.e. how to use the hw pointer and what not) but its a lot easier to follow. I may be able to use the functions anyways. any idea what is meant by The LL layer? I do have the s3. EDIT__________ So yes this is very good info, thx for this but...
- Fri Nov 08, 2024 7:03 pm
- Forum: General Discussion
- Topic: help with using registers to chagne pin dirrections and states.
- Replies: 12
- Views: 2987
Re: help with using registers to chagne pin dirrections and states.
This looks great, I think its what I want but its written in C++ and I can not use the header. So I'd have to take this all a part and rewrite it. Sadly way complicated and worse, not documented. I feel like its just putting my at another drawing board.
- Fri Nov 08, 2024 3:56 pm
- Forum: General Discussion
- Topic: help with using registers to chagne pin dirrections and states.
- Replies: 12
- Views: 2987
help with using registers to chagne pin dirrections and states.
I'm trying to follow the TRM and set my registers but I'm struggling. I think I want maybe REG_WRITE(GPIO_FUNC0_OUT_SEL_CFG_REG, SIG_GPIO_OUT_IDX); or GPIO_FUNC0_OUT_SEL_CFG_REG ( 256 ) Or maybe that is the same thing? and then maybe WRITE_PERI_REG( GPIO_OUT_REG[0], REG_READ(GPIO_OUT_REG[0] |= 0x01)...
- Sat Jun 22, 2024 9:54 pm
- Forum: General Discussion
- Topic: help with bundles for GPIO
- Replies: 15
- Views: 4003
Re: help with bundles for GPIO
yeah that's fine but I do not see how I'm not doing this.
all of my code is ran from core 1
xTaskCreatePinnedToCore (Start_LLAPI, "none", 4096, (void *)1, 1, NULL, 1);
all of my bundles are < 8
What did I do wrong that violated this?
all of my code is ran from core 1
xTaskCreatePinnedToCore (Start_LLAPI, "none", 4096, (void *)1, 1, NULL, 1);
all of my bundles are < 8
What did I do wrong that violated this?
- Sat Jun 22, 2024 8:52 pm
- Forum: General Discussion
- Topic: help with bundles for GPIO
- Replies: 15
- Views: 4003
Re: help with bundles for GPIO
was very helpful I think there maybe a bug here. using const int bundleA_gpios[] = {0,1,2,3}; allows pins 1,2 and 3 to swtich. Also as a side note ( see below ) only pin 3 is fast. using const int bundleA_gpios[] = { 1,2,3}; I can not use pin 3, its like the array has to start at 0 about the comment...
- Sat Jun 22, 2024 4:40 pm
- Forum: General Discussion
- Topic: modify directional registers.
- Replies: 2
- Views: 1017
Re: modify directional registers.
yeah I think I just typed that in wrong. but looks like GPIO.enable_w1tc and GPIO.enable_w1ts are not for inputs, they are the gates for outputs. so I tried IN_INPUT_ENABLE(IO_MUX_GPIO0_REG + (GPIO_NUM_1 * 4)); PIN_INPUT_ENABLE(IO_MUX_GPIO0_REG + (GPIO_NUM_0 * 4)); and also tried WRITE_PERI_REG((IO_...