This is a little OT but I know most of you have played some in this area. I'm planning on building a wire feed unit to feed xx inches of wire and cut. I plan on using a pic and PBP to control the...
Type: Posts; User: rwskinner; Keyword(s):
This is a little OT but I know most of you have played some in this area. I'm planning on building a wire feed unit to feed xx inches of wire and cut. I plan on using a pic and PBP to control the...
And, if you wanted to do this with 3 pins instead of 8 add a 165 PISO shift register.
Is there a way to keep the Digital outputs on a 18F4520 from changing states when the pic gets reset with a MCLR? I don't remember this happening on my other pic projects with 16F series.
My...
Would a While/Wend be more appropriate?
No, not at all, was just thanking you for the help you've given. Too many times I look the time to search and look up links and info for folks and not even a reply or thank you.
I see it happen...
Yes, but if he is doing something like modbus for instance, he only has the node#, correct number of bytes to collect, and then the timeout or Silent time.
Then he would have to verify the data...
'Instead of waiting, grab the first byte and see if it's for your ID or Broadcast then
'if so collect the rest of the bytes
HSerIn Timeout,ExitRx,[BufRX(0)]
If ((BufRx[0] = MyID) or (BufRx[0] =...
Thanks for your help Darrel
Would it be better to do something like this and get rid of the WAIT?
Just Grab the first byte and see if it's for me, if so process, else Exit Interrupt....
'Receive Interrupt
Receive: ...
Oh, I have lots of initilized variables in my Init: routine before it drops into the Main. But thanks.
Yes, it's counting properly now. You 100% correct, I moved my prewritten HSerIn call from...
That works better.
Is this causing my problem since they are PBP Interrupts, it's not exiting like it should...
AdcMaxReads is at 64, Each time I loop I increment the channel, that way I...
I did check, and I do have the following fuses set in my programmer.
Osc = HS, FSCM = on, Brown Out = Enabled,
Low Power Timer1 Osc = Low Power ??? Was default
Yes, I have one other that's for Rx but it grabs a short 8 byte serial string once every 2 seconds.
INCLUDE "DT_INTS-18.bas" ; Base Interrupt System
INCLUDE "ReEnterPBP-18.bas" ;...
I'll double check that, but if that were the case, wouldn't my baud rates and stuff be off as well on my serial port stuff?
Don't be scared, it's a great tool and is perfect especially for starting out. Easy to use and easy to understand. Some of the stuff we were talking about really isn't an issue. I was more/less...
I've been through this before but I must be doing something wrong.
My DT Elapsed Timer is incrementing the seconds every 15 seconds.
I'm running a 18F4520 with an External clock of 20 MHZ
I...
I guess you see that was from 2004 right?
The Max 485 has two enable pins.
#2 /RE
#3 DE
Tie these two pins together and run them to an output on the pic, call it RS485 for an example. To...
There was actual working code in the links I posted above. These are not my sources but the code works.
Mine doesn't look anything like that however the CRC Routine was borrowed from it.
Also in...
Yes, after trying numerous things by using bit logic and then setting the pin directly I still see the same problem.
Each time I set mutiple outputs on PortD my inputs start changing. I noticed...
I have a port which has the first 4 pins as inputs and the second 4 pins as outputs.
Reading the inputs and the outputs is pretty easy as I just masked them such as:
DigIn = (PortD & $F) 'Lower...
I was aggrevated and I should know better than to post when I'm aggrevated. ME Labs has always had excellent support and I've had them email me bug fixes same day for bugs I found.
I was a little...
Thanks Darryl for the Instant Interupts!!!
Melanie,
I agree with you and like I said, for the most part I've just built what I needed. The datasheets can be pretty confusing and you can't expect everyone in the world to understand them,...
No, Modbus ASCII LRC Calculation
Thanks, this helped a lot.
The offending code, which works fine is.....
LRC = 256 - LRC
LRC is defined as a byte, but I have to subtract LRC from $100
I guess I could say....
LRC = $FF -...