Here is my 3x3x3 LED Cube project. It runs using a PIC16F84A. Each layer of 9 LEDS are connected with all of the cathodes together. The cube is multiplexed, means that only one layer is on at any one time. It happens so quickly so the whole cube looks like it is illuminated.