Hello Bill,
From your previous post, it sounded like you were happy with the speed of programming with pbp, and that it could do almost everything you wanted. We should be able to get your tilt.asm working with pbp as an include file, which would let you add you own code in pbp and get the tilt sensor doing something useful.
To start with, you will need to define the variables. (of course, you will have to start with defining the osc, your ports, etc, just as you always do). I define the variables inside pbp, which lets them be used within the pbp, as well as the asm portions of your code. When you do this:
T1XHi VAR byte
T1XLo VAR byte
inside your asm, the variables need to look like this:
asm
movwf _T1XHi
movf _T1XLo, W
endasm
You can look at my first conversion as an example. This assembly used object code, and yours does not. That's why I think it will be a little easier. Check out:
http://www.picbasic.co.uk/forum/showthread.php?t=7502
Your code looks interesting. Would be glad to help if you decide to proceed.
Walter
Bookmarks