dhouston, I would look at the .LST file and find the occurance of "warning" and then see what variable it is trying to manipulate. This should give you a clue...
Dave Purola,
N8NTA
dhouston, I would look at the .LST file and find the occurance of "warning" and then see what variable it is trying to manipulate. This should give you a clue...
Dave Purola,
N8NTA
Here's the .LST file section...By commenting out each SerOut instance (one-by-one) and recompiling, I isolated it to the copyright message. Without it, both the warning and message go away.Code:00F9 0918 M call SEROUT 00078 SEROUT?C 0FFA9h Warning[202]: Argument out of range. Least significant bits used. 00FA 0CA9 M movlw 0FFA9h M L?CALL SEROUT
I'll have to wait until Digikey ships my 12F509 chips to test it.
Last edited by dhouston; - 10th September 2009 at 14:45.
dhouston , I just ran your code and if you get rid of the copyright character the code compiles... Where are you getting the copyright symbol anyways? I don't think the assembler understands it....
Dave Purola,
N8NTA
It was copied and pasted from my source code for an Atmel AVR compiler. The ASCII chart in Appendix D of the PBP manual only goes to 127 so any extended character is likely to cause this. © is ascii 169 (depending on the font).
EDIT: The same copyright line compiles and works OK with a 12F629. It must be a limitation of the 12-bit cores. Anything greater than Ascii 126 causes the error.
Last edited by dhouston; - 10th September 2009 at 18:15.
Bookmarks