Hi there
I recently finished my 5x5x5 cube. I am now having problems with programming it. The major problem is my programming knowledge
. The original project
http://courses.cit.cornell.edu/ee476/FinalProjects/s2008/pae26_rwc28/pae26_rwc28/index.html was made using a ATMEL32 chip. I have used in my project a PIC16F877 and I use PORTB for columns and PORTD for layers wich are the ground controls.
This what they used with ATMEL
// DDRC.0 = Decoder control bit 0 (LSB)
// DDRC.1 = Decoder control bit 1
// DDRC.2 = Decoder control bit 2
// DDRC.3 = Decoder control bit 3
// DDRC.4 = Decoder control bit 4 (MSB)
// DDRC.5 = 25th column
// DDRC.6 = Bit 0 of led ground
// DDRC.7 = Bit 1 of led ground
// DDRB.0 = Bit 2 of led ground
// DDRB.1 = Bit 3 of led ground
// DDRB.2 = Bit 4 of led ground
So with ATMEL PORTC is for columns and 2 of PORTC and PORTB for layers
And the original project has a accelerometer wich I don't have.
I have tried many times to make the code work on my PIC using MPLAB IDE v8.30 but no success. Someone told me that I should "port" the code but I don't know how.
I am desperate to make my cube work because I have worked so much on it. I have attached some important files (code and scheme + pics of the cube)
Can anyone please help me.
http://www10.zippyshare.com/v/37924573/file.html -> link to program
http://www10.zippyshare.com/v/27061491/file.html -> link to pic 1
http://www10.zippyshare.com/v/97278940/file.html -> link to pic 2
http://www2.zippyshare.com/v/62045185/file.html -> link to scheme