/MCU_Experiments

Experiments on MCU with help Jupyter Notebook and REMCU Lib

Primary LanguageC

MCU_Experiments

Amazing experiments with microcontroller STM8L151 using an STM8L-Discovery development board, Jupyter Notebook, OpenOCD and REMCU lib

stm8l_discovery_GPIO_Toggle

It is a sample of working wit GPIO of STM8L-Discovery board.

stm8l_discovery_LCD_example

It is a sample of working wit LCD screen of STM8L-Discovery board. You can use the

void LCD_print(std::string str);

function and print a message on the LCD screen.

running

stm8l_discovery-DMA

It is a sample that demonstrates how to use the Direct Memory Access (DMA) in the STM8L. It is provided that shows how to use the DMA with the ADC and DAC using the various transfer modes of the DMA. This notebook capture ADC data on PC7 pin of STM8L-Discovery and generate a table siganl on PF0 pin using the DAC module of STM8L-Discovery simultaneously.

Russian description : https://habr.com/ru/post/486598/

English description : in proccess... Perhaps REMCU tutorial can help you run these notebooks.

Prerequirements

Hardware

  • MacOS or Linux x64 computer or virtual machine.
  • An STM8L-Discovery development board or another board with STM8L151
  • ST-Link device. It is a programmer and debugger for STM8 and STM32 chips. stlink
  • 4 wires to connect ST-Link with STM8L-Discovery and USB cable to connect the Discovery board with your PC.
  • An oscilloscope to display analog waves and a signal generator for ADC testing. It is optional.

Software

Prepare

Connect the st-link to the development board using the scheme:
connection Connect the st-link to PC
Run OpenOCD utility: "Image"

Running

Execute notebook cells and look at the results running