well it compiles ,after making the change to lookup2 , and portoffset to a word variable
but ill have to wait for the pcbs to arrive to test it
cheers hendrick
well it compiles ,after making the change to lookup2 , and portoffset to a word variable
but ill have to wait for the pcbs to arrive to test it
cheers hendrick
When you are using the "Bit Offset from Port" method, it is using "BIT Array" operations internally.
BIT array's have a limit of 256 elements.
Giving it a WORD sized offset will not work.
It will compile using a WORD, but it will only use the LowByte of that value.
DT
Bookmarks