Hi Bart,
The code you're talking about came from Microchips datasheet, it would most likley compile if you used MPASM. MPASM is Microchips assembler compiler. However, you use the PBC and PM compilers from Melabs. Melabs prefer to define things slightly different from Microchip. No big deal, you only need to get used to using the bitname without the register. In the end it all compiles to the same thing.
If you don't like the way it's done now you could always define them yourself. I will be of no use for that since i haven't used this compiler in the last seven years.
How would you know ........ well, i guess it's all about getting familiar with your programming enviroment and REALLY understand it. Read the manuals(PBC and PM) over and over again, then finish off by learning your pic of choise by reading the datasheet over and over .......... you get the picture. No shortcuts, just hard work.
Cheers
/Ingvar




Bookmarks