Open your pbppic18.lib and scroll down to line number 1239. Where you see addlw (sintable) change it to addlw low(sintable)
Open your pbppic18.lib and scroll down to line number 1239. Where you see addlw (sintable) change it to addlw low(sintable)
Bruce, What version of PBP do you have there? I just checked my latest version w/patch and find no instance of this.
Dave Purola,
N8NTA
Hi Dave,
I have the latest version + I keep all older versions for tech support. v2.47 is the version
I noticed the low missing in. It works even without the mod, but always returns the warning.
Same thing applies going either sending or receiving...
variableword var word
variable_highbyte var byte
variable_lowbyte var byte
variableword = (variable_highbyte * 256) + variable_lowbyte
variable_lowbyte = variableword.lowbyte
variable_highbyte = variableword.highbyte
In english please
But look at this:
Code:USBBufferSizeMax con 8 ' maximum buffer size USBBufferSizeTX con 8 ' input USBBufferSizeRX con 8 ' output ' the USB buffer... USBBufferIn Var Byte[USBBufferSizeMax] USBBufferOut Var Byte[USBBufferSizeMax] USBBufferCount Var Byte USBBufferCount = USBBufferSizeTX ' TX buffer size USBService ' keep connection alive USBOut 1, USBBufferOut, USBBufferCount, DoOutBuf ' if bus available, transmit data
If you've got MCS setup to dump out a .lst file with all the options turned on (usually fairly HUGE files), you can usually scroll thru it or search it for the phrase 'ERROR', then using a bit of deductive logic, can usually trace that back to your original problem...whether it be a problem with the typist, an include file, a macro, whatever.
The warning message tells you where the problem is. Warning[202] \PBP\PBPPIC18.LIB 1239How did you know that i should do that?
I looked in the library at the line # indicated by the warning message. In v2.50a there was no problem. In v2.47 this was missing, so it's a simple fix to get rid of the warning.
It also helps if you know assembler...;o]
It may go back a few versions, but I didn't check back any farther than 2.47.
Bookmarks