electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Help in understanding C-langugage command


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Help in understanding C-langugage command
Author Message
somf0872



Joined: 14 Oct 2003
Posts: 95
Helped: 1


Post19 Feb 2006 14:43   

c langugage


Can anybody help me out that what does this C-language commands mean :

PORTC &= ~((1<<LCD_RW)|(1<<LCD_E));
PORTC |= ((1<<LCD_RS)|(1<<LCD_E));

I mean ................... I need some explanation on this.

--X--
Back to top
Google
AdSense
Google Adsense




Post19 Feb 2006 14:43   

Ads




Back to top
artem



Joined: 22 May 2003
Posts: 1652
Helped: 91
Location: Turan


Post19 Feb 2006 18:23   

Help in understanding C-langugage command


LCD_RW, LCD_E, LCD_RS are bit positions (from 0 to 7) on port C, usually defined by #define preprocessor statement as constants . So if you find constant definitions you will be able to recognise what pin of port C is connected to LCD controll pins .

Statements above do :
first - reset to zero pins pointed by LCD_RW and LCD_E, the rest pins stay unchanged

second - set to one pins pointed by LCD_RS and LCD_E , rest of pins stay unchanged .
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Help in understanding C-langugage command
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
how to use STOR or APPE command with AT command ? (3)
Help me to understanding this (4)
Need help in understanding (10)
GSM AT Command for issuing service command (7)
GSM AT Command for issuing service command (1)
I need help understanding a diagram (3)
UNDERSTANDING TV (DIAGRAM/OPERATION) Help!!! (1)
help in understanding this circuit. (1)
Help understanding an electronic motor (2)
help needed - Kalman filter understanding (3)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS