here is a snippet  of the code  I  am trying to port to drive  a display  controller (SSD1963)
.
.
BusInOut DB(p12,p11,p10,p9,p8,p7,p6,p5);    /* databus D0-D7 */
void Write_Command(unsigned char command){
        nRD = 1;
        DB = command;
        write(DB);
        RS = 0;
        nWR  = 0;
        CS = 0;
        wait_us(2);
        CS = 1;
        nWR  = 1;
My problem:
where I have write(DB),  what I am trying to do is to write a data bayte out to my bus.  Originally I  assumed  just writing DB=command would  do it,  or write(DB),  but clearly this is not the case.  I  could  not find a code example  on the site.  I've tried write.DB  but  I contine to get an error message indicating that write  is  not recognized.  Any pointers?  thanks
                    
                 
                
             
        
here is a snippet of the code I am trying to port to drive a display controller (SSD1963)
. .
BusInOut DB(p12,p11,p10,p9,p8,p7,p6,p5); /* databus D0-D7 */
void Write_Command(unsigned char command){ nRD = 1;
DB = command; write(DB); RS = 0; nWR = 0; CS = 0; wait_us(2); CS = 1; nWR = 1;
My problem:
where I have write(DB), what I am trying to do is to write a data bayte out to my bus. Originally I assumed just writing DB=command would do it, or write(DB), but clearly this is not the case. I could not find a code example on the site. I've tried write.DB but I contine to get an error message indicating that write is not recognized. Any pointers? thanks