-
Datei
KS0108_2.asm
-+---+---+---+---+ ;|BSY| 0 |1/0|RST| 0 | 0 | 0 | 0 | ;+---+---+---+---+---+---+---+---+ .equ DataPort = PortD .equ DataPin = PinD .equ DataDDR = DDRD .equ ComPort = PortC .equ ComPin = PinC .equ ComDDR = DDRC .equ LED = PortB ; Pinbelegung Command B .equ E = 0 .equ RS = 1 .equ RW = 2 .equ CS1 = 3 .equ
in „Änderung gLCD Ausgabe obwohl keine Änderung im Programm“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
CY7C68013.pdf
4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 6 6 6 6 6 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 Figure 4-2. CY7C68013 128-pin TQFP Pin Assignment * denotes programmable polarity Document #: 38-08012 Rev. *C Page 20
-
PDF
CY7C68013.pdf
4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 6 6 6 6 6 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 Figure 4-2. CY7C68013 128-pin TQFP Pin Assignment * denotes programmable polarity Document #: 38-08012 Rev. *C Page 20
in „Stereokamera CY7C68013A + 2 mal MT9D131“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd.c
uint8_t *data ) { // Startposition des Zeichens einstellen lcd_command( LCD_SET_CGADR | (startadresse<<3) ); //Startadressen: 0;1;2;3;4;5;6;7 // Bitmuster übertragen for ( uint8_t i=0; i<8; i++ ) { lcd_data( data[i] ); } lcd_command(LCD_SET_DDADR); //DRAM auf 0 setzen } // liest das BusyFlag - wenn busy --> var ist true bool lcd_getBusyFlag(void) { HAL_GPIO_WritePin(LCD_PORT, LCD_RW, GPIO_PIN_SET); HAL_GPIO_WritePin(LCD_PORT, LCD_RS, GPIO_PIN_RESET); //LCD_PORT->ODR |= LCD_RW; //LCD_PORT->ODR &= ~LCD_RS; if(HAL_GPIO_ReadPin(LCD_PORT,LCD_DB7) != 0) { return true
in „LCD W204B-NLW“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
/* +-------------------------------------------------------------------------------------------+ | ADS1211 / ADS1210 | +-------------------------------------------------------------------------------------------+ | LINDNER8712@GMAIL.COM | +-------------------------------------------------------------------------------------------+ */ #define F_CPU 16000000 //CPU Takt #include <util/delay.h> //Delays #include <avr/io.h> //Das *.include File // Konstanten lt. Datenblatt (Das sind wirklich so viele) #define DR0 0 #define DR1 1 #define DR2 2 #define DR3 3 #define DR4 4 #define DR5 5 #define DR6 6
in „Hardware SPI vs. BIT BANGING AD Wandler“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
eadog-new.c
dog timer is always disabled. SWDTEN has no effect #pragma code #define LCD_PORT LATB //LATB datapins are PB0 to PB4 (DB4 to DB7 on the DOG) #define PIN_ENABLE LATBbits.LATB0 #define PIN_RW LATBbits.LATB3 #define PIN_RS LATBbits.LATB2 // set instruction //LCD_clock() void LCD_clock
in „EA Dog 162 - 4 Bit- LCD initialisierung mit PIC18F2522 unter MPLAB“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
board-omap3beagle.c
; switch (beagle_rev) { case 7: printk(KERN_INFO "OMAP3 Beagle Rev: Ax/Bx\n"); omap3_beagle_version = OMAP3BEAGLE_BOARD_AXBX; break; case 6: printk(KERN_INFO "OMAP3 Beagle Rev: C1/C2/C3\n"); omap3_beagle_version = OMAP3BEAGLE_BOARD_C1_3; break; case 5: printk
in „CAN-Bus: MCP2515 und MCP2551 mit Linux Treiber“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LCD-Routine2_MC2.inc
--------------------------------------------------------------------+ .equ XTAL= 4000000 .equ LCD_PORT= PORTD // Legt den verwendeten Port fest .equ LCD_DDR= DDRD .equ LCD_E= 5 // Legt den Pin-Ausgang für den Enable fest .equ LCD_RS= 4 // Legt den Pin-Ausgang für den RS fest .def Temp= r16 .def Temp2
in „LCD macht nicht was es soll trotz Tutorial.“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
AVR-ASM-Tutorial_16_05_08_v2.pdf
, Pin PC2 0 0 1 1 Kanal 3, Pin PC3 0 1 0 0 Kanal 4, Pin PC4 0 1 0 1 Kanal 5, Pin PC5 0 1 1 0 Kanal 6, PinADC7 (*) 0 1 1 1 Kanal 7, PinADC8 (*) 1 1 1 0 1.23V, Vbg 1 1 1 1 0V, GND (*) nur in der Gehäusebauform
in „AVR-ASM-Tutorial: PDF 16.5.08“ · www.mikrocontroller.net ·
-
Datei
main.c
->PMC2B |= 0x7C; // select whether use a port as a port or alternate function. // P36:CCS_FUSEZ // P34:CCS_MON3 // P33:CCS_MON2 // Display type of frame // P32:CCS_MON1 // Display type of frame RIN_GPIO->PFC3B &= ~0x40; // specify which alternate function is used RIN_GPIO->PFC3B |= 0x1C; // specify which alternate function is used RIN_GPIO->PFCE3B |= 0x5C; // which alternate expansion function is used RIN_GPIO->PMC3B |= 0x5C; // select whether use a port as a port or alternate
in „R-IN32M3-CL (Cortex-M3): Wie funktioniert Senden/Empfangen auf dem Feldbus?“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
CY7C64613_1.pdf
OUTA3 OUTA2 OUTA1 OUTA0 7F97 OUTB Output Register B OUTB7 OUTB6 OUTB5 OUTB4 OUTB3 OUTB2 OUTB1 OUTB0 7F98 OUTC Output Register C OUTC7 OUTC6 OUTC5 OUTC4 OUTC3 OUTC2 OUTC1 OUTC0 7F99 PINSA Port Pins A PINA7 PINA6 PINA5 PINA4 PINA3 PINA2 PINA1 PINA0 7F9A PINSB Port Pins B PINB7 PINB6 PINB5 PINB4 PINB3 PINB2 PINB1 PINB0 7F9B PINSC Port Pins C PINC7 PINC6 PINC5 PINC4 PINC3 PINC2 PINC1 PINC0 7F9C OEA Output Enable A OEA7
in „Logikanalzyer mit FT232BL“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
FTDI_PinModes2.pdf
FT232BM and FT245BM Power Control and Pin States 3 TEST, RESET#, and RSTOUT# operate at 5 volt levels only. RSTOUT# is driven low during device reset. Interface Pins - Bit Bang Mode In addition to the usual pin states, the FT232BM and FT245BM
in „[FT232BM] an uC“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
t6963c.h
** // ** #define glcd_ce_PIN 2 // ** #define glcd_ce_PORT PORTC // ** // ** #define glcd_cd_PIN 3 // ** #define glcd_cd_PORT PORTC // ** // ** #define glcd_rst_PIN 4 // ** #define glcd_rst_PORT PORTC // ** // ** #define glcd_fs_PIN 5 // ** #define glcd_fs_PORT PORTC // ** // ** #define glcd_rv_PIN 6 // ** #define glcd_rv_PORT PORTC // ** // ** #define glcd_DATA_PORT PORTD // ** #define glcd_DATA_PIN PIND // ** #define glcd_DATADIR
-
Datei
t6963c.h
** // ** #define glcd_ce_PIN 2 // ** #define glcd_ce_PORT PORTC // ** // ** #define glcd_cd_PIN 3 // ** #define glcd_cd_PORT PORTC // ** // ** #define glcd_rst_PIN 4 // ** #define glcd_rst_PORT PORTC // ** // ** #define glcd_fs_PIN 5 // ** #define glcd_fs_PORT PORTC // ** // ** #define glcd_rv_PIN 6 // ** #define glcd_rv_PORT PORTC // ** // ** #define glcd_DATA_PORT PORTA // ** #define glcd_DATA_PIN PINA // ** #define glcd_DATADIR
-
PDF
landtiger_v2.0_-_manual__v1.1.pdf
from 5V supply: Pin 1 & Pin 2 as power input, Pin 33 & Pin 34 provide 3.3V output. 2 GND Ground GND 3 D0 Data Lines D0-D15 4 D1 5 D2 6 D3 7 D4 8 D5 9 D6 10 D7 11 D8 12 D9 13 D10 14 D11 15 D12 16 D13 17 D14
-
Datei
RFID-Reader-Modul.c
des HD44780 kompatiblen Display-Controllers / erfolgt im 4-Bit-Interfacemodus. Dabei sind folgende Port-Pins / des µC mit den Pins des Display-Moduls verfunden. / PB4->DB4; PB5->DB5; PB6->DB6; PB7->DB7; PB1->E; PB0->RS; / / / ATtiny2313 / Ports: LED/Relais: PB2 -> LED_RELAIS / Summer: PB3 -> SUMMER /
in „Attiny2313 eeprom Fragen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
display.c
Segment Low Voltage Write_Data(0xA0|d); // Default => 0xA0 // 0xA0 (0x00) => Enable External VSL // 0xA2 (0x02) => Enable Internal VSL (Kept VSL Pin N.C.) Write_Data(0xB5); Write_Data(0x55); } void Set_GPIO(unsigned char d) { Write_Command(0xB5); // General Purpose IO Write_Data(d); // Default => 0x0A (
in „Problem mit Inbetriebnahme OLED UG-2828GDEDF11“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
st6215c.pdf
Ta=-40±C Ta=95±C 0.55 1.8 0.5 1.6 Ta=-40±C Ta=95±C Ta=25±C Ta=125±C 0.45 1.4 Ta=25±C Ta=125±C 0.4 1.2 0.35 1 0.3 0.8 0.25 0.6 0.2 0.4 3 4 5 6 3 4 5 6 VDD [V] VDD [V] 84/105 1 ST6215C/ST6225C I/O PORT PIN CHARACTERISTICS (Cont’d) Figure 68. Typical V OH vs V DD Voh [V] at Iio=-2mA Voh [V] at Iio=-5mA 6 6 5 5 4 4 Ta=-40±C Ta=95±C 3 Ta=-40±C Ta=95±C 3 Ta=25±C Ta=125±C 2 Ta=25±C Ta=125±C 2 1 3 4 5 6 3 4 5 6 VDD [V] VDD [V] 85/105 1 ST6215C/ST6225C 11.9 CONTROL PIN CHARACTERISTICS
in „ST6 Familie von ST“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
include <util/delay.h> #include <avr/interrupt.h> #include "lcd.h" #include <math.h> #define GSCLK_PORT PORTC #define GSCLK_PIN 2 //SIN TLC = MOSI #define SIN_PORT PORTC #define SIN_PIN 5 //SCLK TLC = CLK #define SCLK_PORT PORTC #define SCLK_PIN 7 //Blank TLC = SS #define BLANK_PORT PORTC #define BLANK_PIN 4 #define DCPRG_PORT PORTC #define DCPRG_PIN 0 #define VPRG_PORT PORTC #define VPRG_PIN 3 #define XLAT_PORT PORTC #define XLAT_PIN 1 //MISO wird nicht gebraucht #define MISO_PORT PORTC #define MISO_PIN 6 #define TLC5940
in „TLC5940 mit XMEGA ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
usb-io.c
==3) { // all pins of a single port if (command[1]!='P') puts_P(PSTR("Error: Invalid port")); char port=command[2]; switch (port) { case 'D': command_i_port('D'); break; case 'C': command_i_port('C'); break
in „Kommunikationsprobleme USB-IO Chip45 Crumb168“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
/ static void MX_I2C3_Init(void) { /* USER CODE BEGIN I2C3_Init 0 */ /* USER CODE END I2C3_Init 0 */ /* USER CODE BEGIN I2C3_Init 1 */ /* USER CODE END I2C3_Init 1 */ hi2c3.Instance = I2C3; hi2c3.Init.ClockSpeed = 100000; hi2c3.Init.DutyCycle = I2C_DUTYCYCLE_2; hi2c3.Init.OwnAddress1 = 0; hi2c3.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT; hi2c3.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE; hi2c3.Init.OwnAddress2 = 0;
in „STM32CubeIDE: bekomme blinky läuft nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include <main.h> #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wmissing-declarations" #pragma GCC diagnostic ignored "-Wreturn-type" int main(int argc, char* argv[]) { initGPIO(); initUART(); initSPI(); initDMA(); initTimers(); while (1) { } return 0; } void TIM2_IRQHandler(void) { if (__HAL_TIM_GET_FLAG(&tim, TIM_FLAG_UPDATE) != RESET) { if (__HAL_TIM_GET_ITSTATUS(&tim, TIM_IT_UPDATE) != RESET) { __HAL_TIM_CLEAR_FLAG(&tim, TIM_FLAG_UPDATE); HAL_GPIO_WritePin(OE_Port, OE_Pin, ENABLE); HAL_GPIO_WritePin(LAT_Port, LAT_Pin, ENABLE
in „STM32F4 HAL SPI über DMA“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
SAM3X.pdf
144 and 217 pins PC2 D0 PWML0 144 and 217 pins PC3 D1 PWMH0 144 and 217 pins PC4 D2 PWML1 144 and 217 pins PC5 D3 PWMH1 144 and 217 pins PC6 D4 PWML2 144 and 217 pins PC7 D5 PWMH2 144 and 217 pins PC8 D6 PWML3 144 and
in „ARM SAM3x Zähleingang“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
SAM3X.pdf
144 and 217 pins PC2 D0 PWML0 144 and 217 pins PC3 D1 PWMH0 144 and 217 pins PC4 D2 PWML1 144 and 217 pins PC5 D3 PWMH1 144 and 217 pins PC6 D4 PWML2 144 and 217 pins PC7 D5 PWMH2 144 and 217 pins PC8 D6 PWML3 144 and
in „Arduino Due: Programmierung ohne 16U2“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include <avr/io.h> #include <util/delay.h> #include <util/twi.h> #include <stdint.h> # define F_CPU 8000000UL #define AN_SHIFT_PIN PB0 #define AN_SHIFT_PORT PORTB #define AN_DATA_PIN PD7 #define AN_DATA_PORT PORTD #define KA_SHIFT_PIN PB1 #define KA_SHIFT_PORT PORTB #define KA_DATA_PIN PB2 #define KA_DATA_PORT PORTB #define STORE_PIN PD6 #define STORE_PORT PORTD #define RTC_ADDR 0b11010000 #define RTC_CTRL 0x0E #define RTC_SECONDS 0x00 void annodeShift(uint8_t value){ for(uint8_t b = 0; b < 8; b++){ if(value & 1){ AN_DATA_PORT |= _BV(AN_DATA_PIN); }else{ AN_DATA_PORT &= ~_BV(AN_DATA_PIN); } AN_SHIFT_PORT
in „Atmega8 hängt in TWI Kommunikation fest (START schlägt fehl)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
init_timer_0(); sei(); while(1) { switch(Taster) { case 1: PORTB = 0x01; // Status-LED schalten... OUTPUT_PORT |= (1 << OUTPUT_PIN); //3 Sek. ein, 1 Sek. aus _delay_ms(3000); OUTPUT_PORT &= ~(1 << OUTPUT_PIN); _delay_ms(1000); break; case 2: PORTB = 0x02; OUTPUT_PORT |= (1 << OUTPUT_PIN); //1 Sek. ein, 5 Sek. aus _delay_ms(1000); OUTPUT_PORT &= ~(1 << OUTPUT_PIN); _delay_ms(5000); break; case 3: PORTB = 0x04; OUTPUT_PORT |= (1 << OUTPUT_PIN); //10 Sek. ein, 5 Sek. aus _delay_ms(10000); OUTPUT_PORT &= ~(1 << OUTPUT_PIN); _delay_ms(5000);
in „Weihnachts-Blinklicht - AVR“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
tastatur.c
**************************** // // Tastatur ist // PA0 -> Pin1 -> Spalte mit der 1 := PD2 // PA1 -> PIN2 -> Spalte mit der 2 := PD3 // PA2 -> Pin3 -> Spalte mit der 3 := PD4 // PA3 -> PIN4 -> Zeile mit der 1 := PD5 // PA4 -> Pin5 -> Zeile mit der 4 := PD6 // PA5
in „Frage zu Matrix3x4.c“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
TLC.c
setCollum(uint8_t i){ setTLC(led_data[i]); } void setCsel(uint8_t csel){ switch(csel){ case 0: sbi(CSEL0_PORT, CSEL0_PIN); break; case 1: sbi(CSEL1_PORT, CSEL1_PIN); break; case 2: sbi(CSEL2_PORT, CSEL2_PIN); break; case 3: sbi(CSEL3_PORT, CSEL3_PIN); break; case 4: sbi(CSEL4_PORT, CSEL4_PIN); break; } } void resetCsel(){ cbi(CSEL0_PORT, CSEL0_PIN); cbi(CSEL1_PORT, CSEL1_PIN); cbi(CSEL2_PORT, CSEL2_PIN); cbi(CSEL3_PORT, CSEL3_PIN); cbi(CSEL4_PORT, CSEL4_PIN); } void aktivateOneCsel(uint8_t csel){ resetCsel(); setCsel(csel); }
in „BC517 zu langsam für Matrix?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
this: | COL1 | COL2 | COL3 -----+------+------+------ ROW1 | 1 | 2 | 3 -----+------+------+------ ROW2 | 4 | 5 | 6 -----+------+------+------ ROW3 | 7 | 8 | 9 -----+------+------+------ ROW4 | * | 0 | # */ // define the
in „Telefon mit Wählscheibe: Anrufen geht nicht“ · Analoge Elektronik und Schaltungstechnik ·
-
Datei
LCD_Library_MF.c
zeichen == 'ö') zeichen =124; if (zeichen == 'ß') zeichen =190; if (zeichen == 'µ') zeichen =143; alle_pins_low(); set_bit (LCD_RS_PORT, LCD_RS_PIN); if (BitIsSet(zeichen, 7)) set_bit(LCD_DATA3_PORT, LCD_DATA3_PIN); if (BitIsSet(zeichen, 6)) set_bit(LCD_DATA2_PORT, LCD_DATA2_PIN); if (BitIsSet(zeichen, 5)
in „Suche Bibliothek / Library: LCD für ATXMEGA“ · Platinen ·
-
Datei
lcd_m50530_nacher.c
---------------------------------------------- Pin 01 Masse Masse Pin 02 Data0 nicht angeschlossen Pin 03 Data1 nicht angeschlossen Pin 04 Data2 nicht angeschlossen Pin 05 Data3 nicht angeschlossen Pin 06 Data4 AVR Port Bit 0 Pin 07 Data5 AVR Port Bit 1 Pin 08 Data6 AVR Port Bit 2 Pin 09 Data7 AVR Port Bit 3 Pin 10 EX (Execute) AVR Port Bit 4* Pin 11 R/W (Read/Write) AVR Port Bit 5* Pin 12 OC2 AVR Port Bit 7* Pin 13 OC1 AVR Port Bit 6* Pin 14 Kontrast-Regelung
in „LCD-Problem nach Änderung der Pinbelegung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ili9341.c
CONTROL ili9341_spi_write_command_data(lcd, issNONE, 0xF7, 1, (uint8_t[]){ 0x20 }); // POWER CONTROL,VRH[5:0] ili9341_spi_write_command_data(lcd, issNONE, 0xC0, 1, (uint8_t[]){ 0x23 }); // POWER CONTROL,SAP[2:0];BT[3:0] ili9341_spi_write_command_data(lcd, issNONE, 0xC1, 1, (uint8_t[]){ 0x10 }); // VCM CONTROL ili9341_spi_write_command_data(lcd, issNONE, 0xC5, 2, (uint8_t[]){ 0x3E, 0x28 }); // VCM CONTROL 2 ili9341_spi_write_command_data(lcd, issNONE, 0xC7, 1, (uint8_t[]){ 0x86 }); // MEMORY ACCESS CONTROL ili9341_spi_write_command_data(lcd, issNONE, 0x36
in „STM32U575 und ILI9341 SPI DMA Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
test2.c
#include <avr/io.h> #include <util/delay.h> int main(void) { DDRB = 0x00; // alle Pins von Port B als Eingang PORTB = 0xff; // alle Pull-ups aktivieren DDRA = 0xff; // alle Pins von Port A als Ausgang while(1) { if(PINB & (1 << PINB0)){ PORTA |= (1 << PINB0); } else { PORTA &= ~(1 << PINB0); } if(PINB & (1 << PINB1)){ PORTA |= (1 << PINB1); } else { PORTA &= ~(1 << PINB1); } if(PINB & (1 << PINB2)){ PORTA |= (1 << PINB2); } else { PORTA &= ~(1 << PINB2); } if(PINB & (1 << PINB3)){ PORTA |= (1 << PINB3); } else { PORTA &= ~(1 << PINB3); } if(PINB & (1 << PINB4)){ PORTA |= (1 << PINB4); } else { PORTA
in „Wechselschaltung mit ATMEGA16 und STK500“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
lpc11u3x.pdf
Cortex-M0 microcontroller 15 002aae991 OL T = 85 °C (mA) 25 °C −40 °C 10 5 0 0 0.2 0.4 0.6 VOL(V) Conditions: VDD = 3.3 V; standard port pins and PIO0_7. Fig 17. Typical LOW-level output current I OL versus LOW-level output voltage V OL 002aae992 3.6
in „LPC11U3 CRP zurücksetzen“ · Analoge Elektronik und Schaltungstechnik ·
-
Datei
Atmega8RasensprengerV3.asm
sbi PortC,4 ; Pullupwiderstand für Schalter an sbi PortC,5 ; Pullupwiderstand für Schalter an ;-------- Zeitablauf starten ---------------------------------- ldi ZL, low(ZeitAblauf*2) ; Zeiger auf Zeitablauf
in „Assembler Programm zu umständlich“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
rej09b0101_16c29hm_2_.pdf
1.4 Pin Assignments Figures 1.7 and 1.8 show the pin assignments (top view). M M A L S S U 0 1 2 3 4 5 6 7 D I 1 1 1 1 1 1 1 1 / 7 P P P P P P P P R C I I I NININ I I I S T W P 0 1 2 3 4 5 6 7 T A ID I C C
in „Zeitproblem bei Softwarepwm“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
93AA46C_SPI_1.c
Lesen erfordert einen extra Takt, der bei abgeschaltetem SPI gegeben werden muß. EPROM am Mega162 CS, Pin1 PC0, Pin21 <<<<<-----<<<<--- CLK, Pin2 PB7, Pin8 Din, Pin3 MOSI, PB5, Pin6 Dout, Pin4 MISO, PB6, Pin7 Pin5 = GND ORG immer an GND PE immer an + Pin8 +5V Table 1 - 4 8-bit modus: Befehl Startbit OPcode
in „Ansteuerung EEPROM 93AA96C funktioniert nicht richtig“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
OUTPUT_PIN); //3 Sek. ein, 1 Sek. aus _delay_ms(3000); OUTPUT_PORT &= ~(1 << OUTPUT_PIN); _delay_ms(1000); break; case 2: OUTPUT_PORT |= (1 << OUTPUT_PIN); //1 Sek. ein, 5 Sek. aus _delay_ms(1000); OUTPUT_PORT &= ~(1 << OUTPUT_PIN); _delay_ms(5000); break; case 3: OUTPUT_PORT |= (1 << OUTPUT_PIN); //10 Sek. ein, 5 Sek. aus _delay_ms(10000); OUTPUT_PORT &= ~(1 << OUTPUT_PIN); _delay_ms(5000); break; case 4: OUTPUT_PORT |= (1 <
in „Weihnachts-Blinklicht - AVR“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Matrix2.c
/************************************************************************/ /* */ /* Reading Matrix Keyboard 3*4 with debounce */ /* */ /* Author: P. Dannegger */ /* danni@specs.de */ /* */ /************************************************************************/ #include <io.h> #include <interrupt.h> #include <pgmspace.h> typedef unsigned char u8; typedef unsigned short u16; #define XTAL 8e6 // 8MHz #define KEY_PIN PINB // B3..0 = inputs #define KEY_PORT PORTB #define KEY_DDR DDRB #define KEY_ROW0 PORTB4 // B6..4 = outputs #define KEY_ROW1 PORTB5 #define KEY_ROW2 PORTB6 static inline u16 key_scan
in „2x5 Tastenmatrix an AT90USB1287“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
0x02 #define LCD_ON 0x0C #define LCD_OFF 0x08 #define POS_01 0x80 #define POS_02 0xC0 #define LCDPORT PORTD #define LCDDDR DDRD #define LCD_PIN_RS 0 #define LCD_PIN_E 3 #define LCD_PIN_D4 4 #define LCD_PIN_D5 5 #define LCD_PIN_D6
in „UART Aktivierung -> LCD "spinnt" (Atmega 8)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
GccApplication2.c
#include <stdint.h> #include <avr/io.h> #include <avr/interrupt.h> #ifndef F_CPU #define F_CPU 1000000 // processor clock frequency #warning kein F_CPU definiert #endif #define KEY_DDR DDRB #define KEY_PORT PORTB #define KEY_PIN PINB #define KEY0 0 #define KEY1 1 #define KEY2 2 #define ALL_KEYS (1<<KEY0 | 1<<KEY1 | 1<<KEY2) #define REPEAT_MASK (1<<KEY1 | 1<<KEY2) // repeat: key1, key2 #define REPEAT_START 50 // after 500ms #define REPEAT_NEXT 20 // every 200ms #define LED_DDR DDRA #define LED_PORT PORTA #define LED0 0 #define LED1 1 #define LED2 2 volatile uint8_t key_state; // debounced and inverted
in „LED Blinker mit Taster ansteuern.“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
2k_v4_8_switch.c
/* ******************************************************************* Autor: Beck Martin Taktfrequenz: 8 MHz Chip: Atmel atMega 8 Datum: August 2015 Bezeichnung: 2 Kanal 20 Funktionen Multiswitch - 2k20fms Hintergund: Grund für dieses Prgramm war die fehlende kostenguenstige Moeglichkeit mir nur 2 Schaltknueppeln (jeweils 3 Wege Schalter) die 20 Funktionen meines meines Schleppschiffs = Rettungsschiffs zu steuern. Funktionsbeschreibung: Wenn ein Schalter von 0 = Neutralstellung in eine Endlage = 100 oder -100 gebracht wird, wird dies als Schaltimpuls gewertet und dabei entweder als "lang" oder
in „2 Kanal RC-Schalter fuer Schiffsmodelle mit Mega8“ · Projekte & Code ·
-
Datei
2k_v4_8_switch.c
/* ******************************************************************* Autor: Beck Martin Taktfrequenz: 8 MHz Chip: Atmel atMega 8 Datum: August 2015 Bezeichnung: 2 Kanal 20 Funktionen Multiswitch - 2k20fms Hintergund: Grund für dieses Prgramm war die fehlende kostenguenstige Moeglichkeit mir nur 2 Schaltknueppeln (jeweils 3 Wege Schalter) die 20 Funktionen meines meines Schleppschiffs = Rettungsschiffs zu steuern. Funktionsbeschreibung: Wenn ein Schalter von 0 = Neutralstellung in eine Endlage = 100 oder -100 gebracht wird, wird dies als Schaltimpuls gewertet und dabei entweder als "lang" oder
in „2 Kanal 8 fach Switch RC für Modell Schiff und Auto“ · Projekte & Code ·
-
Datei
2k_v4_8_switch.c
/* ******************************************************************* Autor: Beck Martin Taktfrequenz: 8 MHz Chip: Atmel atMega 8 Datum: August 2015 Bezeichnung: 2 Kanal 20 Funktionen Multiswitch - 2k20fms Hintergund: Grund für dieses Prgramm war die fehlende kostenguenstige Moeglichkeit mir nur 2 Schaltknueppeln (jeweils 3 Wege Schalter) die 20 Funktionen meines meines Schleppschiffs = Rettungsschiffs zu steuern. Funktionsbeschreibung: Wenn ein Schalter von 0 = Neutralstellung in eine Endlage = 100 oder -100 gebracht wird, wird dies als Schaltimpuls gewertet und dabei entweder als "lang" oder
in „2 Kanal 8 fach Switch RC für Modell Schiff und Auto“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
pinoperations.c
(port) { case 0: PORTA = PORTA | 1<<pin; break; case 1: PORTB = PORTB | 1<<pin; break; case 2: PORTC = PORTC | 1<<pin; break; case 3: PORTD = PORTD | 1<<pin; break; } } inline void clearOutput(u8 port, u8
in „genauer Code im Anhang“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ADCversuch1.c
|= 1<<PORTD1; break; // PORT_D1 = 1; break; case 2: PORTD |= 1<<PORTD2; break; // PORT_D2 = 1; break; case 3: PORTD |= 1<<PORTD3; break; // PORT_D3 = 1; break; case 4: PORTD |= 1<<PORTD5; break; // PORT_D5 = 1; break; case 5: PORTD
in „alternative für for-schleife zeitmangel“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ESJOG_3b_V_1.0.c
/************************************** Port B ***********************************************/ DDRB = 0x0f; /*(0000|1111) -> an PIN 1 & 2 liegen die Kanalausgänge 1 & 2 ; an Pin 3 & 4 sind die Richtungsausgänge R1 & R2 an Pin 7 & 8 Programmieranschluss
in „WinAVR compiliert nicht mehr richtig“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#define LCDPORT PORTD #define LCDDDR DDRD #define LCD_PIN_RS 2 #define LCD_PIN_E 3 #define LCD_PIN_D4 4 #define LCD_PIN_D5 5 #define LCD_PIN_D6 6 #define LCD_PIN_D7 7 #define COMMAND 0 #define DATA 1 // Eigene Definitionen #define XTAL 8000000L // Takt für
in „Quarzoszillator & ATMEGA32 (Fuses?)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
#include <avr/io.h> #include <util/delay.h> #include <stdlib.h> #include "uart.h" #include "adc.h" #define LED_Preheat PD2 //Pin der Led-Status-Anzeige für die Vorheizphase #define LED_FluxActivation PD3 //Pin der Led-Status-Anzeige für die Flussmittelaktivierungsphase #define LED_Reflow PD4 //Pin der Led-Status-Anzeige für die Reflowphase #define LED_Port PORTD //PORT Register für die Led-Status-Anzeigen #define LED_DDR DDRD //Data Direction Register für die LEDs #define SSR_Pin PD5 //Pin für das Solid State Relais #define SSR_Port PORTD //PORT Register für das Solid State Relais #define SSR_DDR
in „Reflow Ofen Steuerung“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
efm8ub2-datasheet-1666225.pdf
20 D- P1.6 VDD 6 19 P1.7 VREGIN 7 18 P2.0 VBUS 8 17 P2.1 9 1 1 1 1 1 1 1 K D 2 . . 5 4.3 2. . . 2 C P P P P P P C / / . b 3 S P R Figure 6.2. EFM8UB2x-QFP32 Pinout Table 6.2. Pin Definitions for EFM8UB2x-QFP32 Pin Pin Name Description Crossbar
in „[V] 10St. SILABS 8051 USB-EFM8UB20F64G-B - QFP32 (10€)“ · Markt ·