This seems such a simple problem that I feel embarrassed about asking it, but I cannot solve my problem. A few years ago, I did several projects using 28X1 chips. These projects included 2 row by 16 character displays. I wrote my own program to drive this display. Now, I want to do a project which also uses this display. I decided to update to using an 18M2. I also bought an 18-pin project board to save hand wiring my own board. I expected it to be easy to transfer the display software over to the new chip. Following advice here, I also started using PE5 instead of PE6. Initially, I tried to get the display to work, but failed. I therefore decided to make sure I could set bit patterns on the port first. This is where I have come unstuck. I find that I cannot address the B-port as an output 8-bit port.
I have printed all of Manual 2 (thanks employer!) and searched through it, and also tried searching around the Forum. I have tried several variants and ideas. I find several references to this port being input by default, and how to set it as an output. I have tried several of these, in different ways, but without success. I find that I can set single bits using "high B.1", as shown by the Simulator, and confirmed with a multimeter. I cannot get something using "%10101010" to give this output bit pattern. I find that only B.0 seems to be set. This is shown on the Simulator and confirmed with the multimeter. That I can set a single bit High tells me that pull-up resistors are not required. Seems such a basic question. Where have I failed? Can someone give me any ideas? Thank you
I have printed all of Manual 2 (thanks employer!) and searched through it, and also tried searching around the Forum. I have tried several variants and ideas. I find several references to this port being input by default, and how to set it as an output. I have tried several of these, in different ways, but without success. I find that I can set single bits using "high B.1", as shown by the Simulator, and confirmed with a multimeter. I cannot get something using "%10101010" to give this output bit pattern. I find that only B.0 seems to be set. This is shown on the Simulator and confirmed with the multimeter. That I can set a single bit High tells me that pull-up resistors are not required. Seems such a basic question. Where have I failed? Can someone give me any ideas? Thank you