Search found 130 matches

by Desdewit
Fri Sep 28, 2012 6:37 am
Forum: General Programming
Topic: Fletchers Checksum
Replies: 8
Views: 5334

Re: Fletchers Checksum

Hi JonnyW
Is what you require only ever going to be from a 4 byte value?
No the bytes might be an array of up to 8 or more 8bit bytes.
Your second code block look like it might work, I'll play around with it to see if I can get it to work.
by Desdewit
Thu Sep 27, 2012 6:23 pm
Forum: General Programming
Topic: Fletchers Checksum
Replies: 8
Views: 5334

Re: Fletchers Checksum

Thanks for the help. In the meantime I will tri and get some results on my side.
by Desdewit
Thu Sep 27, 2012 5:52 pm
Forum: General Programming
Topic: Fletchers Checksum
Replies: 8
Views: 5334

Re: Fletchers Checksum

Enamul

If I understand it correctly this will work.
by Desdewit
Thu Sep 27, 2012 5:37 pm
Forum: General Programming
Topic: Fletchers Checksum
Replies: 8
Views: 5334

Re: Fletchers Checksum

Hi Enamul

I would appreciate a flowcode version. I saw the c code in Wikipedia but cannot make out heads or tales about c code :oops:
For now I can only program in flowcode & assembler "Only starting to learn C"
by Desdewit
Thu Sep 27, 2012 2:53 pm
Forum: General Programming
Topic: Fletchers Checksum
Replies: 8
Views: 5334

Fletchers Checksum

Hi guys

How can you do a 2 byte Fletchers Checksum over a range of say 4 bytes in Flowcode V5 :?:
by Desdewit
Wed Sep 26, 2012 1:06 pm
Forum: Flowcode V5
Topic: Software UART not working
Replies: 7
Views: 4430

Re: Software UART not working

Hi Enamul

How can I make an external interrupt for rx like Ben suggested?
You can improve the receive functionality by using an external interrupt to synchronise the read function with the incoming start bit.
by Desdewit
Fri Sep 21, 2012 5:42 pm
Forum: Flowcode V5
Topic: Software UART not working
Replies: 7
Views: 4430

Re: Software UART not working

Hi Enamul

I’m receiving from one & sending to another weighing Instrument so on the receiving side I'll use RXint & on the TX side I'll use software TX I just hope a 4MHz crystal will be fast enough with a 9600baud.
by Desdewit
Fri Sep 21, 2012 10:48 am
Forum: Flowcode V5
Topic: Software UART not working
Replies: 7
Views: 4430

Re: Software UART not working

Enamul

Thanks for the reply; I only need the software port for sending data so this will work.
Just wasn't so sure about the RXInt.
by Desdewit
Fri Sep 21, 2012 10:08 am
Forum: Flowcode V5
Topic: Software UART not working
Replies: 7
Views: 4430

Software UART not working

Hi Guys On a Pic16f887 if you use RS232 from the hardware Port C6 &7 and it transmit & receive successfully and you change the uart to software and move tx & rx pins to Port C0 & C1 should the program still function normal with RXInt or must I change something else :?: I need 2 x RS232 ports but can...
by Desdewit
Wed Sep 19, 2012 1:19 pm
Forum: Flowcode V5
Topic: Read RS232
Replies: 4
Views: 2903

Re: Read RS232

Hi Enamul

At last I got it to work with RXint.
Thanks for the support. :lol:
by Desdewit
Wed Sep 19, 2012 12:42 pm
Forum: Flowcode V5
Topic: Read RS232
Replies: 4
Views: 2903

Re: Read RS232

Hi Enamul Thanks for the reply, the RXInt is working realy well with one byte at a time but when I receive a string of 14 bytes at once and try to read one byte from the string like Data[4] the lcd display nothing. Sending one character at a time like ascii "A" prints on the lcd but sending "AA" lea...
by Desdewit
Tue Sep 18, 2012 6:18 am
Forum: Flowcode V5
Topic: Read RS232
Replies: 4
Views: 2903

Read RS232

Hi Guys

What would be the best way (Array or String) to read 8 packets of 14 bytes coming in every 10sec via rs232 :?:
I want to keep the data in bytes so some of it can be changed and send back out after a few seconds.
by Desdewit
Thu Jun 07, 2012 1:54 pm
Forum: General Programming
Topic: Pic16f887 with AD7710
Replies: 1
Views: 1845

Pic16f887 with AD7710

Hi guys

Do any of you have some sample code or Ideas on how to control/read an AD7710 ADC with a pic16f887 via flowcode?
Any help would be appreciated. :?
The sample they give on the data sheet doesn't really help.

Thanks
by Desdewit
Thu Mar 22, 2012 8:20 am
Forum: General Programming
Topic: Pic 16F887 ADC Reading Low
Replies: 7
Views: 4204

Re: Pic 16F887 ADC Reading Low

Hi Martin

The voltage at the input pin is 5.00V on the meter and stay the same with all three pic's but the lcd reads 1021 with the 887.
Is it possible for the config bits of the pic to cause this. :?:
by Desdewit
Wed Mar 14, 2012 6:36 pm
Forum: General Programming
Topic: Pic 16F887 ADC Reading Low
Replies: 7
Views: 4204

Pic 16F887 ADC Reading Low

Hi Guys

I'm using a V3 Development board with a pic 16F887 but at full voltage the adc reads only 1021.
I've tested the program with a 16f876 & 16f877 and they both read 1023.
Anyone else having the same problem? :?
by Desdewit
Mon Mar 05, 2012 6:30 am
Forum: General Programming
Topic: Compiling Error in V5
Replies: 4
Views: 3735

Re: Compiling Error in V5

Hi Martin

I deleted the ADC component from all 3 locations including the control panel and it worked after replacing it with the ADC component in V5.
by Desdewit
Sun Mar 04, 2012 5:08 pm
Forum: General Programming
Topic: Compiling Error in V5
Replies: 4
Views: 3735

Re: Compiling Error in V5

Hi Martin

Thanks for the reply
I will test your fix

Thanks for posting this in the V5 section as I am still waiting to be added to the V5 section.
Only installed V5 on Saterday :D
by Desdewit
Sun Mar 04, 2012 10:35 am
Forum: General Programming
Topic: Compiling Error in V5
Replies: 4
Views: 3735

Compiling Error in V5

Hi Guys My program does not want to compile in Flowcode V5 but compiled without errors in flowcode V4. Are there any differences in the C-code of V5? :x This is the errors from V5 VR Weighing Scale V2.5A.c(719:23): error: unknown identifier 'ADCS2' VR Weighing Scale V2.5A.c(719:23): error: invalid o...
by Desdewit
Tue Feb 28, 2012 7:12 pm
Forum: Flowcode V2 & V3
Topic: Convert voltage to Neg kg
Replies: 28
Views: 24004

Re: Convert voltage to Neg kg

Hi Martin At last I completed my project but not without one last problem. I've tested the software with a pic16f877& 876 and it worked without a problem, BUT when I loaded it on the "compatable"16f887 :x " the software only works up to where the A to D should start reading then the pic stops respon...
by Desdewit
Tue Feb 21, 2012 5:41 pm
Forum: Flowcode V2 & V3
Topic: Convert voltage to Neg kg
Replies: 28
Views: 24004

Re: Convert voltage to Neg kg

Hi Martin

I'm storing the calibration values to eeprom so I don't have to re-calibrate the scale every time I switch it on.
Can you please tell me where the zero value are stored so I can save it to eeprom like the span? :D
by Desdewit
Tue Feb 21, 2012 1:00 pm
Forum: Flowcode V2 & V3
Topic: Convert voltage to Neg kg
Replies: 28
Views: 24004

Re: Convert voltage to Neg kg

Hi Martin

Sorry for the inconvenience.
I had an IO error on my side “Idiot Operator", I've loaded the wrong software version. :oops:
The program is working just fine.
At last now I can buy flowcode 5 :D
by Desdewit
Tue Feb 21, 2012 11:33 am
Forum: Flowcode V2 & V3
Topic: Convert voltage to Neg kg
Replies: 28
Views: 24004

Re: Convert voltage to Neg kg

Hi Martin

Are there any way to stop the scale from subtracting the zero from the full load?
If I set my zero at 10% and my 500kg at 90% the scale shows 445kg instead of 500kg because of the zero subtraction.
by Desdewit
Mon Feb 20, 2012 7:22 pm
Forum: Flowcode V2 & V3
Topic: Convert voltage to Neg kg
Replies: 28
Views: 24004

Re: Convert voltage to Neg kg

Hi Martin I've uploaded a sample of the scale I'm trying to build. This is a short description of how the scale should work. 1: Press start and then calibrate button within 2 sec from start up the scale will go into calibration mode. 2: Set ADC value were the instrument should read 0kg. Say "10%" an...
by Desdewit
Sun Feb 19, 2012 12:15 pm
Forum: Flowcode V2 & V3
Topic: Convert voltage to Neg kg
Replies: 28
Views: 24004

Re: Convert voltage to Neg kg

Hi Martin
If you state 0 ADC = -xx.xxKg
and 1023 = xx.xxKg then I could create a new formula for you to do a direct conversion
My 0 ADC = -25kg
and 1023 = 525kg

The scale will be going up in 25kg increments up to 500kg stopping at each 25kg weight to take a reading from a unit under test.
by Desdewit
Sat Feb 18, 2012 1:28 pm
Forum: Flowcode V2 & V3
Topic: Convert voltage to Neg kg
Replies: 28
Views: 24004

Re: Convert voltage to Neg kg

Hi Kersing Thanks to everybody that helped me so far with my project At the moment I'm using an AD620AN amplifier to amplify 0 to 30mV signal from a load cell to 0-5V & two 10k pots on Vref + & - to adjust zero & span. The reason I asked was to try and set the zero & span with software instead of po...