GettinBetter
New Member
Hi Peeps,
I recently had issues with a GLCD which with your help I managed to get working.
Trouble is I've changed from a PIC16F877 to a PIC16LF18877 and the waveform on the analyser is all messed up.
My question is:
What is going on here.. with these two lines?
(For reference GlcdControlBus is defined as PORTB, with CS1 as 0x00, & CS2 as 0x01)
I know what the end result creates, but how? I tried to break each symbol down as I try to fathom it out, but I'm struggling. It only needs to set bits<1:0> of PORTB yet seems so complicated.
regards
GB
I recently had issues with a GLCD which with your help I managed to get working.
Trouble is I've changed from a PIC16F877 to a PIC16LF18877 and the waveform on the analyser is all messed up.
My question is:
What is going on here.. with these two lines?
(For reference GlcdControlBus is defined as PORTB, with CS1 as 0x00, & CS2 as 0x01)
Code:
GlcdControlBus |= (1<<CS2);
GlcdControlBus &= ~(1<<CS1);
I know what the end result creates, but how? I tried to break each symbol down as I try to fathom it out, but I'm struggling. It only needs to set bits<1:0> of PORTB yet seems so complicated.
regards
GB