Search found 140 matches

by Bakisha
Tue Aug 08, 2023 5:58 pm
Forum: General discussion
Topic: How? help...
Replies: 4
Views: 897

Re: How? help...

Most of LED panels are like multiple 74HC595 in series. Even signal names are similar (clock, strobe and output enable). Output of one color can be connected to an input of next color. If there is A,B,C,D or similar letters on a input/output connector, it means they are multiplexed. Most probably P-...
by Bakisha
Tue Jul 11, 2023 9:33 pm
Forum: General discussion
Topic: stm32f103rct6 Midi driver cannot be recognized, PC cannot recognize and does not respond
Replies: 19
Views: 26478

Re: stm32f103rct6 Midi driver cannot be recognized, PC cannot recognize and does not respond

I tested it on bluepill ( STM32F103C8 with 128KB of flash). I don't know about STM32F103RC )

See if there is some item in device manager with yellow exclamation mark.
Try different USB port.
Try different USB cable.
by Bakisha
Tue Jul 11, 2023 3:00 pm
Forum: General discussion
Topic: Bluepill: 2 different timers to read 2 different FREQS
Replies: 17
Views: 2240

Re: Bluepill: 2 different timers to read 2 different FREQS

now, how do I know available timers and pins related to them? One way of figuring out which pin is related to which timer/channel is from Arduino core: https://github.com/stm32duino/Arduino_Core_STM32/blob/main/variants/STM32F1xx/F103C8T_F103CB(T-U)/PeripheralPins.c#L86-L132 I'm a little confused a...
by Bakisha
Tue Jul 11, 2023 2:15 pm
Forum: General discussion
Topic: stm32f103rct6 Midi driver cannot be recognized, PC cannot recognize and does not respond
Replies: 19
Views: 26478

Re: stm32f103rct6 Midi driver cannot be recognized, PC cannot recognize and does not respond

Check in device manager (right click "ThisPC->manage") is there a device named "Maple"
Clipboard01.jpg
Clipboard01.jpg (18.92 KiB) Viewed 5721 times
by Bakisha
Fri Jul 07, 2023 5:23 pm
Forum: General discussion
Topic: Can’t read AppleII 8-bit Data Bus with Blue Pill
Replies: 19
Views: 1985

Re: Can’t read AppleII 8-bit Data Bus with Blue Pill

Just an a idea for experiment: Attach interrupt on RW falling, and if DS is low grab data? It would trigger on every write, but writes on 6502 is not so often. As long as ISR is shorter than 4µS, it should be working for latency up to 800, maybe 900nS. Something like: attachInterrupt(digitalPinToInt...
by Bakisha
Thu Jul 06, 2023 8:02 pm
Forum: General discussion
Topic: Can’t read AppleII 8-bit Data Bus with Blue Pill
Replies: 19
Views: 1985

Re: Can’t read AppleII 8-bit Data Bus with Blue Pill

That code was for Apple 2. I am not familiar with its hardware , but code should be same: code1.jpg I can't say much about execution time of code generated with compilers, but i know that it's never one instruction per one CPU cycle. Anyway, by looking at datasheet you posted in first post, i still ...
by Bakisha
Thu Jul 06, 2023 3:26 pm
Forum: General discussion
Topic: Can’t read AppleII 8-bit Data Bus with Blue Pill
Replies: 19
Views: 1985

Re: Can’t read AppleII 8-bit Data Bus with Blue Pill

So appears to be working? My mistake, i missed value <<= 1; Unfortunately, until you measure bluepill's interrupt latency i can't say in what point in time you are reading data bus. But don't forget that you have info on BUS01, DS and RW also, so you can guess when the reading is done. I don't thin...
by Bakisha
Wed Jul 05, 2023 9:41 pm
Forum: General discussion
Topic: Can’t read AppleII 8-bit Data Bus with Blue Pill
Replies: 19
Views: 1985

Re: Can’t read AppleII 8-bit Data Bus with Blue Pill

This is little confusing for me: uint32_t displaymask = 1 << 31; if (value & displaymask) } Did you mean if (value & c) 1. not sure why you needed the while loop in the DS_ISR() -> it wouldn't be triggered unless you are on a falling edge. It's because 6502 timing. Adrress and RW is stable 3...
by Bakisha
Wed Jul 05, 2023 3:42 pm
Forum: General discussion
Topic: Can’t read AppleII 8-bit Data Bus with Blue Pill
Replies: 19
Views: 1985

Re: Can’t read AppleII 8-bit Data Bus with Blue Pill

As i recall from 6502 timings, your goal is to read data bus at rising edge of BUS0. . Maybe you are reading data bus too late. Try to attach interrupt at falling edge of DS , and while BUS0 is low, keep reading data bus... attachInterrupt(digitalPinToInterrupt(DS), DS_ISR, FALLING); volatile uint32...
by Bakisha
Sun Apr 30, 2023 10:17 pm
Forum: Code snippets
Topic: STM32F411CE hardware encoder
Replies: 0
Views: 6359

STM32F411CE hardware encoder

Hello After having some experiments with encoder on breadboard with STM32F411CE (WeAct board), i am made simple example to use it with timer working in hardware encoder mode. Tested with all combinations of pins that can be used for encoder input. I didn't use any debounce hardware, encoder module h...

Go to advanced search