Search found 147 matches

by dannyf
Mon Nov 20, 2017 12:08 am
Forum: General discussion
Topic: STM32 versus arduino pro mini
Replies: 4
Views: 167

Re: STM32 versus arduino pro mini

So what could be the unknown unknowns aka problems with the STM32? the single biggest unknown unknown here is the programmer - you. and the 2nd biggest unknown unknown is your application. lots can go wrong with any mcu, especially a complicated one like the stm32, especially if you are unskilled i...
by dannyf
Tue Nov 14, 2017 11:59 pm
Forum: CubeMX and HAL
Topic: GPIO macros for CubeMX
Replies: 4
Views: 196

Re: GPIO macros for CubeMX

I use a set of gpio routines in a similar fashion: #define IO_SET(port, pins) port->OUT |= (pins) #define IO_CLR(port, pins) port->OUT &=~(pins) ... or on cpus that allow atomic gpio operations, I use the following: #define FIO_SET(port, pins) port->BSRR = (pins) #define FIO_CLR(port, pins) port->BR...
by dannyf
Tue Nov 14, 2017 9:57 pm
Forum: Projects
Topic: In car multigauge
Replies: 142
Views: 5800

Re: In car multigauge

To just expand on my post above, each slave would be identical, with a library of charts or graphs, customizable by the master, to display a value sent by the master. So the master can simply tell a slave to render a particular graph, with titles, and range, and refresh periodically with a data item...
by dannyf
Mon Nov 13, 2017 9:05 pm
Forum: Off topic
Topic: Uncle Andrew.. how come we have a $2 multi MHz board?...
Replies: 23
Views: 366

Re: Uncle Andrew.. how come we have a $2 multi MHz board?...

The opposite of that question would have been a lot more interesting:

Can today's smartphones be made to do something else? Like reading the input from an opamp, or lighting up a led string, ...
by dannyf
Mon Nov 13, 2017 11:17 am
Forum: Projects
Topic: In car multigauge
Replies: 142
Views: 5800

Re: In car multigauge

Pic of my original Nano driven replacement just prior to install - it's a bit Heath Robinson: maybe a different approach: 1) each display unit consists of a small mcu driving a display; 2) the display units act as slaves taken data input from a master and visualize it on the display; 3) a master co...
by dannyf
Sun Nov 12, 2017 2:32 pm
Forum: STM8
Topic: STM8 Core
Replies: 39
Views: 2263

Re: STM8 Core

the dollar STM8S103 boards
I have loads of ghetto STM8S003Fs on pcb adapters, working just fine. They came to me at like 30c/chip. likely the least expensive brand-name MCUs.
by dannyf
Sun Nov 12, 2017 2:27 pm
Forum: General discussion
Topic: I2C freezes the STM
Replies: 8
Views: 203

Re: I2C freezes the STM

there is no easy answer
if your code uses SPL, it's not datasheet compliant - yes, ST's own code doesn't follow the datasheet.

The datasheet is correct, however, and the issue is with the clearing of EV6.
by dannyf
Sun Oct 15, 2017 7:55 pm
Forum: STM8
Topic: Introducing Sduino for the STM8
Replies: 11
Views: 651

Re: Introducing Sduino for the STM8

tenbaht: welcome. your sduino port is a valuable option for users of STM8. On the use of SPL: when I ported STM8Sduino, I actually used a middle layer (of mine) that is built on SPL. The overhead is about 2kb (using IAR). As my target was small STM8s (STM8S003F), I thought that was too costly and we...
by dannyf
Sat Oct 14, 2017 1:42 pm
Forum: Code snipplets
Topic: Unique device ID (and flash size)
Replies: 18
Views: 4850

Re: Unique device ID (and flash size)

This has been discussed to the nth degree. Many of those chips have more flash, more eeprom, more features than those specified in the datasheet and by the on device registers.

It is normal in that they are wide spread. It is not normal in that they are not in compliance with the datasheet.
by dannyf
Wed Oct 11, 2017 10:21 pm
Forum: Working / ported libraries
Topic: PCD8544 (Nokia 5110 Display)
Replies: 5
Views: 1055

Re: PCD8544 (Nokia 5510 Display)

I use them from time to time -> they come in with a nice PCB.

Otherwise, I have a bunch of 7110 lcd -> I wrote one of the earliest drivers for 7110.