Search found 9 matches

by BMcC
Mon Apr 20, 2015 4:48 pm
Forum: MicroPython pyboard
Topic: Reliable pulse output delays after interrupts?
Replies: 10
Views: 9239

Re: Reliable pulse output delays after interrupts?

What I did for a bandaid: disabled garbage collection, then ran manual collects after each generated pulse. My pulse lengths are normally of varied timing, but at regular intervals. In order to leave about 2 ms for GC, I no longer can do 100% duty cycle; however, the variation due to pyboard houseke...
by BMcC
Tue Apr 14, 2015 9:13 pm
Forum: MicroPython pyboard
Topic: Reliable pulse output delays after interrupts?
Replies: 10
Views: 9239

Re: Reliable pulse output delays after interrupts?

One thought: TIM2 looks like it can be triggered by an external input and be setup for one-pulse operation (from https://github.com/micropython/micropython/wiki/PWM-Timers). Maybe I could take an external input and trigger Tim2. I am unable to find out further documentation on the external input/tri...
by BMcC
Wed Apr 08, 2015 4:49 pm
Forum: MicroPython pyboard
Topic: Reliable pulse output delays after interrupts?
Replies: 10
Views: 9239

Re: Reliable pulse output delays after interrupts?

Thanks, Dave and Bryan. I'll look into your suggestions by mid next week (other fires to put out at the moment). Bill.
by BMcC
Tue Apr 07, 2015 9:52 pm
Forum: MicroPython pyboard
Topic: Reliable pulse output delays after interrupts?
Replies: 10
Views: 9239

Re: Reliable pulse output delays after interrupts?

What might be delaying the interrupt? I was guessing garbage collection, but my attempts at manually doing GC failed in one manner or another. I thought that I once read that the collection only took a few microseconds, but I could not find that thread. If it only takes a few microseconds then I can...
by BMcC
Thu Apr 02, 2015 7:55 pm
Forum: MicroPython pyboard
Topic: Reliable pulse output delays after interrupts?
Replies: 10
Views: 9239

Reliable pulse output delays after interrupts?

My program's goal is to await an external edge, and on receipt, generate a single pulse X microseconds later. This seems like it should be simple, but I can't seem to find a way to reliably output this pulse. I looked at using either a timer, interrupt or if statement, but nothing seemed to work wel...
by BMcC
Mon Mar 30, 2015 6:59 pm
Forum: MicroPython pyboard
Topic: Using the SD card, debugging
Replies: 9
Views: 8513

Re: Using the SD card, debugging

Thanks again, Dave! I guess that I thought there might be some kind of file swapping. I will look into storing the arrays on the card and then use a selector switch to choose the active array. FYI, I'm using the Pyboard to read an ADC, then the ADC value looks up an array value (i.e. non-linear sign...
by BMcC
Fri Mar 27, 2015 7:27 pm
Forum: MicroPython pyboard
Topic: Using the SD card, debugging
Replies: 9
Views: 8513

Re: Using the SD card, debugging

Thanks, I couldn't get your method to work and unless I misunderstand, I don't think it can work for my file. My main issue is I don't know how to make a program that utilizes a dozen, or so, 16kB arrays. The internal flash only has about 100k bytes available, but my code will have about twice that....
by BMcC
Fri Mar 27, 2015 5:32 pm
Forum: MicroPython pyboard
Topic: Using the SD card, debugging
Replies: 9
Views: 8513

Re: Using the SD card, debugging

Thanks, Dave. I am assuming that your method might havea similar effect as the one found at:
http://www.ninjagecko.co.uk/using-the-r ... on-script/

I'll try your method out!
by BMcC
Thu Mar 26, 2015 9:59 pm
Forum: MicroPython pyboard
Topic: Using the SD card, debugging
Replies: 9
Views: 8513

Using the SD card, debugging

I have a 16GB SD card plugged in but kept getting memory allocation errors (via PuTTY feedback). My program has three (eventually 13) integer arrays of 4096 values each and by deleting or moving code, the message seems to trigger after about 20 (or so) k-bytes are read in. I then commented out the w...