Arduino C code headache!!

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
407charles
Posts: 122
Joined: Thu Jun 26, 2014 12:01 pm
Has thanked: 41 times
Been thanked: 19 times
Contact:

Arduino C code headache!!

Post 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.
Attachments
PIC capture freq.fcfx
This is the original program
(7.26 KiB) Downloaded 191 times
AVR capture frequency.fcfx
This is my program
(7.27 KiB) Downloaded 201 times

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: Arduino C code headache!!

Post 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 ;-)
Attachments
AVR capture frequency.fcfx
(7.41 KiB) Downloaded 185 times
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Post Reply