Hi,
What's connected to PortA.4 and PortA.5?
(EDIT: Sorry you did tell us that, I just didn't read it)
I'm guessing the good old ReadModifyWrite problem. For a simple test insert a Pause 10 between each commad writing to PortA and see if it helps. It doesn't fully explain why PortA.5 doesn't go high but I guess it might depend on how the SOUND command works internally, try it and see if it helps.
Usually problems like this are caused by some multiplexed function on the pins but I see that you HAVE turned the ADC off and the comparators (which have their outputs on RA4 and 5) SHOULD default to OFF. But just for the heck of it you could include CMCON=7
I THINK that the other problem you're having might be that the assembler is CASE-sensitive. So instead of porta try PORTA, atleast your example compiles and assembles fine here with all capital letters in the register names.
/Henrik.




Bookmarks