Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Mon Apr 14, 2008 6:38 am
I tried your code above on v3.249 and didn't get an error message. The only way to reproduce your error was by using a wrong device include file. For example when I include the file 18F458.h then I get an error message on the PortG because that port is missing on the PIC18F458.
Next time please post a complete program showing your problem. The program should be not larger than 15 lines and should include the #fuses etc., so we can copy/paste the code in our compiler.
TL
Joined: 15 Sep 2003 Posts: 75
Posted: Mon Apr 14, 2008 7:41 am
Hi Ckielstra,
Many thanks for your good suggestion. Actually, the problem was due to E, F, G defines of ASCII chars in a header file which conflicted the port letters for fast_io(). When I renamed them, it compiled correctly.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum