PDA

View Full Version : pic16f505 serin2 not supported?



cluster
- 17th November 2011, 09:54
hi
can any one tell me if pic16f505 supports serin2 command? i tried the below code but it gives me error, "SERIN2DPIN?T not found in macro file"


define OSC 4
include "modedefs.bas"
temp var byte

main:
SERIN2 PORTC.1, 84, [temp]
goto main


thank you

mackrackit
- 17th November 2011, 12:55
I think this is a problem for MeLabs support.

Darrel Taylor
- 17th November 2011, 19:54
In the PBP manual under SERIN2, you'll find this note.

SERIN2 is not supported on 12-bit core PIC MCUs due to RAM and stack constraints.
The PIC16F505 has a 12-bit core.

mackrackit
- 17th November 2011, 20:14
DOH!!!!!!

I forgot about that. :(