Page 1 of 1

Arduino C code headache!!

Posted: Fri Aug 28, 2015 5:56 pm
by 407charles
I'm trying to adapt a program for capture a frequency and display the value. This is an original project from the book "30 PIC projects using Flowcode 6" for PIC16F877A. When I tried to convert this to arduino (atmega 328) it does not compile to chip, it just return an error code 1. According with the error box this is a problem in the C code box. Can somebody help me with this problem?? I will appreciate all the help provided. Thanks a lot guys.

Re: Arduino C code headache!!

Posted: Fri Aug 28, 2015 7:38 pm
by kersing
You need to use capitals for the register names. Also, it seems the compiler does not like the register.bitno notation. Attached a version that does compiler, I'm not making any claims about it working ;-)