Search found 16 matches

by bittware
Sun Nov 25, 2018 12:58 am
Forum: MicroPython pyboard
Topic: What is the "primary channel"?
Replies: 2
Views: 677

Re: What is the "primary channel"?

The channels which end on an N are complimentary channels (i.e. TIM1_CH1N) and the channels which don't end an N (i.e. TIM1_CH1) are the primary channels. Thank you, dhylands. Following the hint given, I found the below description in the manual regarding the Complementary pair definition. 17.3.11 ...
by bittware
Fri Nov 23, 2018 3:47 am
Forum: MicroPython pyboard
Topic: What is the "primary channel"?
Replies: 2
Views: 677

What is the "primary channel"?

Hi, I'd like to use the 32-bit capture unit to log the timestamp of the event. It seems that only TIM2 and TIM5 support 32-bit counter. The docs say: Timer(2) and Timer(3) are used for PWM to set the intensity of LED(3) and LED(4) respectively. But these timers are only configured for PWM if the int...
by bittware
Sat Feb 21, 2015 12:56 pm
Forum: General Discussion and Questions
Topic: How fast can 16 input pins be read in sequence?
Replies: 6
Views: 4287

How fast can 16 input pins be read in sequence?

Hello, As Pyboard lacks the parallel interface, I'd like to use GPI bit-bang mode to read the 16-bit register value stored in external FPGA. Following steps need to done in sequence. 1.react to external I/O interrupt. 2.bit-bang sequential read on 16 GPI pins. 3.convert 16 single bit into two byte i...
by bittware
Fri Jan 02, 2015 3:06 am
Forum: General Discussion and Questions
Topic: Get data through USB_VCP
Replies: 4
Views: 2875

Get data through USB_VCP

Hello, My software on PC sends out switch status to pyboard from time to time based on button click operation on PC GUI. The status data is with fixed length, say 8 bytes, reflecting all switches status. I am hoping to use USB_VCP to get these data by polling in 100ms interval. One thing I'm not sur...
by bittware
Fri Dec 19, 2014 12:55 am
Forum: Other Boards
Topic: Lite board support
Replies: 4
Views: 3467

Re: Lite board support

The pyboard connects VBUS to PA9 to detect if the USB cable is plugged in or not. I'm not seeing anything on your board to do that, so you may need to change: https://github.com/micropython/micropython/blob/master/stmhal/usbd_conf.c#L73-L77 https://github.com/micropython/micropython/blob/master/stm...
by bittware
Thu Dec 18, 2014 12:31 pm
Forum: Other Boards
Topic: Lite board support
Replies: 4
Views: 3467

Re: Lite board support

What are you doing with BOOT0 and BOOT1 ? On the pyboard, BOOT0 and BOOT1 are both pulled to ground, which makes it run normally. Pulling BOOT0 high during reset is what puts it in DFU mode. Does USB serial work and USB Mass storage doesn't ? or does neither work? What does lsusb show? There are so...
by bittware
Thu Dec 18, 2014 4:11 am
Forum: Other Boards
Topic: Lite board support
Replies: 4
Views: 3467

Lite board support

Hello, I bought a lite MCU board which only features STM32F405RGT and a couple of buttons and LEDs. But after I flashed in the latest MicroPython, the computer can not recognize it a removable disk like my genuine Mircopython board does. I don't know what's going wrong. Could anyone give me some hin...
by bittware
Sun Sep 14, 2014 1:01 pm
Forum: General Discussion and Questions
Topic: Why is the USB_VCP module gone?
Replies: 12
Views: 7011

Re: Why is the USB_VCP module gone?

USB_VCP has no concept of baud rate. It isn't needed. When you connect to usb_serial, the baud rate that you use is ignored. You only need a baud rate with a UART. I know REPL needs baud rate of 115200 which is fixed by design. However, once I need USB_VCP for other purpose, e.g. customized data tr...
by bittware
Sun Sep 14, 2014 6:38 am
Forum: General Discussion and Questions
Topic: Why is the USB_VCP module gone?
Replies: 12
Views: 7011

Re: Why is the USB_VCP module gone?

USB_VCP has no concept of baud rate. It isn't needed. When you connect to usb_serial, the baud rate that you use is ignored. You only need a baud rate with a UART. I know REPL needs baud rate of 115200 which is fixed by design. However, once I need USB_VCP for other purpose, e.g. customized data tr...
by bittware
Sun Sep 14, 2014 3:59 am
Forum: General Discussion and Questions
Topic: Why is the USB_VCP module gone?
Replies: 12
Views: 7011

Re: Why is the USB_VCP module gone?

USB_VCP is documented here: http://micropython.org/doc/module/pyb/USB_VCP Here is an exmple that uses it: https://github.com/dhylands/upy-examples/blob/master/keys.py and here's how you use repl_uart: https://github.com/dhylands/upy-examples/blob/master/boot.py (look at the init function). Running ...