Thanks for the answer! I sometimes find small snippets or statements in the manual that leave me wondering about the actual functioning. In this case it was the DEFINE WRITE_INT 1. I found it...
Type: Posts; User: Zapman; Keyword(s):
Thanks for the answer! I sometimes find small snippets or statements in the manual that leave me wondering about the actual functioning. In this case it was the DEFINE WRITE_INT 1. I found it...
Sorry I didn't mention the chip. It is a PIC18F45K80. I was asking because the PBP manual talks about needing to mask the interrupts during EEPROM writes. I am using DT's interrupt handling...
I am getting closer to the testing stage of my project but have one question. In the PBP manual it says that if interrupts are used the following define should be used.
DEFINE WRITE_INT 1
...
I am using the internal ADC on the PIC18F45K80 but the question I was having was determining if I was inside a window of +/- 40 counts. I was concerned that RefPosition - CurPosition could give me a...
Thanks Richard,
it's the format of the ABS that has been confusing me. According to what I read in the manual, the ABS function for a word variable returns 65536 - value. So if I had a negative...
I know this has been asked and I looked at many of the replies but at 75 years young I am having a bit of trouble wrapping my head around the best way to do this. I have an adc value that I am...
In looking at the code I think the CCP2CON would have to be 01xx1100 for forward or 11xx1100 for reverse. I think that is what I got from the manual.
Thanks again.
Hello everyone,
I searched all the forum topics on motor control I could find and went through the manual but I am still at a loss for how to use the Enhanced PWM Full-Bridge mode in PBP for a...
Thanks mpgmike! you nailed it exactly. After walking around in circles, well actually around my block, I looked at the code and realized I missed a comma in the interrupt definition! One comma, 82...
Hello,
still a very, very newbie here. I made the changes to the original DT_Ints-18 program to match the K80 register names and when I try to compile the code I get the following error message:
...