Good golly, this works. I fussed around with PBP WRITECODE for way too long and gave up, modified Darrel's code slightly, and it works! Here's my code. Thanks Darrel!
Code for PIC18F8722:
...
Type: Posts; User: ImAnEE; Keyword(s):
Good golly, this works. I fussed around with PBP WRITECODE for way too long and gave up, modified Darrel's code slightly, and it works! Here's my code. Thanks Darrel!
Code for PIC18F8722:
...
What, for a Hi-Tech C compiler? Sorry Mehran, this forum is for the Micro Engineering Labs (or Melabs.com) PICBASIC PRO compiler, not for the Hi-Tech C compiler. You should post your question to the...
Interrupts are now occurring! I discovered that I was clearing the TMR0 interrupt enable elsewhere in my code. Now interrupts are occurring but at the wrong rate, 7ms between interrupts instead of...
Ah, there is some hope. It is interrupting at least once. I had missed the test point signals that occurred after 25us. So now to find out why it only interrupts a single time.
Here's my latest...
I tried to get this working a year ago but had trouble and gave up, just polling the TMR0 interrupt flag. But I think I really need the interrupt handler this time, and although I have looked at the...
My mistake. The problem is not with the addition, but rather with my binary to BCD conversion routine that I'm using to output the number serially. I foolishly tested it only with 5-digit numbers,...
Having a strange problem with addition to a word. I'm outputting the number to the PIC18F8722 EUSART. I'm using PBP v2.60. I can output a constant, e.g. 31416, but if I add one to a word value...
Your responses are very helpful and greatly appreciated. It's pretty incredible to get this quality of help.
So far I had only thought of one interrupt to use for my project, and I figured I would set it at low priority since there seemed to be no reason to use high-priority when using only one interrupt....
I'm trying to make a simple interrupt handler for the PIC18F8722 timer0. I'm using PICBASIC PRO, MPLAB, the Explorer 18 board, PICKIT 3 and MPASM.
I'm confused about the assembler interrupt...
Bruce,
You're right, Microchip\MPASM Suite wasn't in the PATH. Now all is well, I think. Except that somehow I screwed up MPLAB so I wasn't able to modify my .bas file. It said that it couldn't...
mackrackit:
Yes, I have read http://www.melabs.com/support/mplab.htm and I believe I followed it quite faithfully but of course I may have missed something.
Acetronics:
No I don't have any...
Thanks mackrackit. Wow! That is clunky (compiling in MCS/PBP and then importing the hex file into MPLAB and programming the PIC18 on the Explorer 18 board), but it works. And it's a pain. I hope...
With MCS/PBP: I don't think I was able to get the Explorer-18 board configured with MCS. I didn't know how to set up the Explorer-18 board as the custom programmer. I tried PK3CMD.exe for the...
Thanks very much for the comments and suggestions. They are truly appreciated.
mackrackit: I'll give MCS a try when I get back to work. Hopefully MCS will work with my Explorer-18 board. I'm not...
Darrel: I don't think so but I'm really not sure. In the Control Panel under System it says Microsoft Windows XP Professional Version 2002 Service Pack 3. I don't see anything about 64 bit. Is there...
I'm just starting with PICBASIC PRO. I installed v2.60 along with MPLAB 8.50 and the PBP tool suite is loaded into MPLAB. I'm using the PIC18 Explorer board with the PIC18F8722. I'm trying to compile...