Walter,
Try this. It gives you a lot smaller table by packing two bytes into each word space. If you stick with the RETLW approach just uncomment the addwf WREG.
ASM
SineTable
...
Type: Posts; User: Bruce; Keyword(s):
Walter,
Try this. It gives you a lot smaller table by packing two bytes into each word space. If you stick with the RETLW approach just uncomment the addwf WREG.
ASM
SineTable
...
Hi Ioannis,
Strange. It compiles fine for me. Tried it with the old & new versions of DT_INTS!
Did you forget these?
INCLUDE "DT_INTS-14.bas"
INCLUDE "ReEnterPBP.bas"
The major issue you have with the Diolan loader is that it has Enhanced CPU mode
enabled. I.E. XINST = ON.
So code compiled with PBP simply is not compatible, and will not run on the PIC as...
With the Diolan USB loader;
I would contact the author of your loader for help. His loader has extended instruction set enabled, and I don't think you're going to get PBP working on it with this...
Pheeeewwww! I do NOT like that loader at all.
I put one together for you here using the Microchip USB HID boot-loader. Give this one a shot. It works 100% with DT_INTS-18.
I modified the...
I've never used this loader, but I did take a quick peek at the source files.
Try this;
DEFINE OSC 20
DEFINE RESET_ORG 0x800
INCLUDE "DT_INTS-18.bas" '...
Does it work if you disable A/D on RB0?
I just compiled your code in MCS, then opened the .asm generated in MPLAB, selected
the 18F1220, and clicked the Quickbuild option, and it worked fine. Odd way of doing it,
but it did work.
Can...
Those are the errors I was asking about. If you can just setup PBP to work from within MPLAB you really will save yourself a TON of time & headaches.
Show me the errors you get (when PBP is setup...
You have PBP setup in MPLAB as the language tool as shown here: http://melabs.com/support/mplab.htm and you still get the same errors?
What errors do you get when trying to compile from within MPLAB?
See this page: http://melabs.com/support/mplab.htm
If you're using MPLAB with PBP just setup PBP as a language tool in MPLAB. There's no
reason to compile in MCS, then import the .asm produced and assemble it again.
Your PBP code has already been...
Are you compiling from MCS, then importing the .asm file into MPLAB, and trying to
build it?
I think the default for channel 2 is Timer1 unless you use the DEFINE HPWM2_TIMER 2 option.
Channel 1 defaults to Timer2 so you would still see this channel working when disabling Timer1.
See if...
Use the MPASM assembler.
Go like splat ehh...;o}
Hi Darrel,
I've tested it on a Lab-X1 with 18F452. Timers 0, 1 and 3 hi-pri. USART rx
low-pri, and it works as advertised...;o}
P.S. I thought this was pretty slick;
movff FSR#v(F)L,...
Nice work Darrel.