Search found 3260 matches

by dhylands
Thu Jun 05, 2014 10:30 pm
Forum: General Discussion and Questions
Topic: Running micropython on BladeRF
Replies: 1
Views: 1969

Re: Running micropython on BladeRF

Hey Michael,

I don't see any reason why MicroPython couldn't run on your board.

You'd need to port it though, and most of the work will be in adding the peripheral support (serial, usb, gpio, adc, etc).
by dhylands
Wed Jun 04, 2014 4:00 pm
Forum: General Discussion and Questions
Topic: Other new Python implementations
Replies: 5
Views: 2741

Re: Other new Python implementations

Yeah - but most of those people actually use embedded platforms, and they don't seem to have a clue what it means to run in as little space as this is running in.

MicroPython rocks! (hopefully that makes you feel better)
by dhylands
Sun Jun 01, 2014 5:42 pm
Forum: General Discussion and Questions
Topic: Is this what I should be seeing
Replies: 1
Views: 1277

Re: Is this what I should be seeing

Nope. You should see somethhing like:

Code: Select all

# main.py -- put your code here!
So I think that your filesystem is corrupt. The instructions to reset it are here under the section "Boot Modes".
by dhylands
Thu May 29, 2014 5:18 pm
Forum: General Discussion and Questions
Topic: where to post bugs?
Replies: 3
Views: 1803

Re: where to post bugs?

I think that your edit was considered by the forum SW to be equivalent to Delete/Add and the first few posts for everyone are moderated.

So I think your edit was just stuck in the moderation queue and I just approved it.
by dhylands
Thu May 29, 2014 5:12 pm
Forum: General Discussion and Questions
Topic: Port vs Pin
Replies: 2
Views: 2275

Re: Port vs Pin

On the STM32F4xx, the GPIO ports are 16-bits wide. The description of the various registers can be found in the STM32F4xx Reference Manual (Note: This is a 1713 page document - about 21 Mb) The GPIO section starts on page 265 and the register descriptions start on page 278. You'll most likely bee in...
by dhylands
Tue May 27, 2014 5:22 pm
Forum: General Discussion and Questions
Topic: How fast can an output pin be toggled?
Replies: 24
Views: 10038

Re: How fast can an output pin be toggled?

I think I see what you are suggesting. I maybe missing something but I don't see what the advantage is setting up the DMA to pump out the data like that. Its not like you've offloaded the cpu so it could do something else while the transfer is happening. Implementing a bitbang function in assembler...
by dhylands
Tue May 27, 2014 5:32 am
Forum: General Discussion and Questions
Topic: How fast can an output pin be toggled?
Replies: 24
Views: 10038

Re: How fast can an output pin be toggled?

Is it a DMA limitation, or only on the current implementation? Well, with the DMA solution you're DMA'ing pulse widths. So this is one pulse width per bit being sent to the LED. With DMA you essentially need to take your 24-bit value for each LED and expand it into a 24-byte array. I'm pretty sure ...
by dhylands
Mon May 26, 2014 11:20 pm
Forum: General Discussion and Questions
Topic: How fast can an output pin be toggled?
Replies: 24
Views: 10038

Re: How fast can an output pin be toggled?

Neat - that's basically using PWM (generated by a timer) and using DMA to change the duty cycle.
by dhylands
Mon May 26, 2014 4:54 pm
Forum: General Discussion and Questions
Topic: How fast can an output pin be toggled?
Replies: 24
Views: 10038

Re: How fast can an output pin be toggled?

Looking at the datasheet, you could think of the data going to the LEDs as a serial data stream, where you send one of 2 possible bit sequences. The total of the sequences needs to be 1.25 usecs. If we were to divide this into 8, then we would have "bit times" which are 0.15625 usecs long. 3 bit tim...
by dhylands
Mon May 26, 2014 4:15 pm
Forum: General Discussion and Questions
Topic: How fast can an output pin be toggled?
Replies: 24
Views: 10038

Re: How fast can an output pin be toggled?

while 1: pyb.Pin('X1').value(1) pyb.Pin('X1').value(0) I would try rewriting it as: pin = pyb.Pin('X1') while 1: pin.value(1) pin.value(0) Now, if we look at your requirements, pulses that are 0.4usec and 0.85 usec. 0.4 usec is only 67 clock cycles, given that the processor is running at 168 MHz. I...