13.07.2015 Views

ČESKÁ ZEMĚDĚLSKÁ UNIVERZITA V PRAZE

ČESKÁ ZEMĚDĚLSKÁ UNIVERZITA V PRAZE

ČESKÁ ZEMĚDĚLSKÁ UNIVERZITA V PRAZE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

internal functionimplementationsvoidLCD_5834798_RawSend(char nIn, charnMask){unsigned char pt;unsigned char outVal;outVal =LCD_5834798_AVRPIN;pt = ((nIn >> 4) &0x0f);clear_bit(outVal,LCD_5834798_BIT0);clear_bit(outVal,LCD_5834798_BIT1);clear_bit(outVal,LCD_5834798_BIT2);clear_bit(outVal,LCD_5834798_BIT3);clear_bit(outVal,LCD_5834798_RS);if (pt & 0x01)set_bit(outVal,LCD_5834798_BIT0);if (pt & 0x02)set_bit(outVal,LCD_5834798_BIT1);if (pt & 0x04)set_bit(outVal,LCD_5834798_BIT2);if (pt & 0x08)set_bit(outVal,LCD_5834798_BIT3);if (nMask)set_bit(outVal,LCD_5834798_RS);LCD_5834798_AVRPORT =outVal;LCD_5834798_DELAY;set_bit(LCD_5834798_AVRPORT,LCD_5834798_E);LCD_5834798_DELAY;clear_bit(LCD_5834798_AVRPORT,LCD_5834798_E);LCD_5834798_DELAY;outVal =LCD_5834798_AVRPIN;pt = (nIn & 0x0f);clear_bit(outVal,LCD_5834798_BIT0);clear_bit(outVal,LCD_5834798_BIT1);clear_bit(outVal,LCD_5834798_BIT2);clear_bit(outVal,LCD_5834798_BIT3);clear_bit(outVal,LCD_5834798_RS);if (pt & 0x01)set_bit(outVal,LCD_5834798_BIT0);if (pt & 0x02)set_bit(outVal,LCD_5834798_BIT1);if (pt & 0x04)set_bit(outVal,LCD_5834798_BIT2);if (pt & 0x08)set_bit(outVal,LCD_5834798_BIT3);if (nMask)set_bit(outVal,LCD_5834798_RS);LCD_5834798_AVRPORT =outVal;LCD_5834798_DELAY;set_bit(LCD_5834798_AVRPORT,LCD_5834798_E);LCD_5834798_DELAY;clear_bit(LCD_5834798_AVRPORT,LCD_5834798_E);LCD_5834798_DELAY;}// Dummy function to closethe defines section offvoidLCD_5834798_Dummy_Function();voidLCD_5834798_Dummy_Function(){}static voidFCD_LCDDisplay0_Start(){set_bit(LCD_5834798_AVRPORT,LCD_5834798_E);set_bit(LCD_5834798_AVRDDR,LCD_5834798_BIT0);set_bit(LCD_5834798_AVRDDR,LCD_5834798_BIT1);set_bit(LCD_5834798_AVRDDR,5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!