Search found 7 matches

by cleverchip
Thu Oct 18, 2007 12:55 pm
Forum: Flowcode V2 & V3
Topic: Interrupts - various issues
Replies: 3
Views: 3418

Thank you Steve... that's very helpful. Reading from Port B (from within the interrupt service macro) does indeed clear the mismatch condition. I suppose this raises an interesting question (which you folks will no doubt have thought about in designing Flowcode) and that is, when should a relatively...
by cleverchip
Wed Oct 17, 2007 11:23 pm
Forum: Flowcode V2 & V3
Topic: Interrupts - various issues
Replies: 3
Views: 3418

Interrupts - various issues

I'm experimenting with 'RB Port Change' interrupts, using a Formula Flowcode Buggy. Some of the results are not quite what I expect! Problem 1: I have very simple program, which enables the 'RB Port Change' interrupt, with a simple interrupt service macro. My main program then simply executes a hold...
by cleverchip
Wed Sep 12, 2007 5:54 pm
Forum: Flowcode V2 & V3
Topic: Possible inconsistency in DECISION handling?
Replies: 2
Views: 2868

Possible inconsistency in DECISION handling?

Here's the scenario: I have a byte variable, 'my_variable', which may have a particular bit set. If I have a DECISION block which contains the following statement: IF... my_variable AND 1 = 0 the simulator does the predictable thing, and performs a bitwise AND. If the appropriate bit (least signific...
by cleverchip
Fri Sep 07, 2007 4:33 pm
Forum: Flowcode V2 & V3
Topic: Compiler reports 'unknown identifier' using PWM
Replies: 4
Views: 3537

Thanks, Steve - I'll mail the files to you. However, I think I have made some progress in terms of the symptoms - the errors are present whenever I try to use the PWM component in a flowcode program that also contains the Formula Flowcode component. Is there some conflict here? (I was simply trying ...
by cleverchip
Fri Sep 07, 2007 10:56 am
Forum: Flowcode V2 & V3
Topic: Compiler reports 'unknown identifier' using PWM
Replies: 4
Views: 3537

Compiler reports 'unknown identifier' using PWM

When compiling to hex I receive an error from the compiler, 'unknown identifier' using PWM component. The identifiers which it thinks are undefined (I presume) are the PWM variables (Enable, ChangePeriod, etc). Have I missed a step in using the PWM component? ie, was I supposed to copy some code int...
by cleverchip
Wed Sep 05, 2007 5:59 pm
Forum: Formula Flowcode
Topic: Buggy only reverses
Replies: 11
Views: 14081

Thanks, Benj.

I'm sure I'm not the first to assume that the wires emerge from the chassis adjacent to the wheel (whose motor) they are connected to!

Cheers!
by cleverchip
Wed Sep 05, 2007 5:14 pm
Forum: Formula Flowcode
Topic: Buggy only reverses
Replies: 11
Views: 14081

Hmm... the instructions are a little confusing though. The designation 'left' and 'right' would normally be taken as viewed 'looking forwards' (ie in the direction the buggy moves forwards). This would make each motor connect to the circuit board without crossing over the chassis. I made precisely t...