Search found 33 matches

by markus747
Thu Oct 03, 2013 11:35 pm
Forum: Flowcode V5
Topic: Error: Settings in '__FGS.sec' are not valid for target 33fj
Replies: 1
Views: 2482

Error: Settings in '__FGS.sec' are not valid for target 33fj

Writing first program for dspic33FJ32MC202 and can't get it to compile. SSDT_001.fcf_pic16 did some research on this fgs.SEC but still don't know what to do, it is mentioned in header file but don't have a clue. c:\program files (x86)\flowcode(dspic)\v5\tools\c_tools\bin\bin\..\bin/pic30-coff-ld.exe...
by markus747
Fri May 17, 2013 10:06 pm
Forum: Flowcode V5
Topic: Can't get flowcode to accept license
Replies: 2
Views: 2252

Can't get flowcode to accept license

I have tried
"First Last
xxxxxx-xxxxxxx-xxxxxxx-xxxxxxx-xxxxxx"
with and without dashes or even spaces
just the code
tried under CD code and the other padlock
what is the secret?
by markus747
Tue Feb 26, 2013 9:06 pm
Forum: Flowcode V5
Topic: Can't get RS232 to simulate or work in hardware
Replies: 5
Views: 4254

Re: Can't get RS232 to simulate or work in hardware

Ok now I got it to work with VNET and it simulates! :) :) but doesn't work in hardware! I had to put macro call in main loop instead of interrupt driven (takes forever to simulate with TMR0 divider set to 256) But even when compiled same as simulation still no response from serial data.(From Hardware)
by markus747
Tue Feb 26, 2013 6:36 pm
Forum: Flowcode V5
Topic: Can't get RS232 to simulate or work in hardware
Replies: 5
Views: 4254

Re: Can't get RS232 to simulate or work in hardware

not working yet
also changed interrupt to be slower but still no RS232 data being received into variables
by markus747
Tue Feb 26, 2013 4:53 am
Forum: Flowcode V5
Topic: Can't get RS232 to simulate or work in hardware
Replies: 5
Views: 4254

Can't get RS232 to simulate or work in hardware

The macro which reads rs-232 is set to interrupt 244 times a second to read 1 byte each pass I put bytes 170,12,125,either in same file or using Vnet to send data and it never gets read in from rs232. Can't figure out how to get reliable data at 9600 baud I assume flowcode is storing more than the 2...
by markus747
Thu Feb 21, 2013 1:39 am
Forum: Flowcode V5 Issues
Topic: PIC18F25k22 & RXINT Problem
Replies: 5
Views: 5335

Re: PIC18F25k22 & RXINT Problem

I was not able to open file 18F25k22 File extension FCD?
Is FCD a valid file type?
MY pic version 5.5 only has .FCF
by markus747
Thu Feb 14, 2013 6:26 pm
Forum: Electronics products
Topic: ICD Connections same as pickit2? Not communicating
Replies: 0
Views: 4510

ICD Connections same as pickit2? Not communicating

When I try to simulate with debugger enabled I get message "Could not communicate with ICD" J2 on ICD is labeled the same as the connections for the PICKIT2 Is this correct? So i plugged the pickit2 into the USB out jack just need to move cable from pickit2 to ICD and change switch position back and...
by markus747
Wed Feb 13, 2013 7:14 pm
Forum: Flowcode V5
Topic: Disable interrupt while interrupt is running?
Replies: 2
Views: 2321

Disable interrupt while interrupt is running?

I have been trying to prevent stack corruption and wonder if I need to disable interrupt for ( RB0 interrupt on change ) and if so how do I clear bit 1 in intcon register (10Bh) GIE
by markus747
Thu Feb 07, 2013 6:46 pm
Forum: Flowcode V5
Topic: Some times program misbehaves not sure if using variables co
Replies: 2
Views: 2074

Some times program misbehaves not sure if using variables co

Recently wrote need program to control reel using 16f887 (upgrade path from 16f877a) but though Ithought I had it perfected, sometimes on start up it runs motor without being able to control it from knobs and switches. wanted to see if someone would look at my code and see if I am doing any fundamen...
by markus747
Sun Nov 11, 2012 12:29 am
Forum: C and ASM Programming
Topic: Can 4 pins be added binary to decimal
Replies: 2
Views: 6078

Can 4 pins be added binary to decimal

I need to add ( RB0 (1) + RB1 (2) +RB2 (4) + RD7 (8) ) to come up the binary weighted value like is it possible to use pin names in a C# statement like: (RB0 + (2*RB1)+(4*RB2) + (8*RD7) ) I'm trying to change some programs from Basic to C# But I can't find any where on forum where people are referri...
by markus747
Fri Nov 09, 2012 7:32 pm
Forum: C and ASM Programming
Topic: How do I sum 4 bits to variable
Replies: 5
Views: 9233

Re: How do I sum 4 bits to variable

This one is even better.
by markus747
Fri Nov 09, 2012 7:24 pm
Forum: C and ASM Programming
Topic: How do I sum 4 bits to variable
Replies: 5
Views: 9233

Re: How do I sum 4 bits to variable

Still don't get it.
Please look at what I have.
it still doesn't seem to see sum of b.0 b.1 b.2 d.7
by markus747
Fri Nov 09, 2012 6:26 pm
Forum: C and ASM Programming
Topic: How do I sum 4 bits to variable
Replies: 5
Views: 9233

How do I sum 4 bits to variable

I am using tone decoder chip and need sum of D1-D4
I know it should be something like D1+(D2*2)+(D3*4)+(D4*8)
I need to store this to variable to see 1 of 16 decoded outputs
I am new to C programming and don't know sytax
by markus747
Tue Aug 21, 2012 6:46 pm
Forum: Flowcode V5 Free Edition
Topic: Using pickit2 as programmer was working, not working Now
Replies: 4
Views: 4161

Re: Using pickit2 as programmer was working, not working Now

Just discovered that there is another error listed :
C:\Program Files\Flowcode\V5\Tools\PICkit2\pk2cmd.exe -BC:\Program Files\Matrix Multimedia\Flowcode V5\Tools\PICkit2\ -PPIC16F877A -FActive_Low_18.2_serial .hex -M -A5 -R

PK2DeviceFile.dat device file not found.
by markus747
Tue Aug 21, 2012 6:25 pm
Forum: Flowcode V5 Free Edition
Topic: Using pickit2 as programmer was working, not working Now
Replies: 4
Views: 4161

Using pickit2 as programmer was working, not working Now

-BC:\Program Files\Matrix Multimedia\Flowcode V5\Tools\PICkit2\ -PPIC%p -F%f.hex -M This line baffles me, why is there a "-B in front of C:\Program files\... The line above is in the Parameters field. Under location I have this line: C:\Program Files\Flowcode\V5\Tools\PICkit2\pk2cmd.exe Which looks ...
by markus747
Tue Aug 21, 2012 6:17 pm
Forum: Flowcode V5 Free Edition
Topic: Can't post in Flowcode V5, only Flowcode free Edition
Replies: 1
Views: 2303

Can't post in Flowcode V5, only Flowcode free Edition

I believe I registered my license with the forum, but not sure how or where
by markus747
Fri Aug 17, 2012 8:15 pm
Forum: Flowcode V5 Free Edition
Topic: Using 3 Analog Channels on 16F877A
Replies: 4
Views: 3959

Re: USING 3 ANALOG CHANNELS ON 16F877A

So it looks like it must be added to the panel to define the connections. Is that correct I haven't seen connections anywhere else.
I added another ANALOG to panel then it appeared in list
by markus747
Fri Aug 17, 2012 2:00 am
Forum: Flowcode V5 Free Edition
Topic: Using 3 Analog Channels on 16F877A
Replies: 4
Views: 3959

Using 3 Analog Channels on 16F877A

When adding component macro, I don't see how to use 3 analog channels, There are only ADC(0) and ADC(1) to choose from?
by markus747
Tue Aug 07, 2012 1:48 am
Forum: Flowcode V5 Free Edition
Topic: How do I read rs232 and get correct byte into variable?
Replies: 9
Views: 7976

Re: How do I read rs232 and get correct byte into variable?

I am using a ADM232LJN (max232 also makes similar chip)16 Pin dip chip to convert levels for pin 25 and 26 for either pic16f877 or pic16f887 and it seems to receive data good with 1 stop bit even seems to work with 2 stop bits but maybe some data is being tossed. Another note my programming partner ...
by markus747
Mon Aug 06, 2012 11:21 pm
Forum: Flowcode V5 Free Edition
Topic: How do I read rs232 and get correct byte into variable?
Replies: 9
Views: 7976

Re: How do I read rs232 and get correct byte into variable?

Enamul wrote:
markus747 wrote:I am using RealTerm to send data to my pic and it seems a start bit is always used can I enable start Bit in the RS232 component macro?
it's automatically done by pic usart. What do you mean by real term? did you mean real time?
even if you use 2 stop bits?
by markus747
Mon Aug 06, 2012 10:36 pm
Forum: Flowcode V5 Free Edition
Topic: How do I read rs232 and get correct byte into variable?
Replies: 9
Views: 7976

Re: How do I read rs232 and get correct byte into variable?

I am using RealTerm to send data to my pic and it seems a start bit is always used can I enable start Bit in the RS232 component macro? it's automatically done by pic usart. What do you mean by real term? did you mean real time? RealRerm is a terminal software I am using to send a single byte out s...
by markus747
Mon Aug 06, 2012 10:00 pm
Forum: Flowcode V5 Free Edition
Topic: How do I read rs232 and get correct byte into variable?
Replies: 9
Views: 7976

Re: How do I read rs232 and get correct byte into variable?

I am using RealTerm to send data to my pic and it seems a start bit is always used can I enable start Bit in the RS232 component macro?
by markus747
Mon Aug 06, 2012 7:08 pm
Forum: Flowcode V5 Free Edition
Topic: How do I read rs232 and get correct byte into variable?
Replies: 9
Views: 7976

How do I read rs232 and get correct byte into variable?

Question 1 Let's say I want to send 5 bytes of data to control my cable reel. How do i ensure that i put correct byte into each variable? Maybe first byte is always value 120? Question 2 Also want to use a bit to tell on or off,and a bit to tell direction,and a bit to tell high gear,and a bit to tel...
by markus747
Mon Aug 06, 2012 6:36 pm
Forum: Freelance Embedded Engineers
Topic: Who can help me with formula? i give money!
Replies: 2
Views: 11892

Re: Who can help me with formula? i give money!

Do you Have a schematic of car are building? Are there sensors to detect walls, barriers?
what kind of motors are you using?
by markus747
Thu Aug 02, 2012 11:00 pm
Forum: Flowcode V5 Free Edition
Topic: Active low switch and storing a high bit variable
Replies: 20
Views: 12667

Re: Active low switch and storing a high bit variable

Hi, Have you tried the hex I have posted last time..it doesn't have adc...there might be an issue in adc..as I have swapped those in my program. I have removed the adc in last one..now I have added it in right station..so it should work..Can you please let me know is that works or not? Thanks, Enam...