PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Dec 29, 2003 1:28 pm |
|
|
Quote: | One is to move the GLCD Data Port to PORTB. |
I assume you're using the CCS driver file, GLCD.C.
If you look closely at the code in that file, you will see several
lines where it calls the input_d() and output_d() functions.
Example:
Code: | output_d(data); // Put the data on the port |
To change the driver to use Port B, you need to change those
lines to input_b() and output_b(). Make sure that you find
every line of code that needs to be changed. (Of course, this
assumes that you have moved all the control signals to a
different port, since the GLCD.C driver originally had them on
Port B). |
|