Search found 74 matches

by nelfata
Sat Oct 11, 2014 7:30 pm
Forum: General Discussion and Questions
Topic: File I/O
Replies: 5
Views: 6729

File I/O

Hello, I am wondering if the following File functions are reliably working and were tested: - file and directory creation - file open with append flag - file seek - file flush - file close I did some timing measurement, it seems that most of these functions take about 40ms to execute. I am curious w...
by nelfata
Fri Oct 10, 2014 12:25 pm
Forum: General Discussion and Questions
Topic: Timer usage
Replies: 8
Views: 6866

Re: Timer usage

ok great. I will be waiting for your changes. Thank you.
by nelfata
Fri Oct 10, 2014 1:32 am
Forum: General Discussion and Questions
Topic: Timer usage
Replies: 8
Views: 6866

Re: Timer usage

Do you think this could be an easy fix?
If not please let me know. Thanks.
by nelfata
Fri Oct 10, 2014 12:38 am
Forum: General Discussion and Questions
Topic: Timer usage
Replies: 8
Views: 6866

Timer usage

Hello, I am trying to use the timer functionality on Y11/B0 and I don't seem to get it to work as on other pins. t = pyb.Timer(1, freq=1000, mode=pyb.Timer.CENTER) ch2 = t.channel(2, pyb.Timer.PWM, pin=pyb.Pin.board.Y11, pulse_width=(t.period() + 1) // 2) The datasheet shows: PB0: TIM1_CH2N, TIM3_CH...
by nelfata
Fri Oct 03, 2014 1:46 am
Forum: General Discussion and Questions
Topic: Watchdog timer
Replies: 0
Views: 2395

Watchdog timer

Is there any watchdog timer functionality using the STM hardware WDT?
by nelfata
Sun Sep 07, 2014 1:05 am
Forum: Development of MicroPython
Topic: RTOS Integration
Replies: 6
Views: 8626

Re: RTOS Integration

I can zip what I have and send it to you somehow. We could chat over Skype if you'd like. The older ChibiOS used to use the ST library, I looked recently and you are right it is no longer the case, but there GPIO structure definitions for example conflicts with the MP code definitions. I am not yet ...
by nelfata
Sat Sep 06, 2014 3:20 pm
Forum: Development of MicroPython
Topic: RTOS Integration
Replies: 6
Views: 8626

Re: RTOS Integration

I managed to get the ChibiOS as a library that links from the MP Makefile in stmhal. I figured since the main.c is in MP then better to make ChibiOS as a library. I got to a point where everything builds cleanly but could not get the ChibiOS to initialize the hardware correctly, with MP it is very d...
by nelfata
Tue Sep 02, 2014 5:29 pm
Forum: General Discussion and Questions
Topic: Pulse Generation
Replies: 7
Views: 7287

Re: Pulse Generation

Disabling interrupts is not a big problem due to the fact that the duration is less than 10usec.
Assembly is the most optimal but no longer portable.
by nelfata
Tue Sep 02, 2014 11:51 am
Forum: General Discussion and Questions
Topic: Pulse Generation
Replies: 7
Views: 7287

Re: Pulse Generation

The SPI pin I need is already in use on the board, but thank you for the idea, a good one.
I will have to bit bang it in C then.
Is there a usec delay routine within the MP C code?
by nelfata
Mon Sep 01, 2014 11:48 pm
Forum: General Discussion and Questions
Topic: Pulse Generation
Replies: 7
Views: 7287

Re: Pulse Generation

Interesting, I think your implementation could work.
I am using the AD8555 chip and part of its configuration requires to have short pulses for 0 (50ns to 10usec), long pulses for 1 (longer than 10usec) with at least 10usec between pulses.
It may work but I have to see in more detail what you've done.