-
Datei
main.c
// includes #include <stddef.h> #include <stdlib.h> #include "stm32l1xx.h" #include "halfSinus.h" // defines #define VREF 2920 // VREF+ (mV), nearly VDD // variables volatile uint16_t amplitude; // function prototypes void InitLEDs(); void InitDAC(); void InitADC()
in „STM32L1 - ADC mit Timertriggerung und EOC-Interrupt hängt sich auf“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
PeriphCode.c
#include "stm32f0xx.h" #define SPIBUFFERSIZE 256 char SPIRxBuffer[SPIBUFFERSIZE]; char SPITxBuffer[SPIBUFFERSIZE]; int main() { int i = 0; for(i=0;i<SPIBUFFERSIZE;i++) { SPIRxBuffer[i] = 0x5A; SPITxBuffer[i] = 0xA5
in „STM32F0 SWD LockOut“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
mmc_config.h
Daniel R. */ #ifndef CONFIG_H_ #define CONFIG_H_ #include <ctype.h> #include <stdint.h> //#include "stm32f10x.h" // wegen den hardware pins SMT32... #include <avr/io.h> // wegen den hardware pins AVR //##################################################################################### // BOOL DEFINITIONEN
in „AVR und großer Speicher“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
myfirst.s
Terminal_USART_GTPR, Terminal_USART_Base + 0x18 .equ RXNE, BIT5 .equ TC, BIT6 .equ TXE, BIT7 Reset: @ Initialize STM32 Clocks @ Ideally, we would just take the defaults to begin with and @ do nothing. Because it is possible that HSI is not @ accurate enough for the serial communication (USART2), we @ will switch from
in „mein erstes STM32F4 .asm/ .s Program stürzt ab im gdb“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
usart3.c
www.mino-elektronik.de */ #define _USART3 #define PRIO_USART3 10 // mittlere Priorität #include "stm32f4xx.h" #define BIT(x) (1<<x) enum gpio_modus {IN, OUT, AF, ANALOG}; enum gpio_speed {LOW_SPEED, MEDIUM_SPEED, HIGH_SPEED, V_HIGH_SPEED}; enum gpio_pullup {NO_PULL, PULL_UP, PULL_DOWN}; // PortB #define
in „stm32f411 USART2 will nicht wie er soll“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
oneWire.c
**/ /* Includes **********************************************************************/ #include "stm32f10x_conf.h" #include "Delay.h" #include "oneWire.h" #include "math.h" /* Functions **********************************************************************/ //reset device uint8_t ds1820_reset(GPIO_TypeDef
in „Timingproblem mit Onewire und STM32“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include <stm32f0xx.h> // Static definitions for data conversion between actual values and SPI output values (1:3 bit ratio) #define SERVALS(B) (0b10010010|(((B)&0x80)>>1)|(((B)&0x40)>>3)|(((B)&0x20)>>5)), (0b01001001
in „The secret of WS2812B“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
adc.c
**** */ /* ---------------------- System Include Files ----------------------------- */ #include "stm32f10x_conf.h" /* ---------------------- Standard Include Files --------------------------- */ #include <stdint.h> #include <stdbool.h> /* ---------------------- Projekt Include Files ----------------
in „EmBitz Debugging Problem mit STM32F103“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include "stm32f10x_lib.h" #include <stdint.h> GPIO_InitTypeDef GPIO_InitStructure; USART_InitTypeDef USART_InitStructure; ErrorStatus HSEStartUpStatus; void RCC_Configuration(void); void NVIC_Configuration(void);
in „CortexM3 include problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
I2CRoutines.h
h2> */ /* Includes ------------------------------------------------------------------*/ #include "stm32f10x.h" /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __I2CROUTINES_H #define __I2CROUTINES_H /* Exported types -------------------------------------------
in „stm32 Cortex I2C : Master zieht SCL auf Masse“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
I2CRoutines.h
h2> */ /* Includes ------------------------------------------------------------------*/ #include "stm32f10x.h" /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __I2CROUTINES_H #define __I2CROUTINES_H /* Exported types -------------------------------------------
in „Cortex I2C zu kurze Impulsdauer“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ADC_Setup.c
#include "stm32f4xx.h" #include "gDef.h" #include "gVar.h" void ADC_Setup(void) { ADC_InitTypeDef ADC_InitStructure; ADC_CommonInitTypeDef ADC_CommonInitStructure; DMA_InitTypeDef DMA_InitStructure; GPIO_InitTypeDef
in „STM32 ADC DMA falsche Interrupt Frequenz“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
// https://www.mikrocontroller.net/topic/513315?goto=6623438#6623438 #include <stdio.h> #include "stm32f0xx.h" #include "usb_vcp.h" // Delay some milliseconds void delay_ms(int ms) { //[ALEX] uint32_t start=systick_count; uint32_t start=HAL_GetTick(); while (HAL_GetTick()-start<ms); } // Called by Assembler
in „STM32 USB Übertragungsproblem mit Code von S.F.“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ili9341Driver.h
AUTHOR] * License: None */ #ifndef ILI9341_ILI9341DRIVER_H_ #define ILI9341_ILI9341DRIVER_H_ #include <stm32f1xx.h> #include <stdio.h> #include <stdlib.h> #include <stdint-gcc.h> #include <string.h> #include <math.h> #include "../delay.h" #include "../usart.h" //Control Pins #define DC_PIN 10 //LCD Register
in „ILI9486 8-Bit Parallel Bus deutlich langsamer als SPI“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include "stm32f10x_conf.h" #include "main.h" void eraseFlashPage(uint8_t page) { uint32_t addr = FLASH_ADDR + 0x400 * page; FLASH_Unlock(); FLASH_ClearFlag(FLASH_FLAG_PGERR | FLASH_FLAG_WRPRTERR | FLASH_FLAG_EOP)
in „STM32F103 bootloader tool“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
*** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" #include "adc.h" #include "i2c.h" #include "rtc.h" #include "spi.h" #include "tim.h" #include "usart.h" #include "gpio.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* Private
in „STM32F4 HAL TIMER Interrupt läuft nicht“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
clockmicro-clockmicrov2.pdf
C20 C21 C22 C23 GND 100n 100n 100n 100n +3.3V +3.3.33.33.3V GND GND GND GND 4 6 8 k 9 U3 2 3 4 9 STM32F103C8Tx 1 3 D D D A R D D D D SW1 V V V D V NRST 7 3 NRST SW_PUSH C16 3 + 4 N 44 BOOT0 D T G LO = Boot from flash 100n B 100 1 VBAT R42 GND GND C18 C19 5 5 PD0/RCC_OSC_IN F 6 PD1/RCC_OSC_OUT 2 100n
-
PDF
atf.pdf
R39 V12 PSMN4R6-60 X1:1 LINK+ X2:5 27R,1W BAV103 F3 C22 C4 6 9 E1 SMA6J33CA 100n 4u7 D3 R 3 PR5/25 STM32L412 V1 V2 V4 X1:5 BC856 X1:4 1 , 4 , X1:3 VDDA 30 PWRON_H R R R R PB7 V5 R3 2 2 E2 +18V +3.3V L1 BC846 +7V PR5/25 N1 5 VDDA 15k MIC5233-3.3 F.B.,0.2A 8 9 9 5 R2 1 IN OUT 3 1 VDD R 3 R 1 V3 6 17 VDD
in „Schaltplan richtig zeichnen“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
SRC_Power_Checker.pdf
F3 C ADC1 IN7 M_3V3b PC1 PC8 EEPROM_SCL Fiducials_bot Fiducials_bot Fiducials_bot C SamacSys_Parts_STM32G474RET6-MasterarbeitMV F4 F5 F6 Fiducials_top Fiducials_top ADC1 IN8 10 39 Fiducials_top M_3Va PC2 PC7 LCD_SDA I2C4_SDA ADC1 IN9 M_3Vb 11 PC3 PC6 38 LCD_SCL I2C4_SCL 1 J1 ADC1 IN1 M_14V2a 12 PA0 PB15
in „STM32G474 Startverhalten“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
CPSignal_Wallbox_mit__C.pdf
definiert bleiben. Deshalb würde ich klar den ±12-V-Analogschalter nehmen. Mein konkreter Aufbau ESP32 / STM32 / AVR │ ├── Timer-PWM 1 kHz ── 1 kΩ ── TMUX6219 SEL ├── ENABLE ─────────── 1 kΩ ── TMUX6219 EN └── ADC ◄── Schutz + Pegelverschiebung ◄── CP isolierter ±12-V-Wandler ├── +12 V ── 100 nF + 4,7 µF ├─
in „saubere Rechtecksignalpegelwandlung 0/5V auf +12/-12V“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
uart.c
#include <stdio.h> #include <stdint.h> #include "stm32.h" #include "core_cm3.h" #include "main.h" #include "gpio.h" #include "uart.h" #include "rx_buffer.h" volatile char linebuf[120] = {0}; volatile int lbufcnt=0, lbuflen=0; void uart1_init(int baud)
in „[Cortex-M3] Problem mit dem UART“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
dogm_spi_3.3V.c
#include <stm32f10x_conf.h> GPIO_InitTypeDef GPIO_InitStructure; void delayLoop() { volatile uint32_t delayCount = 500000; /* volatile to avoid compiler optimization */ while (delayCount > 0) { delayCount--; } } void
in „EA DOGM162 mit STM32 reagiert nicht mit SPI“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
i2croutines.h
----------------------------------------------*/ #include "../boot/stdint.h" #include "../Std_lib/stm32f10x_conf.h" /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /* I2C SPE mask */ #define
in „stm32 Cortex I2C : Master zieht SCL auf Masse“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
255, 255, 0 ); IP4_ADDR( &gw, 192, 168, 5, 5 ); netif_add( &netif, &ipaddr, &netmask, &gw, NULL, &stm32_ethernetif_init, ðernet_input ); netif_set_default( &netif ); netif_set_up( &netif ); while( 0 == netif_is_up( &netif ) ) { vTaskDelay( 5000 / portTICK_RATE_MS ); } } void ModBusMaster_init (void
in „FreeRTOS + LWIP + UART Interrupt Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd.h
LCD_H /* Includes -------------------------------------------------------------------*/ #include "stm32f0xx_hal.h" #include <stdbool.h> /************************************************************************************** * Begin struct definitions * ************************************************
in „LCD W204B-NLW“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd.c
*****/ /* Includes ------------------------------------------------------------------*/ #include "stm32f0xx_hal.h" #include "lcd.h" /************************************************************************************** * Begin of Handlers * ***********************************************************
in „LCD W204B-NLW“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include "stm32f10x_conf.h" // PCD8544 Commandset // ------------------ // General commands #define PCD8544_POWERDOWN 0x04 #define PCD8544_ENTRYMODE 0x02 #define PCD8544_EXTENDEDINSTRUCTION 0x01 #define PCD8544_DISPLAYBLANK
in „Nokia Display an STM funktioniert nicht“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
label-vs-wire.pdf
REL-01+ A0 IO0 2 IN1 OUT1 19 X1:B6 REL-06_H 3 IN2 OUT2 16 4 IN3 OUT3 15 X1:A6 D5 IN4 OUT4 REL-00+ STM32L451 X1:B7 12 THER CS 8 R13 SCL-REL 11 DIAG_EN CL 9 TPS-B_I X1:A7 SCL1 PB8 61 5 SEH N/C 14 15k,1% 6 SEL N/C 13 % % % SDA1 PB9 62 SDA-REL PADGND 3 , 7 , 1 , R k R k R 5 PC12 53 DIAG_H 1 1 1 1 +3.3V 57
in „Schaltungs Kontrolle“ · Platinen ·
-
Datei
main.c
#include "stm32f4xx.h" #include <stdio.h> #define SELECT_GYRO GPIO_ResetBits (GPIOE, GPIO_Pin_3) #define DESELCT_GYRO GPIO_SetBits (GPIOE, GPIO_Pin_3) void USART_SendString(USART_TypeDef * USARTx, char * data); /*
in „STM32-Discovery Gyro auslesen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
kk_ov7670c.h
21578936 δ����ɽ�ֹ�κ���ҵ��; #include "ov7670.h" #include "main.h" #include "ov7670config.h" #include "stm32f10x_lib.h" */ //extern const char change_reg[CHANGE_REG_NUM][2]; //////////////////////////// //���ܣ��ṩ7660ʱ�� //���أ��� /* void XCLK_init_ON(void) { GPIO_InitTypeDef GPIO_InitStructure; RCC_APB2PeriphClockCmd
in „Leisungsvergleich ARM AVR“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
readme.txt
einen Easy-PDK-Programmer Clone hatte ich bereits aufgebaut, aber eben wie der originale mit einem STM32F072 der momentan nur relativ teuer erhältlich ist – Stand 12.12.2020). Google-Ergebnisse geben da derzeit nur 2 Projekte aus, die nicht auf dem oben genannten Programmer basieren. Beide habe ich ausprobiert
in „Padauk PFS154 Programmer mit Arduino Uno / ATmega88 - 328“ · Projekte & Code ·
-
Datei
readme.txt
einen Easy-PDK-Programmer Clone hatte ich bereits aufgebaut, aber eben wie der originale mit einem STM32F072. Dieser ist derzeit nur relativ teuer erhaetlich – Stand 12.12.2020). Google-Ergebnisse geben da derzeit nur 2 Projekte aus, die nicht auf dem oben genannten Programmer basieren. Beide habe ich
in „Padauk PFS154 Programmer mit Arduino Uno / ATmega88 - 328“ · Projekte & Code ·
-
PDF
project__2_.pdf
C3+ Boot0 Jumper 47 VSS_3 VSS_1 23 Boot1 Jumper 19 C1- GND 48 VDD_3 VDD_1 24 GND C21 18 C1+ 17 C23 STM32L151C8T6 C22 1uF - 4.7uF 16 C2+ 100nF 100nF GND C25 15 C2- C27 0,1uF - 2,2uF C26 14 N.C C28 0,1uF - 2,2uF 1uF - 4.7uF 13 N.C GND GND V1 C29 0,1uF - 2,2uF 12 V2 C30 0,1uF - 2,2uF 11 V3 0,1uF - 2,2uF
in „LCD + nRF24L01 = EMV/HF Probleme?“ · HF, Funk und Felder ·
-
PDF
Schaltplan.pdf
100n 10uF / 6.3V R6 4 6 8 A red LED-GREEN GND GND GND GND 1 2 3 4 9 GND 64kB Flash / 20kB RAM A 100R STM32F103xxT U3 yellow 3.3V +5V USB 3.3V A _ _ _ _ TxD und RxD remapped!! B C C C C RTS 10 V V V V V 18 SWITCH VLMKE3400-GS08 R15 LED-RED 11 PA0-WKUP PB0 19 ANALOG 10k LED-GREEN 12 PA1 PB1 20 CS-1 13 PA2
in „STM32 und USB-Bulk Transfer“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
oneWire.c
**/ /* Includes **********************************************************************/ #include "stm32f10x_conf.h" #include "Delay.h" #include "oneWire.h" #include "math.h" /* Functions **********************************************************************/ //reset device uint8_t ds1820_reset(GPIO_TypeDef
in „Timingproblem mit Onewire und STM32“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include "stm32f3xx.h" //T=0.5ms; ein Impuls=350*T Impulsfunktion=500+16,66*x(=abstand)~500+17*x //Sensor Enfernung~1500/X, X=Augabewert des Sensors //LEDS an Pins A15, B4 und B6; SharpIn an Pin C1 SharpOut an Pin
in „sharp gp2d02 mit STM32F303 programieren“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LVGLDispDriver_DISCO_F769NI.cpp
LCD_COLOR_BLUE); _lcd.SetTextColor(LCD_COLOR_WHITE); _lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"DISCOVERY STM32F769NI", CENTER_MODE); init(); } void LVGLDispDISCO_F769NI::init() { size_t bufferSize = LV_HOR_RES_MAX * _nBufferRows; #if (USE_STATIC_BUFFER == 0) // allocate memory for display buffer // lv_color_t
in „komplexes Problem mit Grafik und Dateisystem auf Disco-F746NG“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
*** */ /* Includes ------------------------------------------------------------------*/ #include "stm32f4xx_hal.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* Private variables ---------------------------------------------------------*/ UART_HandleTypeDef huart1; /* USER CODE BEGIN
in „STM32F4 CubeMX UART Probleme“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
*** */ /* Includes ------------------------------------------------------------------*/ #include "stm32l1xx_hal.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* Private variables ---------------------------------------------------------*/ UART_HandleTypeDef huart1; /* USER CODE BEGIN
in „Überlauf UART“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
definitions.h
#ifndef DEFINITIONS_H #define DEFINITIONS_H #include "stm32f0xx_hal.h" typedef struct SR_STR{ GPIO_TypeDef* port; uint16_t pin; }SR_STR_t; typedef struct SR_D{ GPIO_TypeDef* port; uint16_t pin; }SR_DATA_t; typedef struct SR_C{ GPIO_TypeDef* port; uint16_t pin
in „Interrupt wird ständig aufgerufen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
create_header.pl
#!/usr/bin/perl $family ="stm32f1xx"; $deffile = "unilib.def"; $outfile = ">unilib.h"; $outfile2 = ">unilib_internals.h"; $outfile1 = ">inc/unilib_defs.h"; $infunc=0; open(WFILE,$outfile); open(XWFILE,$outfile2); open(RFILE,"/usr
in „Bauen von Libs - Anhängigkeiten“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
httpd_cgi_ssi.c
strcmp(pcValue[i], "4") ==0) STM_EVAL_LEDOn(LED4); } } } /* uri to send after cgi call*/ return "/STM32F4x7LED.html"; } /** * Initialize SSI handlers */ void httpd_ssi_init(void) { /* configure SSI handlers (ADC page SSI) */ http_set_ssi_handler(ADC_Handler, (char const **)TAGS, 2); } /** * Initialize
in „LWIP Webserver“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
FreeRTOSConfig.h
dependability. 1 tab == 4 spaces! */ #ifndef FREERTOS_CONFIG_H #define FREERTOS_CONFIG_H #include "stm32f4xx.h" //#include "ustime.h" /*----------------------------------------------------------- * Application specific definitions. * * These definitions should be adjusted for your particular hardware
in „Olimex STM32E407, FreeRTOS und lwip“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
httpd_cgi_ssi.c
strcmp(pcValue[i], "4") ==0) STM_EVAL_LEDOn(LED4); } } } /* uri to send after cgi call*/ return "/STM32F4x7LED.html"; } /** * Initialize SSI handlers */ void httpd_ssi_init(void) { /* configure SSI handlers (ADC page SSI) */ http_set_ssi_handler(ADC_Handler, (char const **)TAGS, 2); } /** * Initialize
in „LWIP Webserver“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
FEZ_Cerb40.pdf
PC14 3 PC14/XO32 47 VCAP_2 PC15 4 PC15/XI32 PD2 54 PD2/SD_CMD C8 C9 S S S 2.2uF 2.2uF V V V Q2 GND STM32F40X 1 1 6 32k VBUS GND C21 C22 D 18pF USB_DP D+ 18pF USB_DM D- B VBUS VBUS S GND GND U GNDX4 1M R7 C11 4700pF,250V Open Source Hardwar GND Licensed under Creative Commons Share A E http://creativecommons.org
in „Störsignal auf Spannungsversorgung“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
r3-180-z.pdf
18.432MHz NMI Y A + J 3 2 C 15p 15p 2 74HCT125 U3 CONN1 C1 C2 U3 100n NC 1 RST 6 Y A 5 ZRST TX 2 STM32 Serial EN 4 K 4 RX (Bootloader) 74HCT125 5 R 3 4 +5V +5V +5V +5V 7 8 9 C C C 13EN 100n 100n 100n A Y NC 12 11 U3 74HCT125 R3 - HD64180 TITLE FILE: REVISION: PAGE OF DRAWN BY:
in „CP/M auf ATmega88“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
GameOfLife.c
#include "GameOfLife.h" #include "main.h" #include "stm32f7xx_hal.h" #include "stm32f7xx_hal_rng.h" uint8_t Layerswitch = 0; void GameOfLife (void) { const uint16_t Spielfeldgroesse_x = 90; const uint16_t Spielfeldgroesse_y = 50; uint8_t Wahrscheinlichkeit
in „Game of Life läuft nur eine Runde!“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ffconf.h
ID */ /* Includes ------------------------------------------------------------------*/ #include "stm32f10x.h" /*---------------------------------------------------------------------------/ / Function and Buffer Configurations /-------------------------------------------------------------------------
in „elm-chan FatFS“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
swd_analyzer.c
chris http://www.mikrocontroller.net/topic/309185 Based on: http://sourceforge.net/apps/mediawiki/stm32primer2swd/index.php?title=Main_Page#SWD_Packet_Construction */ #include <stdio.h> typedef unsigned char byte; typedef unsigned short word; typedef unsigned int dword; typedef unsigned long long qword
in „Hackbarer(?) 21 EUR Quadcopter“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
gfx_pictures.c
5 Bit fuer blau) Verfuegbare Formate sind: PCX 256 Farben BMP s/w, 4, 16, 256 Farben MCU : AVR / STM32 / STM8 25.01.2019 R. Seelig ------------------------------------------------------ */ #include "gfx_pictures.h" /* ---------------------------------------------------------- bmpsw_show Kopiert ein