Kayıtlar

Ölçülen voltu LCD'ye yazmak etiketine sahip yayınlar gösteriliyor

Write Measured Voltage on LCD Screen (MSP430 Applications in C ++)

This tutorial shows us how to measure voltage with using MSP430, and display the voltage value into the LCD screen. Codes are half turkish so if you guys have question or misunderstoods you can mail me. I can glady help you ! mail: g.haddeler@gmail.com Have fun !! First you need to create an LCD library. Add a tab outside the main tab and get these codes. Lib Codes : ------------------------------- #include "io430.h" #include "lcd_msp.h" #define E_1     0x08 #define RS_E_1  0x0C void delay(unsigned long int d) {   d*=100;   for(;d>0;d--); } void hc595_yaz(unsigned char gelen) {   for(char i=8;i>0;i--)   {     Data=0;     if(gelen & 0x80)     Data=1;     Clock=1;     Clock=0;     gelen*=2;   }   Storage=1;   Storage=0; } void lcd_write(unsigned char port) {   //ilk 4 bit gönderiliyor...   hc595_yaz(E_1);   hc595_ya...