-
Datei
laptimer.c
mit Null überschreiben #define CURSOR_HOME 0x02 // Coursor an Anfangsposition setzen #define LCD_PORT PORTD // Port an dem das LCD angeschlossen ist #define LCD_DDR DDRD // Datenpins an denen das LCD angeschlossen ist #define LCD_RS PD4 // Ausgang an dem der RS-Pin des LCD hängt #define LCD_EN PD5 /
in „Laptimer Projekt mit Magnetschleife (Atmega8)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main__C.de.c
#include "main.h" int main(void) { SystemInit(); // Quarz Einstellungen aktivieren //Initialisierung der Ports Initclock_GPIO(); InitGPIOC(); //Initialisierung des ADC's Init_ADC1(); ... } //-------------------------------------------------------------- // Initialisierung der GPIO PORTS //-------------------------------------------------------------- void Initclock_GPIO (void) { RCC_HSEConfig(RCC_HSE_ON); while(!RCC_WaitForHSEStartUp()); } // //Initialisierung von GPIOC // void InitGPIOC(void) { //Input definieren für fünf analoge Eingänge PC1(IN11), PC2(IN12), PC3(IN13), PC4(IN14), PC5(IN15)
in „STMF4 ADC 5 Kanäle mit Regular Channel Group auslesen“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
PS9530_KM_G_071030.pdf
8 IC307 R340 16 MHz Q Vc 100k 6 - Vss 21 5 6 7 8 5 SDA 1 SMD 7 XTout 3 3 3 3 2 A + -2,5V 22 Reset XTin 20 C C C C C304 C305 6 SCC 3 5 + C328 7 Mikrocontroller GND TLSMD2 22p 22p 4 470n SMD SMD FM24C04 SMD EEPROM 003208002A 4x100n AGND SMD Bild
in „ELV Netzteil "PS 9530" 0-30V/0-10A - Erfahrungen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
sensor_three_phase_BLDC.c
/* This file has been prepared for Doxygen automatic documentation generation.*/ /*! \file ********************************************************************* * * \brief A brief description of the file is written here. * * A more detailed description of the file should written here. * * \par Application note: * AVR443: Sensorbased control of three-phase BLDC motor * \par * For comprehensive code documentation, supported compilers, compiler settings * and supported devices see readme.html\n * Target device: ATmega48/88/168 * * \author Atmel Corporation: http://www.atmel.com \n * Support email: avr@
in „AVR 443 Application: __regvar __no_init unsigned char *pDrvPattern @14;“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
RFM02.c
DDRB #define PORT_SDO PORTB #define PIN_SDO PINB #define DDR_SDO DDRB #define PB7 7 #define PB6 6// | #define RFXX_SCK 5// | #define RFXX_SDO 4// |RF_PORT #define RFXX_SDI 3// | #define RFXX_SEL 2// | #define PB1 1//
in „Funkmodule von Pollin“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
//3 #define LED_GRN_ON PORTB |= (1<<2) //2 #define LED_GRN_OFF PORTB &=~ (1<<2) //2 #define LED_GRN_TOG PORTB ^= (1<<2) //2 #define LED_BLU_ON PORTB |= (1<<1) //1 #define LED_BLU_OFF PORTB &=~ (1<<1) //1
in „Servo mit Atmega8 - Fehler im Code“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
rf02.c
#define IRQ_DDR DDRD #define IRQ_PIN PIND #define FSK_PORT PORTD #define FSK_DDR DDRD #define FSK_PIN PIND #define SDI 3 // SDI, -> RF02 #define SCK 5 // SCK, -> RF02 #define CS 2 // nSEL, -> RF02 #define FSK 7 // FSK, -> RF02 #define
in „Problem mit RFM02“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
rf02.c
#define IRQ_DDR DDRD #define IRQ_PIN PIND #define FSK_PORT PORTD #define FSK_DDR DDRD #define FSK_PIN PIND #define SDI 3 // SDI, -> RF02 #define SCK 5 // SCK, -> RF02 #define CS 2 // nSEL, -> RF02 #define FSK 7 // FSK, -> RF02 #define
in „Endlosschleife?“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
ATMEGA8_DATENBLATT.pdf
. OUTPUT VOLTAGE Vcc = 5V 4 3.5 -40°C 3 25°C ) 2.5 A ( 85°C n 2 r C 1.5 1 0.5 0 2 2.5 3 3.5 4 4.5 V (V) OH Figure 152. Reset Pin as I/O – Pin Source Current vs. Output Voltage (V CC = 2.7V) RESET PIN AS I/O - SOURCE CURRENT
in „I2C/TWI TWBR > 10 warum?“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
MC9S12DG128.pdf
69 2.3.35 PM5 / BF_PROK / TXCAN0 / TXCAN4 / SCK0 — Port M I/O Pin 5 . . . . . . . . . . 69 2.3.36 PM4 / BF_PSYN / RXCAN0 / RXCAN4/ MOSI0 — Port M I/O Pin 4. . . . . . . . . . 70 2.3.37 PM3 / TX_BF / TXCAN1
in „HCS12 CPU Disassembler“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd.h
_PORT LCD_PORT /**< port for 4bit data bit 1 */ #define LCD_DATA2_PORT LCD_PORT /**< port for 4bit data bit 2 */ #define LCD_DATA3_PORT LCD_PORT /**< port for 4bit data bit 3 */ #define LCD_DATA0_PIN 7 /**< pin for 4bit data bit 0 */ #define LCD_DATA1_PIN 6 /**< pin for 4bit data bit 1 */ #define LCD_DATA2_PIN 5 /**< pin for 4bit data bit 2 */ #define LCD_DATA3_PIN 4 /**< pin for 4bit data bit 3 */ #define
in „HD44780 atmega168“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
stk500boot.c
PROG_DDR DDRD #define PROG_IN PIND #define PROG_PIN PIND2 /* * Active-high LED on pin "PROGLED_PIN" on port "PROGLED_PORT" * indicates that bootloader is active */ #define PROGLED_PORT PORTC #define PROGLED_DDR DDRC #define PROGLED_PIN PINC0 /* * define
in „[AVR] Problem mit ATmega2561 und Fleury Bootloader“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
timer.c
#include <avr/io.h> #define SET_OFF 1 #define SET_ON 0 #define SEGMENT_REGISTER DDRC #define SEGMENT_PORT PORTC #define SEGMENT_ONE (1<<2) //PC2 #define SEGMENT_TWO (1<<1) //PC1 #define SEGMENT_THREE (1<<0) //PC0 #define SHIFT_REGISTER DDRB #define SHIFT_PORT PORTB #define DATA (1<<3) //MOSI (SI) #define LATCH (1<<2) //SS (RCK) #define CLOCK (1<<5) //SCK (SCK) uint8_t array[10] = {0b01000000 ,0b11111001 ,0b00100100 ,0b00110000 ,0b00011001 ,0b00010010 ,0b00000010 ,0b01111000 ,0b00000000,0b00010000}; void setSchiebeRegister(uint8_t number); void multiPlex(uint16_t time); void setup() { //Setup IO SEGMENT_REGISTER
in „Multiplexen ohne delay?“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
CS4272_F1.pdf
for External Muting ! Selectable 50/15 µs De-emphasis ! On-chip Oscillator ! Stand-Alone or Control Port Functionality 2.5 V to 5 V 3.3 V to 5 V 5 V r Hard2are or t Internal Voltage Internal External Left and I C/SPI s Reference Oscillator Mute Control Right Mute Control Data a Register / Hardware Controls
in „darf der Chip so warm werden?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Hameg.c
HM_HBRESPORT PORTD #define HM_DATAVAL PC7 #define HM_CLRAC PC6 #define HM_CLKAC PC5 #define HM_SRQ PC4 #define HM_HBWR PC3 #define HM_TE PC2 #define HM_HBRESET PD7 #define CONTROLPORT PORTB #define LED_SCOPE_DETECTED PB1 #define LED_ACTIVE PB2 #define TAST_PORT PB0 #define HM305_ID
in „For-Schleife ärgert mich ...“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd.h
_PORT LCD_PORT /**< port for 4bit data bit 1 */ #define LCD_DATA2_PORT LCD_PORT /**< port for 4bit data bit 2 */ #define LCD_DATA3_PORT LCD_PORT /**< port for 4bit data bit 3 */ #define LCD_DATA0_PIN 3 /**< pin for 4bit data bit 0 */ #define LCD_DATA1_PIN 2 /**< pin for 4bit data bit 1 */ #define LCD_DATA2_PIN 1 /**< pin for 4bit data bit 2 */ #define LCD_DATA3_PIN 0 /**< pin for 4bit data bit 3 */ #define
in „Komisches Verhalten mit lcd_puts“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
rf01.c
#include "global.h" #include "rf01.h" #define F_CPU 16000000UL #include <util/delay.h> #define RF_PORT PORTB #define RF_DDR DDRB #define RF_PIN PINB #define SDI 5 // PB5 SDI, -> RF01 #define SCK 3 // PB3 SCK, -> RF01 #define CS 2 // PB2 nSEL, -> RF01 #define SDO 0 // PB0 SDO, <- RF01 // nFFS: 1-10k Pullup
in „RFM 01 empfängt Daten sehr verzöger“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
MYSENSORS_GatewayClient_WORK_V3.ino
255,255,255,0 // MQTT broker ip address. #define MY_CONTROLLER_IP_ADDRESS 192,168,111,97 // The MQTT broker port to to open #define MY_PORT 1883 #define ANZAHL_KOMPONENTEM 10 //SUMME ALLER Konmponenten, die angschlossen sin (z.B. 8xRelais+2xTemp=10 #define RELAY_1 22 // Arduino Digital I/O pin number for first
in „String Array verarbeiten / Arduino“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
timer.c
#include <avr/io.h> #define SET_OFF 1 #define SET_ON 0 #define SEGMENT_REGISTER DDRC #define SEGMENT_PORT PORTC #define SEGMENT_ONE (1<<2) //PC2 #define SEGMENT_TWO (1<<1) //PC1 #define SEGMENT_THREE (1<<0) //PC0 #define SHIFT_REGISTER DDRB #define SHIFT_PORT PORTB #define DATA (1<<3) //MOSI (SI) #define LATCH (1<<2) //SS (RCK) #define CLOCK (1<<5) //SCK (SCK) uint8_t SEGMENTE[10] = {0b01000000 ,0b11111001 ,0b00100100 ,0b00110000 ,0b00011001 ,0b00010010 ,0b00000010 ,0b01111000 ,0b00000000,0b00010000}; uint8_t SEGMENT_PINS[3] = {SEGMENT_ONE,SEGMENT_TWO,SEGMENT_THREE}; uint8_t einer,zehner,hunderter;
in „Multiplexen ohne delay?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd.h
_PORT LCD_PORT /**< port for 4bit data bit 1 */ #define LCD_DATA2_PORT LCD_PORT /**< port for 4bit data bit 2 */ #define LCD_DATA3_PORT LCD_PORT /**< port for 4bit data bit 3 */ #define LCD_DATA0_PIN 0 /**< pin for 4bit data bit 0 */ #define LCD_DATA1_PIN 1 /**< pin for 4bit data bit 1 */ #define LCD_DATA2_PIN 2 /**< pin for 4bit data bit 2 */ #define LCD_DATA3_PIN 3 /**< pin for 4bit data bit 3 */ #define
in „LCD Initialisierung mit Fleury“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include "asf.h" #include "conf_board.h" #include "conf_clock.h" #define LCD_RS 0b00000000000000000000100000000000 #define LCD_EN 0b00000000000000000001000000000000 // PortA 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 #define MASKA 0b00000000000000011111100000000000 // Maskierung aller Ausgänge #define MASKDB 0b00000000000000011110000000000000 // Maskierung der Ausgänge für DB5 - DB7 //LCD commands #define LCD_SET_FUNCTION 0x20 #define LCD_CLR 0x01 // clear LCD #define LCD_4BIT 0x00 // 4-bit mode #define LCD_INC 0x06 //Increment, display freeze #define LCD_MOV
in „LCD mit HD44780 an Atmel SAM4S“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
78K1PAGE.PDF
. by the STOP instruction. A/D conversion result P20 2 1 1 • P122/X2 pin can be used for port functions.22/X2 pin can be used for port functions. 0 0 P P P121 (FF19h) (FF18h) PM2 PM 121 fRH Port mode register 2 20 A Address: FF81h 7 6 5 4 3 2 1 0 0: Output
in „Verständnisfrage zu Speicherbelgung in Mikrocontrollern“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
78K1P.PDF
. by the STOP instruction. A/D conversion result P20 2 1 1 • P122/X2 pin can be used for port functions.22/X2 pin can be used for port functions. 0 0 P P P121 (FF19h) (FF18h) PM2 PM 121 fRH Port mode register 2 20 A Address: FF81h 7 6 5 4 3 2 1 0 0: Output
in „Wie heftet ihr z.B: das Reference Manual von Controllern ab?“ · Offtopic ·
-
Datei
nrf24l01.c
/* ******************************************** Modul : NRF24L01 Bedienung des RF Funkmodules Autor : Christian Julius ******************************************** SPI1: MOSI = PA7 MISO = PA6 SCLK = PA5 CE = PD7 CSN = PD4 IRQ = --- 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 „GCC Optimierung killt Funktion“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
10.0,5,1,zeile); lcd_print_str(zeile); lcd_print_str("C"); lcd_print_str(" A "); dtostrf(ow_array[3] / 10.0,5,1,zeile1); lcd_print_str(zeile1); lcd_print_str("C"); lcd_print(2,0,"Inhalt "); dtostrf(var_array
in „Bausatz Add-on für AVR-NET-IO“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
ttester_ger109k.pdf
1n PC5(ADC5/SCL) 28 R12 2.5V 4 4 4 22 AGND 0 0 0 3k3 R 6 R 6 R 6 14 D1 C11 9 PB0(ICP)15 PB6(XTAL1/TOSC1) PB1(OC1A) VCC R10 22p PB2(OC1B) 16 C12 8MHz PB3(MOSI/OC2) 17 10k 33k 10 PB7(XTAL2/TOSC2) 18 T3 22p PB4(MISO) 19 BC557C PB5(SCK) 1 7 k R15 2 GND Ubat R 3 PD0(RXD) 2 10k +5V T2 27k VCC PD1(TXD) 3 3 VEE 7 4 4 RS LED1 Test BC547 VCC PD2(INT0) 5 5 IC2 VCC C4 PD3(INT1) 6 6 R/W 100n PD4(XCK/T0) 7 E 1 IN OUT T1 R8 8 GND PD5(
in „Sammelbestellung Transistortester III - schnelle Runde“ · Markt ·
-
Datei
gsminc.h
byte PortC = 0x82 #byte PortD = 0x83 #byte PortE = 0x84 #byte PortF = 0x85 #byte PortG = 0x86 // Pins Definieren #bit T1= PortA.0 #bit T2= PortA.1 #bit T3= PortA.2 #bit T4= PortA.3 #bit T5= PortA.4 #bit T6= PortA.5 #bit T7= PortA.6 #bit T8= PortA.7 #bit T9= PortB.0 #bit Up= PortB.1 #bit Down= PortB.2 #bit Enter= PortB.3 #bit SCL= PortC.3 #bit SDA= PortC.4 #bit Tx= PortC.6 #bit Rx= PortC.7 //Display-Pins #bit RW
in „PIC 18F6622 interner Clock“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
TC8P53_____.pdf
3FFH 图 5-2 程序计数器结构图 地址 R PAGE 寄存器 IOC PAGE 寄存器 00 R0 (简洁寻址寄存器) 保留 01 R1 (定时/计数器) CONT (控制寄存器) 02 R2 (程序计数器) 保留 03 R3 (状态寄存器) 保留 04 R4 (RAM 选择寄存器) 保留 05 R5 (Port5)保留 IOC5 (I/O 端口控制寄存器) 06 R6 (Port6) IOC6
in „Chinesische PIC-Clones“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
ttester.pdf
1n PC5(ADC5/SCL) 28 R12 2.5V 4 4 4 22 AGND 0 0 0 3k3 R 6 R 6 R 6 14 D1 C11 9 PB0(ICP)15 PB6(XTAL1/TOSC1) PB1(OC1A) VCC R10 22p PB2(OC1B) 16 C12 8MHz PB3(MOSI/OC2) 17 10k 33k 10 PB7(XTAL2/TOSC2) 18 T3 22p PB4(MISO) 19 BC557C PB5(SCK) 1 7 k R15 2 GND Ubat R 3 PD0(RXD) 2 10k +5V T2 27k VCC PD1(TXD) 3 3 VEE 7 4 4 RS LED1 Test BC547 VCC PD2(INT0) 5 5 IC2 VCC C4 PD3(INT1) 6 6 R/W 100n PD4(XCK/T0) 7 E 1 IN OUT T1 R8 8 GND PD5(
in „Sammelbestellung Transistortester III - schnelle Runde“ · Markt ·
-
PDF
AVR-Tutorial.pdf
0 1 2 3 4 5 6 7 8 9 : ; < = > ? 4x @ A B C D E F G H I J K L M N O 5x P Q R S T U V W X Y Z [ \ ] ^ _ 6x ` a b c d e f g h i j k l m n o 7x p q r s t u v w x y z { | } ~ DEL Die ersten beiden Zeilen enthalten
in „AVR-Tutorial als PDF“ · Offtopic ·
-
Datei
lcd.h
_PORT LCD_PORT /**< port for 4bit data bit 1 */ #define LCD_DATA2_PORT LCD_PORT /**< port for 4bit data bit 2 */ #define LCD_DATA3_PORT LCD_PORT /**< port for 4bit data bit 3 */ #define LCD_DATA0_PIN 4 /**< pin for 4bit data bit 0 */ #define LCD_DATA1_PIN 5 /**< pin for 4bit data bit 1 */ #define LCD_DATA2_PIN 6 /**< pin for 4bit data bit 2 */ #define LCD_DATA3_PIN 7 /**< pin for 4bit data bit 3 */ #define
in „LCD von Peter Fleury“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Forum.PDF
GND B CH3- B PI1ac1 PI1ac1 CH4+ CH4- IPac0 PU1ac0 VDD VSS +3.3 MCP3428-E/ST GND P3 P Pd P J1_adc J2_adc 691231510004 691231510004 C P Pd 12 P P0 2 C +5 +5 P Pd CO2_ c C1_ cc 2 100nF1206 CAP10uF6.3V1206(3216) Pd
in „Raspberry Pi Compute Module 3 (Carrier Board)“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Mega32.pdf
1 0 DDC7 DDC6 DDC5 DDC4 DDC3 DDC2 DDC1 DDC0 DDRC Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Initial Value 0 0 0 0 0 0 0 0 Port C Input Pins Address – PINC Bit 7 6 5 4 3 2 1 0 PINC7 PINC6 PINC5 PINC4 PINC3 PINC2 PINC1 PINC0
in „AVR Timer/Counter Zeit berechnen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Rc5.asm
-------------------------------------------- .equ xtal = 10000000 ;crystal frequency: 10MHz .equ rc5_port = PIND .equ rc5_pin = PD4 ;low active ;------------------------------------------------------------------------- .def SaveSreg = r1 .def rc5_data_h = r2 ;rc5 code high byte .def Flags = r16 .equ
-
PDF
2C-SDK-Espressif_IoT_SDK_Programming_Guide_v0.9.5_revised.pdf
rx_intr_handler(void *para) Parameter: Void*para——the pointer pointing to RcvMsgBuff structure Return: NULL 5.3.i2c master APIs 5.3.1. i2c_master_gpio_init Function: set GPIO in i2c master mode Function definition: void i2c_master_gpio_init (void) Input parameters: null Return: null 5.3.2. i2c_master_init Function
in „ESP8266 hängt bei gleichzeitigem senden/empfangen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds18x20lib.c
#include "ds18x20lib.h" //---------------------------------------- // Reset DS18S20 //---------------------------------------- uint8_t ds1820_reset(uint8_t used_pin) { uint8_t err=100; DS1820_PORT &= ~(1<<used_pin); //Pull low DS1820_DDR |= 1<<used_pin; // define as ouput _delay_us(480); ; // 480 us DS1820_DDR &= ~(1<<used_pin); // define as input DS1820_PORT |= 1<<used_pin; //Pullup on _delay_us(70); // 66 us err = (DS1820_PIN & (1<<used_pin)) >> used_pin; // no presence detect --> err=1 otherwise err=0 _delay_us(410); // 240 us if( (DS1820_PIN & (1<<used_pin)) == 0 ){ // short circuit --> err
in „DS18B20 Temperaturauswertung“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
XPort_UG.pdf
129.1.50.1 and port 23. Figure 7-2. Manual Connection Address Example Command String Result if remote IP is 129.1.2.3 and remote port is 1234 C121.2.4.5/1 Complete override; connection is started with host 121.2.4.5, port 1 C5 Connects to 129.1.2.5, port 1234 C28.10/12 Connects to 129.1.28.10, port 12 C0.0.0.0/0 Enters Monitor Mode Autostart (Automatic If you enable Autostart, the unit automatically connects to the Connection
in „Xport zum steuern einer Lauftextanzeige“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
CS PORTA_PIN6CTRL = PORT_PULLUPEN_bm; EVSYS.ASYNCCH0 = EVSYS_ASYNCCH0_PORTA_PIN6_gc; // PA6 !CS (producer) EVSYS.ASYNCUSER5 = EVSYS_ASYNCUSER5_ASYNCCH0_gc; // LUT1 INSEL2 (consumer) // LUT1 CS work // CS - LUT0
in „WS2812B mit Attiny817 Hardware ansteuern“ · Projekte & Code ·
-
Datei
C_TAST.C
/************************************************************************/ /* */ /* Debouncing 8 Keys */ /* Sampling 4 Times */ /* With Repeat Function */ /* */ /* Author: Peter Dannegger */ /* danni@specs.de */ /* */ /************************************************************************/ // Target: ATMega48 #include <io.h> #include <interrupt.h> typedef unsigned char u8; typedef signed short s16; #define XTAL 8000000L // 8MHz #define KEY_PIN PINB #define KEY0 0 #define KEY1 1 #define KEY2 2 #define KEY3 3 #define LED_DDR DDRC #define LED_PORT PORTC #define LED0 0 #define LED1 1 #define LED2
-
Datei
lcd.c
// Ansteuerung eines HD44780 kompatiblen LCD im 4-Bit-Interfacemodus // http://www.mikrocontroller.net/articles/HD44780 // http://www.mikrocontroller.net/articles/AVR-GCC-Tutorial/LCD-Ansteuerung // // Die Pinbelegung ist über defines in lcd.h einstellbar #include <avr/io.h> #include "OLED_2_16.h" #include "lcd.h" #include <util/delay.h> ///////////////////////////////////////////////////////////////////////////////// // Erzeugt einen Enable-Puls static void lcd_enable( void ) { LCD_PORT |= (1<<LCD_EN); // Enable auf 1 setzen _delay_us( LCD_ENABLE_US ); // kurze Pause LCD_PORT &= ~(1<<LCD_EN);
in „OLED Display EA W162 init klappt nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd.c
times: LCD_PORT &= ~( (0xF << LCD_DATA) | (1 << LCD_RS) ); LCD_PORT |= (3 << LCD_DATA); // 0b0011 lcd_apply(); _delay_ms(5); lcd_apply(); _delay_ms(1); lcd_apply(); _delay_ms(1); // Enter 4 bit mode: LCD_PORT &= ~((0xF << LCD_DATA) | (1 << LCD_RS)); LCD_PORT |= (2 << LCD_DATA); lcd_apply(); _delay_ms(10); // Set 5x7 font and 2 rows: lcd_sendCommand(0x28); // Enable cursor motion and set direction to right. lcd_sendCommand(0x14); // Increment curser position
in „HD44780 Treiber laufen nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LCD_moni.c
// Ansteuerung des LCD-Displays #include <msp430x14x.h> #define STOP_WATCHDOG WDTCTL = WDTPW + WDTHOLD; // Watchdog anhalten int main(void); void init(void); void LCD_clear(void); void LCD_init(void); void wait(long i); long i=0; int main(void) { init(); wait(30000); LCD_init(); wait(1000); for(;;); } void init(){ /* Display-Ansteuerung Port 5.0 : RS-Bit für Umschaltung Befehl/Daten Port 5.1 : R/W-Bit High = Read, Low = Write Port 5.2 : E Enable mit fallender Flanke benötigt Zeit Port 4.0 .. 4.7 DB0-DB7 Display Data */ STOP_WATCHDOG; // watchdog aus // Basic Clock Einstellungen BCSCTL1 &= ~XT2OFF
in „Hilfe mein Display streickt !!“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
rf02.c
#define IRQ_DDR DDRD #define IRQ_PIN PIND #define FSK_PORT PORTB #define FSK_DDR DDRB #define FSK_PIN PINB #define SDI 5 // SDI, -> RF02 #define SCK 7 // SCK, -> RF02 #define CS 4 // nSEL, -> RF02 #define FSK 3 // FSK, -> RF02 #define
in „Zerstört Pollin-Board den RFM02?“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
XPort-Pro_IG.pdf
Integration Guide 8 2: Description and Specifications PCB Interface The xPort Pro has a serial port compatible with data rates up to 921600 bps. The serial signals (pins 4–8) are 3.3V CMOS logic level. The serial interface
in „[V] 2St. gebrauchte Lantronix XPORT PRO Module -LAN-Seriell, KLEINEN DEFKTEN , zu Fädeln (beide 8€)“ · Markt ·
-
PDF
XPort-Pro_IG.pdf
Integration Guide 8 2: Description and Specifications PCB Interface The xPort Pro has a serial port compatible with data rates up to 921600 bps. The serial signals (pins 4–8) are 3.3V CMOS logic level. The serial interface
in „[V] 3St. gebrauchte Lantronix XPORT PRO Module -LAN-Seriell MIT KLEINEN DEFKTEN (alle für 15€)“ · Markt ·
-
PDF
XPort-Pro_IG.pdf
Integration Guide 8 2: Description and Specifications PCB Interface The xPort Pro has a serial port compatible with data rates up to 921600 bps. The serial signals (pins 4–8) are 3.3V CMOS logic level. The serial interface
in „[V] 1x gebrauchtes Lantronix XPORT PRO Module -LAN-Seriell Module (13€)“ · Markt ·
-
Datei
tc_example3.c
/ 8) / 1000, so that an interrupt will be triggered every 1 ms. Upon interrupt, * the GPIO pin 3 is toggled thus producing a square signal of frequency 500 Hz. * Check the GPIO pin 3 on an oscilloscope and see the square signal at frequency 500 Hz. * \note On both AT32UC3A0512 and AT32UC3B0256
in „AVR32 UC3B164 Counter/Interrupt“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
ATmega32.pdf
is enabled, Port C the pull-up resistors on pins PC5(TDI), PC3(TMS) and PC2(TCK) will be activated even if a reset occurs. Table 28. Port C Pins Alternate Functions Port Pin Alternate Function PC7 TOSC2 (Timer Oscillator
in „STK500 als ISP“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
lcd_putc(rcv_data); USART_Transmit(rcv_data); switch(rcv_data){ case '1' : command = 1; break; case '2' : command = 2; break; case 'r' : command = 3; break; case 'c' : command = 4; break; case 'i' : command = 5; break; case 'd' : command = 6; break; case 'p' : command = 7; break; default : break; } }
in „"komische Zeichen" bei Verwendung von char[]“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
HCS12COREUG.pdf
R 2 R 2 R 2 R 2 R 2 R 2 R 2 R 2 R 2 R 2 R r b 1 C 2 1 1 1 1 3 1 1 2 / 4 4 3 4 2 — 2 — 2 4 2 4 2 4 4 4 4 4 5 T 5 5 R 5 f a C 1 I L U C / R 2 R R e A 2 A 2 A 2 E L E L i e N E M M R 4 J J J I 8 a L E E S C
in „HCS12 CPU Disassembler“ · Mikrocontroller und Digitale Elektronik ·