Re: New firmware for printing directly from the Raspberry Pi's GPIO pins January 20, 2015 11:35AM |
Registered: 9 years ago Posts: 14 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins January 22, 2015 02:54AM |
Registered: 10 years ago Posts: 18 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins January 27, 2015 09:05PM |
Registered: 9 years ago Posts: 977 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins February 11, 2015 07:35PM |
Registered: 9 years ago Posts: 978 |
Quote
wallacoloo
As far as processor usage goes, it's not quite that straightforward. In the devel implementation, a single read using the component values found in the ramps-fd thermistor circuit (10 uF capacitor and 4.7k parallel resistance) will take 1 mS - 10 mS, based on the temperature, and is measured using a 1 MHz hardware timer. I think I have the sample rate set to 1 Hz right now from the legacy RC circuit, which could be naively translated to between 0.1% and 1% of cpu usage. The routine is non-blocking though, so it's still doing other stuff during this time and only checking the RC circuit every 2-3 uS or so.
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins May 20, 2015 05:03PM |
Registered: 10 years ago Posts: 210 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins May 28, 2015 04:39PM |
Registered: 10 years ago Posts: 18 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins May 29, 2015 01:36PM |
Registered: 9 years ago Posts: 12 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins June 01, 2015 02:07AM |
Registered: 10 years ago Posts: 18 |
cbArr.STRIDE = i/3;2 of the 3 control blocks didn't use the stride feature, so I was able to use that part of the block to store arbitrary data (looking back, one could cram the desired values of GPIO_SET/CLR into those spare bytes if they wanted to). This gave me an easier way to do a reverse-lookup of the current control-block index by just querying DMACH(n)->STRIDE, which makes it trivial to diagnose clock drift or jitter.
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins June 01, 2015 08:36AM |
Registered: 9 years ago Posts: 12 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins June 04, 2015 07:21PM |
Registered: 9 years ago Posts: 12 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins June 06, 2015 04:09AM |
Registered: 10 years ago Posts: 18 |
Quote
use 2 channels. one copying to GPIO_SET and one to GPIO_RESET. Do they stay synchronized if started at the same time?
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins June 06, 2015 04:42AM |
Registered: 10 years ago Posts: 210 |
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins June 11, 2015 12:02AM |
Registered: 9 years ago Posts: 12 |
I tought about this but the datasheet says "reserved" for the bytes between SET and CLEAR. So can we know nothing happens if we write to these addresses?Quote
GPIO_SET and GPIO_CLEAR are laid out something like so (I may have mixed this up - writing from memory): [GPIOSET0, GPIOSET1, 4-byte padding, GPIOCLR0, GPIOCLR1] where each register there is 4 bytes. The pins controlled by GPIOSET1 and GPIOCLR1 aren't routed to the header on any of the RPis (except perhaps the new B2s - not sure). Therefore if you write 16 sequential bytes to GPIOSET0, incrementing the destination address, you can write to all the needed GPIOs
Re: New firmware for printing directly from the Raspberry Pi's GPIO pins June 16, 2015 05:08PM |
Registered: 10 years ago Posts: 18 |
Quote
vlorijer
I tought about this but the datasheet says "reserved" for the bytes between SET and CLEAR. So can we know nothing happens if we write to these addresses?
I made a printout of your answer and take it with me on holiday. I 'll be back in a few weeks and hope get some ideas in that time.