Okay here is an example that something that happened to me in Picbasic.
For some reason Tmr2 was triggering an interrupt, even when disable the intterupt apparently some of the picbasic code was enabling it. I had no idea what part of the code was doing that, so I copied and pasted line by line into a new program and for some reason that stopped the tmr2 intterupt from being triggered.
My point is that, I read the datasheet, but I do not know how exactly picbasic handles many of the registers.Honeslty previously i never read the datasheet and just plugged code into Picbasic, but now I read the datasheet I know exactly which registers I need to set, but sometimes Picbasic just overwrites my settings. I guess I could dump the Compiled program into ASM, but debuggin ASM based on someone else's interpretation on how to do things in ASM is just too much of a headache.
Neccessity is the mother of all invention, I guess Picbasic in some of its shortcoming has forced me to learn much more about the MCU than I wanted to, which is a good thing in the long run but a pain in the short run.
The PicBasic guys need to beef up their manual to show more advanced users what it is doing in ASM.
Bookmarks