Search found 27 matches

by davet
Mon Feb 13, 2017 12:10 pm
Forum: General Programming
Topic: declaring a "bit" to use as a flag in flowcode 5
Replies: 4
Views: 4837

Re: declaring a "bit" to use as a flag in flowcode 5

Thanks for the quick reply Benj!
Thanks for that solution, makes sense!
Just being pedantic here, why is "bit" not recognised by the complier?
Cheers

Dave
by davet
Sun Feb 12, 2017 10:36 pm
Forum: General Programming
Topic: declaring a "bit" to use as a flag in flowcode 5
Replies: 4
Views: 4837

declaring a "bit" to use as a flag in flowcode 5

Hi all! I am trying to set up some bits as flags (in "C" ), such as: In the supplementary code window. bit myflag; but boostc does not seem to recognise "bit" i.e. it does not highlight in blue. it states in the boostc manual for example "bit b; //variable will be placed by ...
by davet
Thu Nov 15, 2012 9:08 pm
Forum: Flowcode V5
Topic: USB connection failed
Replies: 3
Views: 2618

USB connection failed

Hi all, have an eb006 board. I switched my computer off, turned it on again to do some work and the usb connection has failed. In the device manager it says "unknown device" will not recognise the eb006.
Can anyone help?
Thanks

Dave
by davet
Tue Jul 10, 2012 4:18 pm
Forum: Flowcode V5
Topic: placing data into program memory
Replies: 2
Views: 2434

Re: placing data into program memory

Thanks Dazz, but I need to put the array into the prog memory not external memory.
BW

Dave
by davet
Tue Jul 10, 2012 2:05 pm
Forum: General Programming
Topic: placing data into program memory
Replies: 1
Views: 1770

placing data into program memory

Hi all! I want to place some data in program memory. At the moment I am using: signed char states[]={,,,,,,,,} which uses ram. How can I put this in program memory? I have tried by writing "rom signed char states[]={,,,,,,,,} but this does not work! Flowcode 5 uses boost c. Can anyone help? Tha...
by davet
Tue Jul 10, 2012 12:08 pm
Forum: Flowcode V5
Topic: placing data into program memory
Replies: 2
Views: 2434

placing data into program memory

Hi all!

I want to place some data in program memory. At the moment I am using:

signed char states[]={,,,,,,,,} which uses ram.

How can I put this in program memory? I have tried by writing "rom signed char states[]={,,,,,,,,} but this does not work!

Can anyone help?

Dave
by davet
Tue Jul 03, 2012 11:25 am
Forum: Flowcode V5
Topic: Flowcode crashes on save
Replies: 1
Views: 2128

Flowcode crashes on save

Have had this happen 4 times now.
On saving a file the program crashes, hourglass appears and does not go away, tried control/alt/delete usually lets me terminate but this time just a grey box!!
What's going on?
by davet
Wed Jun 27, 2012 9:24 am
Forum: Flowcode V5
Topic: Multiple interrupts
Replies: 3
Views: 3241

Re: Multiple interrupts

Thanks Benj,
Yes I understand the usart but not quite sure about this bit, excuse the pun!

(1<<RCIF)? as in if( pir1 &(1<<RCIF))

Why not if( pir1.RCIF)

Sorry if I am not making myself clear!
BW

Dave
by davet
Tue Jun 26, 2012 4:55 pm
Forum: Flowcode V5
Topic: Multiple interrupts
Replies: 3
Views: 3241

Multiple interrupts

Hi, can someone please give me some guidance on handling multiple interrupts. I have a single interrupt working fine.
Could you also tell me what this 'if' statement is doing and its 'logic':

if(pir1 & (1<<RCIF))

Cheers!

Dave
by davet
Fri Jun 22, 2012 2:54 pm
Forum: Flowcode V5
Topic: flowcode5 hung
Replies: 4
Views: 3316

Re: flowcode5 hung

Hi thanks for the replies!
I re-named the back up file and took the offending corrupted .fcf out, it now works OK! Many thanks John - I thought my past 2 days work had gone down the spout!! Hope this is not a regular occurance!
BW

Dave
by davet
Fri Jun 22, 2012 12:17 pm
Forum: Flowcode V5
Topic: flowcode5 hung
Replies: 4
Views: 3316

flowcode5 hung

Hi all, clicked to save my file and Flowcode5 just hung, would not do anything hourglass symbol not ending, so I ended the task. Re-opened Flowcode and tried to open the file but it comes up with: " an unknown error occured while accessing C:flowcode files\dmxcontrol.fcf" What do I do now?...
by davet
Fri Jun 15, 2012 6:55 pm
Forum: Flowcode V5
Topic: importing C code
Replies: 16
Views: 8511

Re: importing C code

Hi Benj

In my ignorance I did not reprogram the chip with the ICD checked!
Cheers!
by davet
Fri Jun 15, 2012 6:50 pm
Forum: General Programming
Topic: pre-processor directives
Replies: 4
Views: 3456

Re: pre-processor directives

Brilliant-cheers!
by davet
Fri Jun 15, 2012 6:47 pm
Forum: General Programming
Topic: accessing individual bits in sfr's
Replies: 2
Views: 2262

Re: accessing individual bits in sfr's

Thanks for that!
BW
by davet
Fri Jun 15, 2012 3:39 pm
Forum: General Programming
Topic: accessing individual bits in sfr's
Replies: 2
Views: 2262

accessing individual bits in sfr's

Hi

I want to access the individual bits in the rcsta register by their names ie cren, and not by rcsta.4.
so I can say set bit/ clear bit "cren" by name.
Hope someone can help me with this as I have rephrased an earlier post to get a response.
Thanks

Dave
by davet
Fri Jun 15, 2012 2:35 pm
Forum: Flowcode V5
Topic: importing C code
Replies: 16
Views: 8511

Re: importing C code

Sorted! Thanks for all help!
by davet
Fri Jun 15, 2012 12:06 pm
Forum: General Programming
Topic: pre-processor directives
Replies: 4
Views: 3456

Re: pre-processor directives

Thanks Benj, Is there a list somewhere of the pic's special function registers and their names which are of the right syntax for the C compiler to identify, the obvious ones are trisa and timer0 but what about the spbrg are they used as from the pic data sheets if so are they all lowercase. Thanks D...
by davet
Fri Jun 15, 2012 10:57 am
Forum: Flowcode V5
Topic: importing C code
Replies: 16
Views: 8511

Re: importing C code

Hi,

Iam using version 8.
When I am in ICD mode and try to step through the prog. up comes "ICD has failed to communicate with target".

BW
by davet
Fri Jun 15, 2012 9:55 am
Forum: Flowcode V5
Topic: importing C code
Replies: 16
Views: 8511

Re: importing C code

Hi David,
I am using the EB006 with the flowkit plugged into port b. Does port b have to be set as an input so Flowkit can communicate with the EB006?
Sorry for the dumb questions, I have not done any programming or electronics for 4 years.
BW

Dave
by davet
Thu Jun 14, 2012 4:12 pm
Forum: General Programming
Topic: pre-processor directives
Replies: 4
Views: 3456

pre-processor directives

Hi

I want to be able to set/ clear bits in say timer0, in C, within Flowcode 5. How do I do this in boost C? I have in the past been using the CCS compiler and in that you would use a pre-processor directive:

#byte timer_0 = 0x01

Thanks

Dave
by davet
Thu Jun 14, 2012 12:31 pm
Forum: Flowcode V5
Topic: importing C code
Replies: 16
Views: 8511

Re: importing C code

Yes my PDF software must be old, printed it out on another machine and OK!! I am having difficulty now getting flowkit to work... 1/ when I try and program the chip with Flowkit inline and the slider switch set to "Prog" it will not program because it says "USB cable not connected&quo...
by davet
Thu Jun 14, 2012 10:04 am
Forum: Flowcode V5
Topic: importing C code
Replies: 16
Views: 8511

Re: importing C code

Thanks Martin, found it tried to print it out for easy reference but no luck, same problem as above - obviously protected in some way from making hard copies!!!!!!!
by davet
Wed Jun 13, 2012 4:23 pm
Forum: Flowcode V5
Topic: importing C code
Replies: 16
Views: 8511

Re: importing C code

Hi, have downloaded the manual from website but it does not read correctly Jpeg images of screen shots are ok but any text appears as a series of blocks and jumbled letters. Downloaded the free Boost C compiler went to "Help" tried to open the manuals there and same thing!!!!!!!!!!! Sent e...
by davet
Wed Jun 13, 2012 9:50 am
Forum: Flowcode V5
Topic: importing C code
Replies: 16
Views: 8511

Re: importing C code

Thanks John!