-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „Zeitbasierte Aktionen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „Total angekotzt von AVR-Studio, ist mir noch zu helfen?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „HD44780-LCD an ATMega16 reagiert nicht auf Programm“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „HD44780-LCD an ATMega16 reagiert nicht auf Programm“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „HD44780-LCD an ATMega16 reagiert nicht auf Programm“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „sprintf gibt nur "?" auf LCD aus“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.c
); 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 „SHT75 mit Atmega32 am stk500“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „LCD-Display & Schwarze Balken“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.h" #include <util/delay.h> #include "inttypes.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 „LCD Ansteuerung error“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.c
); 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 „LCD-Display mit Attiny24 betreiben“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „LCD-Display an ATMega8 funktioniert nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.c
); 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 „DS18B20: Problem mit Temperaturauslesen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „AVR GCC LCD Turorial mit OLED EA W082-XLG geht nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routine.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routine.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); // Enable auf
in „Atmega 16MHz delay-Funktion“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „displaytech 204A gibt nur <- und 0 aus.“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.c
// // Die Pinbelegung ist über defines in lcd-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf 0 setzen } //////////////////////////////////////////////////////////////////////////////// // Sendet eine 4-bit Ausgabeoperation an das LCD static void lcd_out( uint8_t data ) { data &= 0xF0
in „mega8 Flash Verwirrung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „LCD 1602A an ATmega8“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd_routinen.c
// Ansteuerung eines HD44780 kompatiblen LCD im 4-Bit-Interfacemodus // // Die Pinbelegung ist über defines in lcd-routines.h eingestellt #include <avr/io.h> #include "lcd_routinen.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); // Enable auf 0 setzen } //////////////////////////////////////////////////////////////////////////////// // Sendet eine 4-bit Ausgabeoperation
in „LCD 204B-NLW & AtMega32“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „Probleme mit HD44780 1602 LCD Module“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „LCD ansteuern funktioniert nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcs-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „ATmega8 + LCD-Probleme“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „ATtiny2313 / LCD2x16 / String Ausgabe fehlerhaft“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Lcd-routines.c
// Die Pinbelegung ist über defines in lcd-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.h" #include <util/delay.h> #ifndef F_CPU #define F_CPU 16000000 #endif //////////////////////////////////////////////////////////////////////////////// // 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); // Enable auf 0 setzen } //////////////////////////////////////////////////////////////////////////////// // Sendet eine 4-bit Ausgabeoperation an das LCD static
in „Icons löschen EA DIP203-6 (Atmega64)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.c
); 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 „LCD funktioniert nich“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „Interfacing a HD44780 Based LCD zu einem AVR STK600(ATmega2560)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „AVR HD44780 Fragen - Display - Fragen - C“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.c
); 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 „LCD-Display 204B - brauche Hilfe“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „lcd initialisiert nur ein mal (ATmega8)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.c
#include <avr/io.h> #include "lcd-routines.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); // Enable auf 0 setzen } //////////////////////////////////////////////////////////////////////////////// // Sendet eine 4-bit Ausgabeoperation an das LCD static void lcd_out( uint8_t data ) { data &= 0xF0; // obere 4 Bit maskieren LCD_PORT &= ~(0xF0>>(4-LCD_DB)); // Maske
in „C-Code optimieren (passt nicht in Attiny2313) :(“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.c
); 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 „LCD-Display (HD44780) keine Ausgabe“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.c
#include <avr/io.h> #include "lcd-routines.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); // Enable auf 0 setzen } //////////////////////////////////////////////////////////////////////////////// // Sendet eine 4-bit Ausgabeoperation an das LCD static void lcd_out( uint8_t data ) { data &= 0xF0; // obere 4 Bit maskieren LCD_PORT &= ~(0xF0>>(4-LCD_DB)); // Maske
in „LCD 1602A an Atmega128A will nicht funktionieren“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.c
); 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 „Speichermöglichkeit!“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd_routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd_routines.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); // Enable auf
in „LCD an Atmega 8“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „Atmega16 und LCD Tutorial“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
lcd-routines.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-routines.h einstellbar #include <avr/io.h> #include "lcd-routines.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); // Enable auf
in „[[C] LCD die 10000ste“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
AVR335.pdf
C8 MicrophoneGND 10K GND 4n7 Connector GND GND GND V cc C6 100nF GND C2 C5 1µF 100nF U1D U1C 13 - U1B 9 - 14 C3 5 6 - 8 R11 12 + 1µF 7 R7 R10 10 + LM 324 4 R8 R6 5 LM 324 12K 3 + 1K8 15K C9 C4 2 470R 5K
in „PWM zur Tonausgabe auf einem Lautsprecher Mega8“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
a duty cycle at 12.5% for channel 3 */ Channel3Pulse = (uint16_t) (((uint32_t) 125 * (TimerPeriod - 1)) / 1000); init_all(); GPIO_SetBits(GPIOB, GPIO_Pin_2); GPIO_SetBits(GPIOC, GPIOC_BZZ); RCC_ClocksTypeDef clocks; RCC_GetClocksFreq
in „STM32F1 Brushless Motor Steuerung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
kuche.c
#include <avr/io.h> #include <avr/interrupt.h> #include <stdlib.h> #ifndef F_CPU #warning "F_CPU war noch nicht definiert, wird nun mit 8000000 definiert" #define F_CPU 8000000UL /* Quarz mit 3.6864 Mhz */ #endif #include <util/delay.h> /* H: der Farbton als Farbwinkel H auf dem Farbkreis (z. B. 0° = Rot, 120° = Grün, 240° = Blau) S: die Sättigung S in Prozent (z. B. 0% = keine Farbe, 50% = ungesättigte Farbe, 100% = gesättigte, reine Farbe) V: der Grauwert V als Prozentwert angegeben (z. B. 0% = keine Helligkeit, 100% = volle Helligkeit) Skalierung der HSV Werte: H: 0-255, 0=rot, 42=gelb, 85=
in „HSV RGB Led Dimmer, C Code & Video & Doku“ · Projekte & Code ·
-
Datei
Test_Drehgeber.asm
, accu1 ; Configuration über das VPCTRLA Register ldi accu1, $32 ; V_PORT3->PORTC / V_PORT2->PORTD sts PORTCFG_VPCTRLB, accu1 ; Configuration über das VPCTRLB Register ; ->> ab jetzt kann man PORTA..PORTD mit out, in, sbi, cbi benutzen ;____________Alle Pins von Ports A..
-
Datei
d_mmerungsschalter.c
pragma optsize- CLKPR=0x80; CLKPR=0x00; #ifdef _OPTIMIZE_SIZE_ #pragma optsize+ #endif // Input/Output Ports initialization // Port B initialization // Func7=In Func6=In Func5=In Func4=In Func3=In Func2=In Func1=In Func0=In // State7=P State6=P State5=P State4=P State3=P State2=P State1=P State0=P PORTB=0xFF; DDRB=0x00; // Port C initialization // Func6=In Func5=Out Func4=Out Func3=Out Func2=Out Func1=In Func0=In // State6=P State5=0 State4=1 State3=1 State2=1 State1=P State0=T PORTC=0x5E; DDRC=0x3C; // Port D initialization
in „Dämmerungsschalter mit 3mm LED als Lichtsensor und Anzeige“ · Projekte & Code ·
-
PDF
DCL10_ds593.pdf
of Cascaded Slave-Serial Topology DS593 (v1.2.1) March 17, 2011 www.xilinx.com 17 Platform Cable USB II X-Ref Target - Figure 18 + 3.3V 2 mm Connector 2 V REF 8 MISO 10 MOSI 4 SS 6 SCK 13 PGND * (4) GND +2.5V +3.3V +1.2V +3.3V V V V V C C C C A O O I U _ _ T X 2 0 VCC MOSI D W ‘1’ (5) DIN SPI Bus Q ST Micro Spartan-3E(2) M25Pxx (1) SPI Flash FPGA CSO_B S HOLD ‘1’ CCLK C + 2.5V GND ( k . 4 GND PROG_B DS593_18_021508 Notes: 1. The pin names for a ST Microsystems
in „USBprog CPLD Starterkit Wie bauen?“ · FPGA, VHDL & Co. ·
-
PDF
GCC_Tut_Test.pdf
Tipparbeit 8 aber ubersichtlicher und selbsterkl arend: */ 9 DDRB = (1 << DDB0) | (1 << DDB1) | (1 << DDB2) | (1 << DDB3) | (1 << DDB4); 10 ... ▯ ▯ ▯Die Pins 5 bis 7 werden (da 0) als Eingan e geschaltet. Weitere Beispiele: ▯ 1 // Alle Pins des Ports B als Ausgang definieren: 2 DDRB = 0xff; 3 // Pin0 wieder
-
Datei
DS18B20.c
; //2us Umschaltzeit (minimum 1usec) break; case 3: //Kanal 3 ADR_0 |= (1<<ADR_0_PIN); //1 ADR_1 |= (1<<ADR_1_PIN); //1 ADR_2 &= ~(1<<ADR_2_PIN); //0 _delay_us(2); //2us Umschaltzeit (minimum 1usec) break; case 4: //Kanal 4 ADR_0 &= ~(1<<ADR_0_PIN); //0 ADR_1 &= ~(1<<ADR_1_PIN); //0 ADR_2 |= (1<<ADR_2_PIN); //1 _delay_us(2); //2us Umschaltzeit (minimum 1usec) break; case 5: //Kanal 5 ADR_0 |= (1<<ADR_0_PIN); //1 ADR_1 &= ~(1<<ADR_1_PIN); //0
in „Umstieg ATmega32 auf AT90CAN128 WinAVR“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Porting_ucOSII_to_ARM.pdf
. . . 39 4.1.1 Port header; os cpu.h . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 4.1.2 Port C-functions; os cpu c.c . . . . . . . . . . . . . . . . . . . . . . .. . . . 41 4.1.3 Port assembler-functions
in „uC/OS-II portieren“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
User_guide_-_Driver.pdf
1, and so on. Returns: None. 9.2.2.21 GPIOPinTypeI2C Configures pin(s) for use by the I2C peripheral. Prototype: void GPIOPinTypeI2C(unsigned long ulPort, unsigned char ucPins) Parameters: ulPort is the base address of the GPIO port.
in „PCF8574 mit LM3S8938 per I2C auslesen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
); ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_I2S0); //ROM_SysCtlPeripheralReset(SYSCTL_PERIPH_I2S0); // configuration for Pin Multiplexing GPIOPinConfigure(GPIO_PD5_I2S0RXMCLK); GPIOPinConfigure(GPIO_PD0_I2S0RXSCK); GPIOPinConfigure(GPIO_PD1_I2S0RXWS); GPIOPinConfigure(GPIO_PD4_I2S0RXSD); // configure Port Pins for I2S GPIOPinTypeI2S(GPIO_PORTD_BASE, GPIO_PIN_0 | GPIO_PIN_1 | GPIO_PIN_4 | GPIO_PIN_5 ); // // Select internal clock source // I2SMasterClockSelect(I2S0_BASE, I2S_RX_MCLK_INT
in „Probleme mit Goertzel Algorithmus und Festkommaarithmetik“ · Digitale Signalverarbeitung / DSP / Machine Learning ·
-
Datei
main.h
EFP */ /* Private defines -----------------------------------------------------------*/ #define B1_Pin GPIO_PIN_13 #define B1_GPIO_Port GPIOC #define B1_EXTI_IRQn EXTI15_10_IRQn #define USART_TX_Pin GPIO_PIN_2 #define USART_TX_GPIO_Port GPIOA #define USART_RX_Pin GPIO_PIN_3 #define USART_RX_GPIO_Port GPIOA #define RW_Pin GPIO_PIN_5 #define RW_GPIO_Port GPIOA #define EN_Pin GPIO_PIN_6 #define EN_GPIO_Port GPIOA #define D0_Pin GPIO_PIN_7 #define D0_GPIO_Port GPIOA #define D5_Pin GPIO_PIN_10 #define D5_GPIO_Port GPIOB
in „[Pollin] Grafik Display Anschluss Verständnisfragen“ · Mikrocontroller und Digitale Elektronik ·
-
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 ·
-
PDF
BabyController_B328.pdf
datasheet for detailed register info ' configure for inverted PWM output on motor control pins Tccr0a = &HF3 Tccr2a = &HF3 ' use the system clock / 8 (2.5 MHz) as the timer clock Tccr0b = &H02 Tccr2b = &H02 ' Motor 2 beschleunigen I = 0 Do Ocr2a = 0 Ocr2b = I Waitms 500 I = I + 5 Loop Until I
in „Baby Orangutan b-328“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
config.h
Open207V_USART_RX_SOURCE GPIO_PinSource11 #define Open207V_USART_RX_AF GPIO_AF_USART3 #define Open207V_USART_IRQn USART3_IRQn /** * @brief Definition for COM port1, connected to I2C1 */ /* Configure I2C1 pins: PB6->SCL and PB7->SDA
in „STM32F4 Discovery + TFT + FSMC“ · Mikrocontroller und Digitale Elektronik ·