Search found 140 matches

by dannyf
Sun Oct 15, 2017 7:55 pm
Forum: STM8
Topic: Introducing Sduino for the STM8
Replies: 8
Views: 243

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: 4485

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: 979

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.
by dannyf
Mon Oct 09, 2017 11:58 pm
Forum: Code snipplets
Topic: 32-bit timers
Replies: 9
Views: 149

Re: 32-bit timers

I implemented the same concept on the ATmega8/8L "ghetto chrono": https://github.com/dannyf00/Ghetto-Chro ... er/ATmega8

it worked out nicely.
by dannyf
Mon Oct 09, 2017 9:02 pm
Forum: Code snipplets
Topic: 32-bit timers
Replies: 9
Views: 149

Re: 32-bit timers

more than one way of doing the same thing, :)

Thanks.
by dannyf
Mon Oct 09, 2017 8:19 pm
Forum: Code snipplets
Topic: 32-bit timers
Replies: 9
Views: 149

Re: 32-bit timers

here is a different approach: 32-bit input capture using a single 16-bit timer.

https://dannyelectronics.wordpress.com/ ... bit-timer/

tested on STM32F100 but should work on 103 as well.
by dannyf
Mon Oct 09, 2017 3:34 pm
Forum: General discussion
Topic: "bit bang" SPI pins STM32F1
Replies: 23
Views: 457

Re: "bit bang" SPI pins STM32F1

the following: //transmission on sck's rising edge void spi1_write(unsigned char data_t) { unsigned char mask = 0x80; //start with the most signifcant bit #if defined(SPI1_MOSI) IO_OUT(SPI1_DDR, SPI1_MOSI); //mosi as output #endif IO_CLR(SPI1_PORT, SPI1_SCK); //default state of sck: low while (mask)...
by dannyf
Mon Oct 09, 2017 1:33 pm
Forum: Code snipplets
Topic: 32-bit timers
Replies: 9
Views: 149

Re: 32-bit timers

not a problem. thanks.
by dannyf
Mon Oct 09, 2017 12:59 pm
Forum: Code snipplets
Topic: 32-bit timers
Replies: 9
Views: 149

Re: 32-bit timers

you are correct. my bad.
by dannyf
Mon Oct 09, 2017 12:12 pm
Forum: General discussion
Topic: "bit bang" SPI pins STM32F1
Replies: 23
Views: 457

Re: "bit bang" SPI pins STM32F1

Is there any quick and easy way to Bit Bang data from MOSI1 to MISO1 ,
not sure what that means.

you can certainly bitbang any pins but if the pin isn't routed out, not sure if it is instead better to bitbang a pin that is routed out.