View Single Post
  #4   Spotlight this post!  
Unread 16-09-2005, 15:35
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: Addressing I/O in Sections

First off, I agree with Briand and sciguy.

However... theoretically, it may be possible to do what you want. There are a couple of things which have to be true: (and may not be, I've never tried doing this.)
  • The PIC ports have to be controlled by actual memory locations, not some seperate internal thing. (I think that's true.)
  • The PIC port memory locations have to be in consectutive locations every compile.
Assuming that both of those are true, you can probably create a char pointer to the first port that controls your LCD, then assign that the integer you want.
__________________