Go to Post Life is not about avoiding risk, but managing it. - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 15-09-2005, 22:38
astro1652's Avatar
astro1652 astro1652 is offline
Registered User
FRC #1652 (Team Overdrive)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Kenosha
Posts: 2
astro1652 is an unknown quantity at this point
Question Addressing I/O in Sections

I was wondering if it is possible to address sections of the I/O of the RC all at once. For example, I have a parallel LCD which uses 8 I/O lines for data. Thus, I want 8 pins of the I/O to be assigned either high or low at the same time instead of addressing them individually.

Code:
LCD_port = 5;
Assuming you can assign LCD_port a number of I/O pins, then telling it to assign 5 would turn on pins (bits) 0 and 2 (5 in binary is 101).

Is there anyway to do this that I am unaware of? Similarly, can I access just the upper and lower half of an unsigned int somehow? Please pardon me if these sound like n00b questions, as I am certainly a beginner in the C language.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
If statement in .h file or Indirect addressing? Kevin NAV code... Chris_Elston Programming 11 14-02-2005 23:39
Dynamic Input/Output Changing Paolo Control System 6 23-09-2004 19:09
Cheering Sections at Nationals Dirty Harry Championship Event 3 06-04-2004 00:30
Actual execution time measurement Dan Technical Discussion 5 24-03-2003 11:36
Programming Port I/O MikeDubreuil Programming 4 10-02-2003 17:07


All times are GMT -5. The time now is 10:52.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi