Hi All,
I'm hoping someone can shed some light on a problem I'm having.
I have 2 projects (one PIC18F4525 based and one PIC16F913 based). I have connected the two projects together via port b.3 on the 16F and port e.2 on the 18F. I have a 10K pullup res on this line. I've disabled the AD on the 18F and made porte digital IO.
Here is the serial out code on the 16F:
serout2 so, T2400,["INIT", "1111", "2222", "333", "444"]
and here is the serial in code on the 18F:
Serin2 Si,T2400,[WAIT ("INIT"), str RHET \4, str LHET \4, str RHspd \3, str LHspd \3]
The variables are defined as byte arrays with dimensions of 4,4,3 and 3 respectively.
Now the problem is the code will not go past the "wait" in the serin2 line on the 18F. I've measured the input to the 18F's e.2 pin and there is activity on that pin as expected.
I assume I've not set a config bit somewhere but I've read through the datasheet many times and I can't see what I'm missing.
Any ideas?
The 18F is working as it displays data on some LED's so I know everything is OK there.
I'd appreciate it if anyone can shed some light,
Thanks
Thirsty
Bookmarks