PDA

View Full Version : Mpasm Error 5955



mungam753
- 8th December 2005, 04:49
I am programming a Pic18f252 chip and have an error I cannot resolve. I have searched the forums and cannot find this particular error. Can anyone tell me what this error is all about. "Warning[202]C;/pbppic18.lib 5955 : Argument out of range. Least significant bits used." Switching over to Mpasm creates a whole new set of errors I am unfamiliar with.

BigWumpus
- 8th December 2005, 21:02
Compiling for the 18F252, you can't use the MPASM !!!!!!!

The error occurs, because you are using numbers (or calculations) which are bigger then 16 Bits !
Check your source (or look in your .lst-file for the error) for this big number.

mungam753
- 9th December 2005, 04:47
BigWumpus thank you for your help. I found the error and it works just fine now. It was my sampling rate and it was set for like 99000. I must have edited my code after a late night at the bar. I hate those errors that are vague and send you looking in all the wrong places.