PNP transistors and processor pins

ledpnptransistors

On the diagram below, there are 4 PNP transistors.

When RA0 is set to HIGH, then current flows from +5V through RA0 to GND and from +5V through 7 segment display, then through (for example) RB0 (if it's set to HIGH) to GND. Is that right? Is setting a processor pin to HIGH state means the pin will allow current flow from the voltage source to GND through itself?

enter image description here

Best Answer

One of RA0 - RA3 must be set low, to select the digit, with the other RAx's set high.

RB0 - RB7 must be set low for the segments you want lit in that digit, and set high for the segments that should be off.