Search found 213 matches: CAN bus

Searched query: can bus

by ag123
Thu Mar 14, 2024 3:34 pm
Forum: General discussion
Topic: I2C communication does not work.
Replies: 3
Views: 463

Re: I2C communication does not work.

... but that is off-topic. Then that for i2c, many devices share the same bus and devices are identified by addresses. one of those things to try is to try the i2c scanner https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/master/STM32F1/libraries/Wire/examples/i2c_scanner_wire/i2c_scanner_wire.ino ...
by Koep
Wed Mar 13, 2024 4:05 pm
Forum: Custom design boards
Topic: Shrinking BluePill?
Replies: 0
Views: 1336

Shrinking BluePill?

... inaccuracy is the reason for the external 8Mhz crystal. How inaccurate can the HSI be? Enough to impair or to risk impairing CAN bus comm? Is the inaccuracy a difference between MCU's or is it inconsistent/wandering frequency ...
by fpiSTM
Wed Mar 13, 2024 9:38 am
Forum: Libraries & Hardware
Topic: Simplifying I2S Bus Implementation on STM32WL55JC1 with Arduino IDE
Replies: 1
Views: 688

Re: Simplifying I2S Bus Implementation on STM32WL55JC1 with Arduino IDE

HAL_I2S_MODULE_ENABLED is defined by default. You should check the system core clock config to see of the I2S is correctly configured. Then you can simply call the HAL I2S API. Pay attention to the IRQ handler definition if you are in Cpp file, it have to be prefixed by extern "C". You ...
by Yves2guilers
Mon Mar 04, 2024 7:51 am
Forum: Let us know a bit about you and your projects
Topic: hi, Yves from Brest in Brittany.
Replies: 1
Views: 310

hi, Yves from Brest in Brittany.

... a few weeks with a stm32Nucleo-F411Re. Then I have to get familiar with Bus Can under Stm32CubeIDE . I would like to understand the method to switch from a program produced ...
by ManX84
Tue Oct 17, 2023 3:48 pm
Forum: General discussion
Topic: I2C alternate pin setting not working on STM32 core (solved)
Replies: 11
Views: 2494

I2C alternate pin setting not working on STM32 core (solved)

... give version 1.9.0) On datasheet it is said that for I2C1 I can use PB9 as alternate SDA and PB8 as alternate SCL (confirmed with STM32CUBEmx). ... TwoWire WIRE1(PB9,PB8); void setup(){ WIRE1.begin(); // join i2c bus (address optional for master) } byte x = 0; void loop(){ WIRE1.beginTransmission(4); ...
by ag123
Thu Aug 24, 2023 2:27 pm
Forum: General discussion
Topic: stm32duino and DMA / ADC
Replies: 9
Views: 5379

Re: stm32duino and DMA / ADC

I think a lot of times 12 bits can reach those published rated rates on the spec sheets. But I seemed to have seen ... , but I stumble over that 60 mhz 8 bit parallel bus speeds interfacing requirements, which I think I can't achieve anything close to ...
by dannyf
Sat Jul 08, 2023 4:14 pm
Forum: General discussion
Topic: Can’t read AppleII 8-bit Data Bus with Blue Pill
Replies: 19
Views: 2030

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

It's like the interrupt latency is too high to capture within 450ns 20 - 40 ticks for isr overhead - depending on lots of factors. at 72Mhz, that means 300-600ns. so I think you have a fighting chance, if you read the input data register rightaway in the isr. one way to measure the isr is to read a...
by Very.Von
Sat Jul 08, 2023 1:00 pm
Forum: General discussion
Topic: Can’t read AppleII 8-bit Data Bus with Blue Pill
Replies: 19
Views: 2030

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

... so often. As long as ISR is shorter than 4µS, it should be working for latency up to 800, maybe 900nS. Thanks for that. I'm going to see how far I can get without using interrupts. I'll report back when I have some more progress.
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: 2030

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 Very.Von
Fri Jul 07, 2023 11:28 am
Forum: General discussion
Topic: Can’t read AppleII 8-bit Data Bus with Blue Pill
Replies: 19
Views: 2030

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

That code was for Apple 2. OH!! Hahaha, got it yes :D Anyway, by looking at datasheet you posted in first post, i still think you need to experiment and see what timings give you predictable result. Yes totally agree with those timings. It's the bare metal timings on the bluepill that I need to lea...

Go to advanced search