-
Datei
Tastatur.c
/********************************************** Programmname: Alarmanlage Funktion: Funktion einer Alarmanlage sicherstellen Compiler: AVR Studio 4.14 Ersteller: Ranftl Version/Datum: 1.0 / 11/08 Hardware: ATMEGA32, AVR Dragon, Steckbrett Änderungen: ***********************************************/ #include <avr/interrupt.h> // include interrupt header #include <string.h> // include string header #include "LCD.h" // LCD-Header #include <avr\io.h> typedef unsigned char u8; typedef unsigned short u16; #define NOP(); asm volatile("nop"::); #define KEY_PIN PINC #define KEY_PORT PORTC #define KEY_DDR
in „4x4 Tastaturabfrage“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
untitled.c
#include "inc/hw_memmap.h" #include "inc/hw_types.h" #include "inc/hw_ints.h" #include "driverlib/debug.h" #include "driverlib/gpio.h" #include "driverlib/pwm.h" #include "driverlib/sysctl.h" #include "rit128x96x4.h" #include "driverlib/interrupt.h" #include "driverlib/systick.h" void PWMInit(void); void ButtonInit(void); const int Inkrement = 512; const float RezInkrement = 1.0/Inkrement; float dummy=1500; int PulseWidth = 1500; int t=0, iVal=0, i=0; j = 0; volatile int flag = 0; void PWMInterrupt(void) { PWMGenIntClear(PWM_BASE, PWM_GEN_1, PWM_INT_CNT_ZERO); flag = 0; } void PWMInit(void) {
in „Servozittern bei PWM“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Abwurfsteuerung_Nano_5.ino
= 10; const byte interruptPin = 2; const byte relaisPin = 6; static const int RXPin = 4, TXPin = 5; LiquidCrystal_I2C lcd(0x3F, 16, 2); int buttonIncreaseDistance = 7; int buttonDecreaseDistance = 8; volatile boolean drop = LOW;
in „variabel 12-24V für Arduino Interrupt verwenden“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
at90s2313-datasheet-atmel.pdf
1200 )1000 H ( C800 FR 600 400 200 0 2 2.5 3 3.5 4 4.5 5 5.5 6 VccV) 79 0839I–AVR–06/02 Note: Sink and source capabilities of I/O ports are measured on one pin at a time. Figure 68. Pull-up Resistor Current vs. Input
in „AVR Studio 4.19“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
AT90S2313_Datasheet.pdf
1200 )1000 H ( C800 FR 600 400 200 0 2 2.5 3 3.5 4 4.5 5 5.5 6 VccV) 79 0839I–AVR–06/02 Note: Sink and source capabilities of I/O ports are measured on one pin at a time. Figure 68. Pull-up Resistor Current vs. Input
in „Fragen zum Sleep Mode“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
uint8_t key_rpt; // key long press and repeat char ausgabe[72]; #define KEY_DDR DDRA #define KEY_PORT PORTA #define KEY_PIN PINA #define SEL 0 #define LEFT 1 #define DOWN 2 #define UP 3 #define RIGHT 4 #define ALL_KEYS (1<<SEL | 1<<LEFT | 1<<DOWN | 1<<UP | 1<<RIGHT) #define REPEAT_MASK (1<<SEL | 1<<
in „C-Code auf AVR effizient schreiben“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Musikbett.c
+1]); LED_PORT3 = pgm_read_byte(&pattern[patternPos+2]); LED_PORT4 = pgm_read_byte(&pattern[patternPos+3]); } // Hauptprogramm int main(void) { LED_PORT1_DIR = 0b11111111; //Alle Pins an A als Ausgang LED_PORT2_DIR = 0b11111110; //Alle Pins bis auf 0 an B als Ausgang LED_PORT3_DIR = 0b11111111; //Alle Pins an C als Ausgang LED_PORT4_DIR = 0b11111111; //Alle Pins an D als Ausgang while (1) { uint8_t pos; for (pos = 0; pos < sizeof(pattern
in „ATMEGA 16 schaltet nicht ab.“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.c
( LCD_SOFT_RESET ); _delay_ms( LCD_SOFT_RESET_MS1 ); lcd_enable(); _delay_ms( LCD_SOFT_RESET_MS2 ); lcd_enable(); _delay_ms( LCD_SOFT_RESET_MS3 ); // 4-bit Modus aktivieren lcd_out( LCD_SET_FUNCTION | LCD_FUNCTION_4BIT ); _delay_ms( LCD_SET_4BITMODE_MS ); // 4-bit Modus / 2 Zeilen / 5x7 lcd_command
in „Initialisierung 204b LCD mit ST7066U“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
S32K-RM.pdf
Pin Control Register n (PORT_PCR1) 32 R/W See section 12.5.1/213 8 Pin Control Register n (PORT_PCR2) 32 R/W See section 12.5.1/213 C Pin Control Register n (PORT_PCR3) 32 R/W See section 12.5.1/213 10
-
PDF
RN-Mega_Board.pdf
PB3 / MISO /PCINT3 (SPI-Bus und ISP) Pin 23 PB4 / OC2A / PCINT4 Pin 24 PB5 / OC1A / PCINT5 Pin 25 PB6 / OC1B / PCINT6 Pin 26 PB7 / OC0A / OC1C / PCINT7 Pin 27 PH7 / T4 Pin 28 PG3 / TOSC2 / Uhrenquarz bereits
in „ATmega2560 spinnt“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
AT89S8252_Datasheet_doc0401.pdf
( ( ( ( PLCC X ) E ) 0 1 2 3 ) S T T A A A A 4 3 2 1 0 ( C 0 1 2 3 ( 1 1 1 1 1 . C C 0 0 0 0 . P P P P P N V P P P P 6 5 4 3 2 1 4 4 4 4 4 (MOSI) P1.5 7 39 P0.4 (AD4) (MISO) P1.6 8 38 P0.5 (AD5) (SCK) P1.7 9 37 P0.6 (AD6) RST
in „lichtschranke mit zählfunktion einer umdrehung“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
AT89S8252.pdf
( ( ( ( PLCC X ) E ) 0 1 2 3 ) S T T A A A A 4 3 2 1 0 ( C 0 1 2 3 ( 1 1 1 1 1 . C C 0 0 0 0 . P P P P P N V P P P P 6 5 4 3 2 1 4 4 4 4 4 (MOSI) P1.5 7 39 P0.4 (AD4) (MISO) P1.6 8 38 P0.5 (AD5) (SCK) P1.7 9 37 P0.6 (AD6) RST
in „UART_ Werte empfangen???“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
AT89S8252.pdf
( ( ( ( PLCC X ) E ) 0 1 2 3 ) S T T A A A A 4 3 2 1 0 ( C 0 1 2 3 ( 1 1 1 1 1 . C C 0 0 0 0 . P P P P P N V P P P P 6 5 4 3 2 1 4 4 4 4 4 (MOSI) P1.5 7 39 P0.4 (AD4) (MISO) P1.6 8 38 P0.5 (AD5) (SCK) P1.7 9 37 P0.6 (AD6) RST
in „I2C Anschluß AT89S8252“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
doc0401.pdf
( ( ( ( PLCC X ) E ) 0 1 2 3 ) S T T A A A A 4 3 2 1 0 ( C 0 1 2 3 ( 1 1 1 1 1 . C C 0 0 0 0 . P P P P P N V P P P P 6 5 4 3 2 1 4 4 4 4 4 (MOSI) P1.5 7 39 P0.4 (AD4) (MISO) P1.6 8 38 P0.5 (AD5) (SCK) P1.7 9 37 P0.6 (AD6) RST
in „IDE für 8051“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
avrtut.pdf
0...0.625V 0 0.625...1.25V 1 1.25...1.875V 2 1.875...2.5V 3 2.5...3.125V 4 3.125...3.75V 5 3.75...4.375V 6 4.375...5V 7 5V 8 Die Angaben sind natürlich nur ungefähr. Je höher nun die Auflösung des ADC ist, also je mehr Bits er hat, um so genauer
-
Datei
hdd_meter.c
/* _ _ _ _ * | |__ __| | __| | _ __ ___ ___| |_ ___ _ __ * | '_ \ / _` |/ _` | | '_ ` _ \ / _ \ __/ _ \ '__| * | | | | (_| | (_| | | | | | | | __/ || __/ | * |_| |_|\__,_|\__,_| |_| |_| |_|\___|\__\___|_| * * A little gadget that shows hard disk activity as a tachometer made from LEDs. This firmware * is based on an AVR ATmega48. * * NOTCE: This firmware only works correctly if the input frequency does not exceed about 3KHz. * That should be sufficient for any PC mainboard's HDD indicator. * * firmware, version 1.0 * (cl) Michael Gross, 12.2009 */ #include <avr/io.h> #include <avr/wdt.h> #include
in „Schaltungen zum Verschenken, hier: Festplattentacho“ · Projekte & Code ·
-
Datei
lcd.c
löscht P0..3 => 0bxxxx 0000 LCD_PORT |= 0x03; // => 0bxxxx 0011 LCD_PORT &= ~(1<<LCD_RS); // RS auf 0 =INSTRUKTION // LCD_PORT &= ~(1<<LCD_RW); // RW auf 0 =INSTRUKTION lcd_enable(); //Sende 1mal _delay_ms(5); lcd_enable(); //Sende 2mal _delay_ms(1); lcd_enable(); //Sende 3mal _delay_ms(1); // 4 Bit Modus aktivieren LCD_PORT &= 0xF0; LCD_PORT |= 0x02; lcd_enable(); _delay_ms(4); // Function Set : 0b0010 1000 => 4Bit / 2 Zeilen /
in „Hilfe beim LCD“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Programm_Option_-v_und_-Wl-v_Ausgabe_.txt
\DxCore\hardware\megaavr\1.5.11\variants\64pin-standard c:\avrtoolchain\avr-gcc-8.5.0_mingw32_binutils2.42_avrlibc2.2github\bin\../lib/gcc/avr/8.5.0/include c:\avrtoolchain\avr-gcc-8.5.0_mingw32_binutils2.42_avrlibc2.2github\bin
in „GCC v14 Release“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
atmel-42330-atmel-ice_userguide.pdf
In System Programming. Table 3-6. Atmel-ICE SPI Pin Mapping Atmel-ICE AVR port pins Target pins Mini-squid pin SPI pinout Pin 1 (TCK) SCK 1 3 Pin 2 (GND) GND 2 6 Pin 3 (TDO) MISO 3 1 Pin 4 (VTG) VTG 4 2 Pin 5 (TMS) 5 Pin 6 (nSRST)
in „AVRISP mkII Connect Failed“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Atmel-ICE_UserGuide.pdf
In System Programming. Table 3-6. Atmel-ICE SPI Pin Mapping Atmel-ICE AVR port pins Target pins Mini-squid pin SPI pinout Pin 1 (TCK) SCK 1 3 Pin 2 (GND) GND 2 6 Pin 3 (TDO) MISO 3 1 Pin 4 (VTG) VTG 4 2 Pin 5 (TMS) 5 Pin 6 (nSRST)
in „Atmel ICE Programmer und UPDI“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Programm_Option_-v_Ausgabe_.txt
\DxCore\hardware\megaavr\1.5.11\variants\64pin-standard c:\avrtoolchain\avr-gcc-8.5.0_mingw32_binutils2.42_avrlibc2.2github\bin\../lib/gcc/avr/8.5.0/include c:\avrtoolchain\avr-gcc-8.5.0_mingw32_binutils2.42_avrlibc2.2github\bin
in „GCC v14 Release“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
i2c.c
correctly 1. Power: In the PCONP register (Table 46), set bit PCI2C0/1/2. Remark: On reset, all I2C interfaces are enabled (PCI2C0/1/2 = 1). 2. Clock: In PCLKSEL0 select PCLK_I2C0; in PCLKSEL1 select PCLK_I2C1 or PCLK_I2C2 (see Section 4.7.3). 3. Pins: Select I2C0, I2C1, or I2C2 pins through the PINSEL registers. Select the pin modes for the port pins with I2C1 or I2C2 functions through the PINMODE registers (no pull-up, no pull-down resistors) and the PINMODE_OD
in „LPC1758 Problem mit I2C Bus“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
rfm70.c
. { (0x20|0x0C), 0xc3 }, //LSB Addr pipe 2 --->>> LSB der Pipe-Adresse der Pipe 2 { (0x20|0x0D), 0xc4 }, //LSB Addr pipe 3 --->>> LSB der Pipe-Adresse der Pipe 3 { (0x20|0x0E), 0xc5 }, //LSB Addr pipe 4 --->>> LSB
in „Referenzparameter richtig übergeben“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
AtmelCprogramming.pdf
0...0.625V 0 0.625...1.25V 1 1.25...1.875V 2 1.875...2.5V 3 2.5...3.125V 4 3.125...3.75V 5 3.75...4.375V 6 4.375...5V 7 5V 8 Die Angaben sind natürlich nur ungefähr. Je höher nun die Auflösung des ADC ist, also je mehr Bits er hat, um so genauer
in „ATmega 8 und ohmisch messen“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Atmel.pdf
0...0.625V 0 0.625...1.25V 1 1.25...1.875V 2 1.875...2.5V 3 2.5...3.125V 4 3.125...3.75V 5 3.75...4.375V 6 4.375...5V 7 5V 8 Die Angaben sind natürlich nur ungefähr. Je höher nun die Auflösung des ADC ist, also je mehr Bits er hat, um so genauer
in „RS232 direkt Anbindung“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
AtmelCprogramming.pdf
0...0.625V 0 0.625...1.25V 1 1.25...1.875V 2 1.875...2.5V 3 2.5...3.125V 4 3.125...3.75V 5 3.75...4.375V 6 4.375...5V 7 5V 8 Die Angaben sind natürlich nur ungefähr. Je höher nun die Auflösung des ADC ist, also je mehr Bits er hat, um so genauer
in „Suche gute möglichst Deutsche Doku zum C für AVR zu lernen“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
AtmelCprogramming.pdf
0...0.625V 0 0.625...1.25V 1 1.25...1.875V 2 1.875...2.5V 3 2.5...3.125V 4 3.125...3.75V 5 3.75...4.375V 6 4.375...5V 7 5V 8 Die Angaben sind natürlich nur ungefähr. Je höher nun die Auflösung des ADC ist, also je mehr Bits er hat, um so genauer
in „Tutorial mit sämtlichen Registererklärungen“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Pcm4823.pdf
FLM 37 M 38 LP 39 GND 40 ENABKL 41 GND 42 ASHFCLK 43 ENAVDD 44 Vcc 58 PCM-4823/4823L User's Manual A.3 COM2 RS-232/422/485 serial port (CN9) Table A-3: PCM-4823/4823L COM2 RS-232/422/485 series port Pin RS-232 port RS-422 port RS-485 port 1 DCD N/C N/C 2 DSR N/C N/C 3 RxD N/C N/C 4 RTS N/C N/C 5 TxD N
in „Hitachi SP10Q003 // SP10Q005 ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Pcm4823.pdf
FLM 37 M 38 LP 39 GND 40 ENABKL 41 GND 42 ASHFCLK 43 ENAVDD 44 Vcc 58 PCM-4823/4823L User's Manual A.3 COM2 RS-232/422/485 serial port (CN9) Table A-3: PCM-4823/4823L COM2 RS-232/422/485 series port Pin RS-232 port RS-422 port RS-485 port 1 DCD N/C N/C 2 DSR N/C N/C 3 RxD N/C N/C 4 RTS N/C N/C 5 TxD N
in „Astec LPT42 Schaltnetzteil“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Nuforce_P9_-_Pinbeschreibung_Funktionsbeschreibung.txt
, Widerstand mit Pin 19 Pin 9 -> Reset highaktiv Port A, Pin 39 - 32, Daten für 2x20-Display Port C, Pin 28 -> steuert Eingangs-Relais 5, lowaktiv Port C, Pin 27 -> Kommunikation mit U1 Port C, Pin 26 -> Kommunikation mit
in „Unbekannten Controller identifizieren“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
STK200.PDF
LEDS JP3 - JUMPER FOR RXD ENABLE PORT D JUMPERS DISABLE SWITCHES RS232 PORT D - ALL PARTS EXCEPT 8 PIN POWER INPUT MISC. HEADER 9-15V DC OR 7-12 AC FOR NON-PORT PINS JP2 - JUMPER FOR BROWN-OUT AT 3.3V OR 5V ON-OFF
in „Absolute Verzweiflung. STK200 und PonyProg“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
RFM70_HH.c
stdio.h> #include <string.h> #define F_CPU 16000000UL #define LEDPORT PORTF #define LED_READY_bm 16 // Port F Pin 4 #define LED_1_bm 32 // Port F Pin 5 #define LED_2_bm 64 // Port F Pin 6 #define LED_3_bm 128 // Port F Pin 7 #define SWITCHPORT PORTF #define SWITCH_REC_bm 2 // Port F Pin 1 #define SWITCHMASK
in „RFM70 arbeitet nicht zuverlässig“ · HF, Funk und Felder ·
-
Datei
soft-pwm_56leds.c
// Software-PWM by PoWl - 23.10.08 // webmaster@the-powl.de // ATmega8 @ 8Mhz #define F_CPU 16000000UL #include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> #include <stdbool.h> // Sinustabelle f?r Demo const uint8_t sinetable[] = { 128, 131, 134, 137, 140, 143, 146, 149, 152, 155, 158, 162, 165, 167, 170, 173, 176, 179, 182, 185, 188, 190, 193, 196, 198, 201, 203, 206, 208, 211, 213, 215, 218, 220, 222, 224, 226, 228, 230, 232, 234, 235, 237, 238, 240, 241, 243, 244, 245, 246, 248, 249, 250, 250, 251, 252, 253, 253, 254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 254, 254,
in „8-Bit Software PWM für mehr als 8 Kanäle“ · Projekte & Code ·
-
Datei
soft-pwm_56leds.c
// Software-PWM by PoWl - 23.10.08 // webmaster@the-powl.de // ATmega8 @ 8Mhz #define F_CPU 16000000UL #include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> #include <stdbool.h> // Sinustabelle f?r Demo const uint8_t sinetable[] = { 128, 131, 134, 137, 140, 143, 146, 149, 152, 155, 158, 162, 165, 167, 170, 173, 176, 179, 182, 185, 188, 190, 193, 196, 198, 201, 203, 206, 208, 211, 213, 215, 218, 220, 222, 224, 226, 228, 230, 232, 234, 235, 237, 238, 240, 241, 243, 244, 245, 246, 248, 249, 250, 250, 251, 252, 253, 253, 254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 254, 254,
in „56x PWM + Serielle Kommunikation mit PC“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Stoppuhr_8515.c
gemeldet? LED_PORT|=(1<<LED3_G); //wenn ja, grüne led an else LED_PORT|=(1<<LED3_R); //sonst rote led an LED_PORT|=(1<<LED2_R); //led2 rot // rfm_init(); //funkmodul einstellen /* rfm_setbandwidth(4, 0, 0); // 200kHz
in „AVR überspringt Wertzuweisung“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
s3aeval_quick_start_11_1_A.pdf
. The jumpers should be set as follows (refer to the table and diagram below): Jumper Function Pin Setting Mode Description JP1 Flash Write Protect Pins 1-2 Open No write protect JP2 Power Source #1 Pins 1-2 Closed USB (P1) Power JP3 Power-on Reset / PROG Pins 1-2 Open No Reset, PROG released JP4 Pins 1-2 Open Mode Pins 3-4 Closed Master SPI Pins 5-6 Closed PUDC Pins 7-8 Open No pull-ups during configuration JP5 FPGA Suspend Pins 2-3 Closed Disable suspend mode JP6 External SPI Pins 1-2 Closed Disable
in „Einfacher Zähler in VHDL mit Spartan 3 Starter Board“ · FPGA, VHDL & Co. ·
-
Datei
enc28j60.c
deselecting chip select for the ENC28J60. Some HW dependancy.*/ #define SEL_MAC(x) (x==TRUE) ? (ETH_CS_PORT &= ~_BV(ETH_CS_PIN)) : (ETH_CS_PORT |= _BV(ETH_CS_PIN)) /** MACRO for rev B5 fix.*/ #define ERRATAFIX SetBitField(ECON1, ECON1_TXRST);ClrBitField(ECON1, ECON1_TXRST);ClrBitField(EIR, EIR_TXERIF | EIR_TXIF
in „Problem mit ENC28J60“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
; HAL_GPIO_Init(OC_SEL_GPIO_Port, &GPIO_InitStruct); /*Configure GPIO pin : OC_COMP_INT2_Pin */ GPIO_InitStruct.Pin = OC_COMP_INT2_Pin; GPIO_InitStruct.Mode = GPIO_MODE_INPUT; GPIO_InitStruct.Pull = GPIO_PULLDOWN; HAL_GPIO_Init(OC_COMP_INT2_GPIO_Port, &GPIO_InitStruct); /*Configure GPIO pins : OCTH_STBY2_Pin OCTH_STBY1_Pin */ GPIO_InitStruct.Pin = OCTH_STBY2_Pin|OCTH_STBY1_Pin; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_PULLDOWN
in „Problem mit STM32F103 und RAM-Größe“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
T6963C.c
/* * T6963C.c * */ #define F_CPU 16000000UL #include <avr/io.h> #include <util/delay.h> #define cmdPort PORTB #define cmdDDR DDRB #define writeCommandPin PINB0 #define readCommandPin PINB1 #define enableControllerPin PINB2 #define commandDataSelectPin PINB3 #define resetPin PINB4 #define fontSelectPin PINB5 #define dataPort PORTD #define dataDDR DDRD #define TEXT_HOME_ADRESS_SET 0x0000 #define GRAPHIC_HOME_ADRESS_SET 0x1f00
in „Grafikdisplay (T6963C) Hard- oder Softwarefehler?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Atmega16_3x_DS18S20.c
); tC -= 80; } //Pin7 f?r 80?C an if(tC >= 40) { p |=(1<<6); tC -= 40; } //Pin6 f?r 40?C an if(tC >= 20) { p |=(1<<5); tC -= 20; } //Pin5 f?r 20?C an if(tC >= 10) { p |=(1<<4); tC -= 10; } //Pin4 f?r 10?C an if(tC >= 8) { p |=(1<<3); tC -= 8; } //Pin3 f?r 8?C an if(tC >= 4) { p |=(1<<2); tC -= 4; } //Pin2 f?r 4?C an if(tC >= 2) { p |=(1<<1); tC -= 2; } //Pin1 f?r 2?C an if(tC >= 1) { p |=(1<<0); tC -= 1; } //Pin0
in „Thermomixer noch einmal neu - dieses mal nur ein MEGA16“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
IP113A_Datasheet.pdf
only) 1 1: BIST enable 0: bypass BIST 3.5 tp_force -- This pin overwrites the setting on pin 26 Pin (0) TP_FORCE. 3.6 mg_receive_en -- TP receive enable 1 1: TP port can receive packet 0: TP port drop all received packet 3.7 reserved -- The
in „Umsetzer Ethernet Glasfaser“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
nrf24l01_drv.c
---- Defintionen ---------------------------- */ #define _BV(bit) (1 << (bit)) /* Anschluesse der Pins */ #define RF_SPI SPI2 #define CSN_PORT GPIOB #define CSN_PIN GPIO_Pin_12 #define CE_PORT GPIOB #define CE_PIN GPIO_Pin_11 #define IRQ_PORT GPIOA #define IRQ_PIN GPIO_Pin_2 #define NRF24L01_PORT GPIOB
in „NRFL24L01+ - Immer Ärger mit den Paarungen“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
A6_A7_A6C_datasheet-EN.pdf
new camera chip, and software support. 16 Ai ThinkerTechnology Co.Ltd 深圳市安信可科技有限公司 Pin Pin Name Function Number 1 CAM_D1 Data of the camera foot Y1, 2 CAM_D2 Data of the camera foot Y2 3 CAM_D3 Data of the camera foot Y3 4 CAM_D4 Data of the camera foot Y4 5 CAM_D5 Data of the camera
in „Kein TX bei GSM Modul“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include "stm32f0xx.h" #include <stdbool.h> #include <stdio.h> #include "main.h" // ---------------------------------------------------------------------------- /* * * RAM Bank of 5 23LC1024 SPI memory chips testing unit * */ // ---------------------------------------------------------------------------- GPIO_InitTypeDef GPIO_InitStructure; SPI_InitTypeDef SPI_InitStructure; RCC_ClocksTypeDef Clocks; static const uint32_t ramSize = 0x1FFFF; static const uint8_t RAM_banks = 4; static uint32_t temptime = 0; static uint32_t address; static char text[255]; // LED blinky volatile uint32_t SysTickCnt
in „SPI-RAM-Bank an STM32F0-Discovery - write, kein read“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
nrf24l01.c
/* ******************************************** Modul : NRF24L01 Bedienung des RF Funkmodules Autor : Christian Julius ******************************************** SPI1: MOSI = PA7 MISO = PA6 SCLK = PA5 CE = PD7 CSN = PD4 IRQ = PC1 APB2 Clock = 1/2 SystemClock = 168 / 2 = 84 Mhz Prescaler 64 => Fspi = 1.3 Mhz */ //#pragma GCC optimize ("O0") /* -------------- System Include Files ----------------- */ #include "stm32f4xx.h" #include "stm32f4xx_rcc.h" #include "stm32f4xx_spi.h" #include "stm32f4xx_gpio.h" /* -------------- Standard Include Files ----------------- */ #include <stdint.h> /* ------
in „[STM32F4xx] NRF24L01+ Funkmodul Source Code“ · Projekte & Code ·
-
PDF
BM-ATOM1.0-V1.6.pdf
[ 24-SOIC] GC49C501R0-SO20I GC49C501G0-SO24I GC49C501G0-SJ20I GC49C501R0-SO24I GC49C501R0-SJ20I VDD 1 A 8 VSS P0.0 2 1 7 P2.0/SCLK R P0.1 3 P 6 P2.1/SDAT P0.2 4 5 P2.2 Preliminary 5. Pin Description (20-pin/24-pin) Symbol
-
PDF
Datasheet_ATmega1281_doc2549.pdf
source 6: The PE6 pin can serve as an external interrupt source. T3, Timer/Counter3 counter source. INT5/OC3C – Port E, Bit 5 INT5, External Interrupt source 5: The PE5 pin can serve as an External Interrupt source. OC3C
in „LM73 über TWI/I2C mit Atmega1281 auslesen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main_laeuft_14032021.c
TRISCbits.TRISC5 = 0; // set PORTC5 as output port Brake_ON TRISCbits.TRISC4 = 0; // set PORTC4 as output port LCD_ON TRISBbits.TRISB3 = 0; // set PORTB3 as output port LED TRISCbits.TRISC2 = 0; // set PORTC2 as output port PWM TRISAbits.TRISA0 = 1; // set PORTA0 as input port Throttle TRISAbits.TRISA1 = 1; // set PORTA2 as input port DR TRISAbits.TRISA2 = 1; // set PORTA2 as input port Current TRISAbits.TRISA5 = 1; //
in „C18_PIC18Fx_Code läuft nicht“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
user.manual.lpc17xx.pdf
value 1:0 P2.00MODE Port 2 pin 0 control, see P0.00MODE. 00 3:2 P2.01MODE Port 2 pin 1 control, see P0.00MODE. 00 5:4 P2.02MODE Port 2 pin 2 control, see P0.00MODE. 00 7:6 P2.03MODE Port 2 pin 3 control, see P0.00MODE
in „LPCxpresso 1769 I2C Takt einstellen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
entprellen_part2.c
#include <avr/io.h> #include <avr/interrupt.h> #include <avr/signal.h> typedef unsigned char u8; typedef signed short s16; #define XTAL 1e6 // 1MHz #define KEY_PIN PIND #define KEY0 0 #define KEY1 1 #define KEY2 2 #define LED_DDR DDRB #define LED_PORT PORTB #define LED0 0 #define LED1 1 #define LED2 2 #define REPEAT_MASK (1<<KEY1^1<<KEY2) // repeat: key1, key2 #define REPEAT_START 50 // after 500ms #define REPEAT_NEXT 20 // every 200ms u8 key_state; // debounced and inverted key state: // bit = 1: key pressed u8 key_press; // key press detect u8 key_rpt; // key long press and repeat SIGNAL (SIG_OVERFLOW0
in „Tasten entprellen“ · Mikrocontroller und Digitale Elektronik ·