Hbusin/Hbusout BASIC code Replacement
For those of you who are at a more advanced programming stage, presented here is an include file that will replace the compiler's HBusin, HBusout, HBStart, HBReStart, HBStop, HBusAck and HBusNak, hardware peripheral I
2C, commands with their BASIC code equivalents.
Originally posted on the Amicus code examples page, this article was written by Les Johnson
Why would you want this?
Changing the nature of code is what programmers do best, and being able to alter the underlying code that the compiler normally created in assembler mnemonics, has many possibilities.
The code below shows the use of the HBusin/HBusout commands, but uses the replacement code routines. As you can see, there are no differences between this code, and the normal use of these commands, except for the addition of the "Hbusin.inc" include file at the top of the program.
MPLABŪ X TV Call Graph
More...