Author Topic: RadASM 3.0.1.0 for STM32F103C8T6 MCU (Blue Pill)  (Read 1829 times)

KetilO

  • Moderator
  • Regular Member
  • *****
  • Posts: 40
Re: RadASM 3.0.1.0 for STM32F103C8T6 MCU (Blue Pill)
« Reply #15 on: October 10, 2022, 01:58:00 AM »
Some time ago I bouth a 4.0 inch LCD panel on eBay.
The panel has the ST7796 driver chip.
More info at: http://www.lcdwiki.com/4.0inch_SPI_Module_ST7796

I finaly found the time to test it.
Included is the source code and how to connect it to the STM32F103C8T6 (Blue Pill) .
An image is also included.

KetilO
« Last Edit: October 10, 2022, 07:08:22 AM by KetilO »

KetilO

  • Moderator
  • Regular Member
  • *****
  • Posts: 40
Re: RadASM 3.0.1.0 for STM32F103C8T6 MCU (Blue Pill)
« Reply #16 on: October 11, 2022, 07:28:52 PM »
Same as abow but for the STM32F401 (Black Pill).
It shouldl also work with the STM32F411 (Black Pill).

I will for shure create somthing useful with this MCU / LCD.

KetilO
« Last Edit: October 12, 2022, 12:46:29 AM by KetilO »

KetilO

  • Moderator
  • Regular Member
  • *****
  • Posts: 40
Re: RadASM 3.0.1.0 for STM32F103C8T6 MCU (Blue Pill)
« Reply #17 on: October 15, 2022, 07:56:34 AM »
Educational experiments tool version 2.
-----------------------------
What you need:
Breadboard and wire jumpers
STM32F401 and ST-Link programmer
4.0 inch SPI LCD panel  with ST7796 controller
Capacitors:
1 x 47uF electrolye
2 x 10nF
1 x 1nF
1 x 330pF
Resistors:
1 x 68K
1 x 33K
1 x 22K
2 x 18K
4 x 10K

What you can build:
-------------------
Digital oscilloscope
Waveform generator
High speed clock generator
Frequency counter
Voltmeter
Ohm-meter (measure resistors)
Capistance-meter (measure capacitors)
Inductance meter (measure inductors)
Diode tester
Transistor tester, auto detect NPN / PNP
+ your own inventions

KetilO
« Last Edit: January 17, 2023, 01:00:17 AM by KetilO »

KetilO

  • Moderator
  • Regular Member
  • *****
  • Posts: 40
Re: RadASM 3.0.1.0 for STM32F103C8T6 MCU (Blue Pill)
« Reply #18 on: October 20, 2022, 07:52:22 PM »
Abowe post has been updated to version 2.

New experiments to try:

Inductance meter (measure inductors)
Diode tester
Transistor tester, auto detect NPN / PNP


KetilO

KetilO

  • Moderator
  • Regular Member
  • *****
  • Posts: 40
Re: RadASM 3.0.1.0 for STM32F103C8T6 MCU (Blue Pill)
« Reply #19 on: October 27, 2022, 08:26:54 PM »
SimCadAddin bugfix.

Unzip SimCadAddin.zip to C:\RadSTM32\Addins

Version 1.0
-----------
Initial release.
Version 1.1
-----------
o Fixed bug where adding a symbol did not work as it should.
o It is now possible to have more than one cad file open.

KetilO

Raistlin

  • Member
  • ****
  • Posts: 551
Re: RadASM 3.0.1.0 for STM32F103C8T6 MCU (Blue Pill)
« Reply #20 on: October 28, 2022, 08:22:09 AM »
VERY VERY Cool KetilO, this project is awesome  :thumbsup:
Are you pondering what I'm pondering? It's time to take over the world ! - let's use ASSEMBLY...

KetilO

  • Moderator
  • Regular Member
  • *****
  • Posts: 40
Re: RadASM 3.0.1.0 for STM32F103C8T6 MCU (Blue Pill)
« Reply #21 on: January 17, 2023, 01:06:00 AM »
Educational experiments tool version 3.

Version 3       2023-01-16 Bugfix
                    Fixed bug in LCD.c LCD_WR_REG where
                   the program could hang in this function.
                   Speed optimized LCD.c LCD_DrawIcon.
                   Changed main.c SysTick handler to generate
                   interrupt every second.

The abowe posts download and Sourceforge  has been updated.

KetilO

bluedevil

  • Member
  • **
  • Posts: 204
  • Binary Grinder
    • SCTZine
Re: RadASM 3.0.1.0 for STM32F103C8T6 MCU (Blue Pill)
« Reply #22 on: January 24, 2023, 12:19:22 AM »
Hello Ketil;
Does the driver IC matters while using 4.0" lcd screen? For example can I use ILI9486 with your sources?
..Dreams make the future
But the past never lies..
BlueDeviL // SCT
My Code Site:
BlueDeviL Github

bluedevil

  • Member
  • **
  • Posts: 204
  • Binary Grinder
    • SCTZine
Re: RadASM 3.0.1.0 for STM32F103C8T6 MCU (Blue Pill)
« Reply #23 on: January 24, 2023, 01:07:22 AM »
How much volts you need for reed relays: 5V, 12V or 24V
..Dreams make the future
But the past never lies..
BlueDeviL // SCT
My Code Site:
BlueDeviL Github

KetilO

  • Moderator
  • Regular Member
  • *****
  • Posts: 40
Re: RadASM 3.0.1.0 for STM32F103C8T6 MCU (Blue Pill)
« Reply #24 on: January 26, 2023, 12:59:08 AM »
Hi

"Does the driver IC matters while using 4.0" lcd screen? For example can I use ILI9486 with your sources?"
No, the LCD.c file needs to be modified to match the  ILI9486 .

"How much volts you need for reed relays: 5V, 12V or 24V"
5V

KetilO

KetilO

  • Moderator
  • Regular Member
  • *****
  • Posts: 40
Re: RadASM 3.0.1.0 for STM32F103C8T6 MCU (Blue Pill)
« Reply #25 on: January 26, 2023, 01:34:18 AM »
Hi,

I am currently working on a project using the STM32F103 (blue pill) where you connect
it to yor PC via USB. The PC will then replace the LCD screen.

Included are all the sources for this early version.

KetilO

zedd151

  • Member
  • *****
  • Posts: 1931
Re: RadASM 3.0.1.0 for STM32F103C8T6 MCU (Blue Pill)
« Reply #26 on: January 26, 2023, 04:16:07 AM »

I am currently working on a project using the STM32F103 (blue pill) where you connect
it to yor PC via USB. The PC will then replace the LCD screen…

Sounds like an outstanding project. Makes me want to get back into making electronics projects of my own again…  :biggrin:
Regards, zedd.
:tongue:

bluedevil

  • Member
  • **
  • Posts: 204
  • Binary Grinder
    • SCTZine
Re: RadASM 3.0.1.0 for STM32F103C8T6 MCU (Blue Pill)
« Reply #27 on: January 26, 2023, 05:09:04 AM »
Ketil; thank you for your answers.

I have questions on the semi-conductors: TLE2072, TL074, TL712 and LM311. You have mentioned the base names but did not share the exact names. There are several postfixes for those transistors; like: TLE2072ACP, TLE2072IP, TLE2072CP and goes on...

I have found these on Al-i-express; are those compatible?

TL074CN
LM311DR
TLE2072CP
TL712CP

Or can you share the full names(including postfixes) of transistors. Thank you.
..Dreams make the future
But the past never lies..
BlueDeviL // SCT
My Code Site:
BlueDeviL Github

KetilO

  • Moderator
  • Regular Member
  • *****
  • Posts: 40
Re: RadASM 3.0.1.0 for STM32F103C8T6 MCU (Blue Pill)
« Reply #28 on: January 26, 2023, 07:36:41 PM »
Hi bluedevil

The only important thing is that it is a PDIP package and not the SOIC.
Some postfixes are for ceramic or plastic and lead free

Example:
TLE2072CP (PDIP-8) - OK
LE2072ACPE4 (PDIP-8 lead free) - OK
TLE2072IDR (SOIC 8)- Surface mount, not ok

KetilO




bluedevil

  • Member
  • **
  • Posts: 204
  • Binary Grinder
    • SCTZine
Re: RadASM 3.0.1.0 for STM32F103C8T6 MCU (Blue Pill)
« Reply #29 on: January 27, 2023, 04:17:06 AM »
OK Ketil, taking into account your directions, I am goıng to buy those semiconductors:

TL074CN
LM311P
TLE2072CP
TL712CP

I understand that these are compatible for your projects.
..Dreams make the future
But the past never lies..
BlueDeviL // SCT
My Code Site:
BlueDeviL Github