You need to turn of case sensitivity. Go to Project->Build Options->Project and select tab MPLAB Assembler and turn off Case Sensitivity and it will assemble fine. You will get lots of warnings but they aren't a problem.
However I now can build and program the code but sadly the actual project is still not working.
Since I changed the original schematic to suit my matrixes opposite cathode and anode configuration I assumed that the problem was in the circuitry but after many days of looking and testing each component I decided to write a simple basic program to scan the matrix and low and behold it works.
The program I wrote simply turns on one led at a time and scans across then down to the next row and so on and even though I never managed to figure out how the O/P jiggled the 4017 ic to start at row one after the 7th row I can now actually see my circuit is working ok, with just a dark period while the 4017 completes its 10 rows instead of the 7 it should.
The worst part is that now I don't have any reason for the project not to work! I have tried using the O/Ps hex file and with help from you guys have now compiled his ASM ok, but sadly still no joy. This project was for a friends 60th birthday party as a bit of fun. I was hoping to scroll his name and age as we always take the mickey out of him for his panic about reaching the big 60.
Eric, how do you feel about having a look at this for me, I remember you offering to before when I was stuck once, and I could soon pop the whole lot in a box addressed to your good self.
I don't like giving up so easily (only spent about a hundred hours trying so far!) but I am running out of time.
The schematic looks wrong to me.
"Counting to less than 9 is achieved by connecting the relevant output (Q0-Q9) to reset, for example to count 0,1,2,3 connect Q4 to reset."
Taken from this page; 4000 series CMOS Logic ICs
i
Eric, how do you feel about having a look at this for me, I remember you offering to before when I was stuck once, and I could soon pop the whole lot in a box addressed to your good self.
I don't like giving up so easily (only spent about a hundred hours trying so far!) but I am running out of time.
I cannot find your address. I thought it was in my messages which go back to 2007 but it seems not, could you PM me with it please.
Houseofwax, yes I realised that the way the datasheet looks that the reset should be connected to pin 9 (8th output) but since the O/P had made this and others have too then I decided to bow to his knowledge and assume its just one more thing I don't understand!
Read the article on how the 4017 works in this particular instance. It is fully covered in the discussion. The 4017 is never "reset." It is simply cycles through its 10 outputs and it is initially cycled until the 9th output is detected by the micro. From there the 4017 is cycled and the program assumes the two chips stay in synchronisation.