Page 2 of 2

Re: Maxim 1-wire with ChibiOS

Posted: Thu Dec 15, 2011 2:44 pm
by matis
I'm also developing a bit banged 1 wire interface on my F103VET6 on pin PB8 (SDIO_D4).

I used the code posted by CheBuzz on 12 Dec 2011 04:26. Is this the "best" way to bit bang a 1 wire interface?

Edit; Question:
tickDelay(int tick)
One tick do represent 5uS of wait.

tickSleep(int tick)
Does tick represent a 5uS wait or 1uS?

I guess the first :)

Edit 2; I can't get the GPT3 to work. The gptp->state is equal to GPT_STOP, where it expects / requires to be GPT_READY. I already changed the chBSemReset to set the semaphore as taken.
Possible solution; It seems like it that, in tickSleep(), the gptStart(&GPTD3, &gpt3cfg); is forgotten. Adding that, fix the debug assertion :)

Re: Maxim 1-wire with ChibiOS

Posted: Sat Oct 27, 2012 5:11 pm
by alex31
Jacon wrote:Considering problems described in above posts, Maxim recommends another
(but uncoventional :) ) solution for 32bit MCUs in their own AppNote:

http://www.maxim-ic.com/app-notes/index.mvp/id/214

It's definitely worth to try, especially using our Chibi UART driver with
DMA & properly sized buffers 8-)



I just have begin such a job, no tested intensively, but it works for my needs
i have posted code and information in the «user project» forum.

http://forum.chibios.org/phpbb/viewtopic.php?f=8&t=713

Alexandre