Are these PICs on the same PCB or on each end of a long cable?
Cable (well PCB traces too of course) has capacitance, with a 10k resistor you're forming quite an RC-filter (relatively speaking)...
Yes it could be a problem. Try with no resistor and see if the problem is in your code or just the lack of power on the link. Then try max 1K resistor.
But without more details like, type of...
Hi, I have two devices communicating with SERIN2/SEROUT2. Device A, a PIC18F4550, sends data to device B a PIC16F19197. I'm receiving the data at device B using SERIN2, but like 1 out of 5 times I...
rsocor01 Today, 01:21Hi Troy,
You were right on in assuming that I misunderstood how the Qualifier works. With your help, now I do!
I've modified the program accordingly and now it works perfectly!
Thank you...
Maybe all you want then is just:
Serin PrgIn,1,5000,MainLoop, ProgIDRx
?
Troy
you misunderstand how the qualifier works
this can not work as you set the qualifier to 0x0d as per my example , ProgIDRx will always be 0x0d
untill you change it , serin will never change it
...
Hi Richard,
Thank you and appreciate for your input.
The function of this program is to allow the reprogramming of the Receiver's ID.
The program is structured to provide a five second period...
works perfectly for me if you don't try to use qualifier before you actually set it to a meaningful value as rocket troy indicated
#CONFIG; set CONFIG1 for internal oscillator, watchdog on,...
Re: SERIN2 Receiving Wrong Data
Another thing that could be causing problems is that SEROUT2/SERIN2 are software bit-banged (no hdw UART involved),
tumbleweed Today, 13:34so device B must be sitting waiting at the SERIN2 for the first start bit before...