You have my sympathy!
Friends who tell you that ' I bet this would not take you long' or ' I have had an idea'.......nightmare....
Best of luck,
John
Search found 23 matches
- Fri Jan 06, 2023 10:02 am
- Forum: Flowcode V6
- Topic: Timer on PIC16F1847
- Replies: 13
- Views: 12784
- Wed Jan 04, 2023 8:17 pm
- Forum: Flowcode V6
- Topic: Timer on PIC16F1847
- Replies: 13
- Views: 12784
Re: Timer on PIC16F1847
Hmm I might hold off for version 10, Its worth having a look at the Victron web site and their white papers on solar panels. The general thoughts amongst all installers is to have the panels at an angle for optimum output. In saying that I have done mine flat mounted on 45x45 aluminium extrusion and...
- Wed Jan 04, 2023 7:01 pm
- Forum: Flowcode V6
- Topic: Timer on PIC16F1847
- Replies: 13
- Views: 12784
Re: Timer on PIC16F1847
Solved!! its was your comment about upper case being used in Flowcode 9, arggh stupid error. :D So I changed all references that I had done in upper case for lower and away it went! well pleased thanks. Attached final code but as you say this forum is probably a bit quieter now. Must admit that vers...
- Wed Jan 04, 2023 10:25 am
- Forum: Flowcode V6
- Topic: Timer on PIC16F1847
- Replies: 13
- Views: 12784
Re: Timer on PIC16F1847
Yes my hardware design (pic attached) has incorporated the facility for both open and closed limit switches. Its unlikly the motor will be running at 9000 RPM probably closer to around 200-400 odd due to the load and being high torque. The hall effect feedback would be from a shaft encoder of some s...
- Tue Jan 03, 2023 9:39 pm
- Forum: Flowcode V6
- Topic: Timer on PIC16F1847
- Replies: 13
- Views: 12784
Re: Timer on PIC16F1847
Unfortunatly the Ford controller does not allow manual driving of the step so it was analysed whilst in auto depoly/retract as per the attachments. Following this it was removed and the body control files for the minibus changed to remove the powered step feature. Because the OEM controller was CAN ...
- Mon Jan 02, 2023 5:45 pm
- Forum: Flowcode V6
- Topic: Timer on PIC16F1847
- Replies: 13
- Views: 12784
Re: Timer on PIC16F1847
Thanks for infomation and can see now result of using == which in my case is pointless. This piece of code is the last part that I need to complete the controller I have built to replace the powered step on a Ford Transit mk8 minibus. The minibus is a camper conversion I have been working on/off ove...
- Mon Jan 02, 2023 11:57 am
- Forum: Flowcode V6
- Topic: Timer on PIC16F1847
- Replies: 13
- Views: 12784
Re: Timer on PIC16F1847
Also checked the pic.c file for the 16F1847, attached in case I had the incorrect description for TMR0 etc but seemed ok?
- Mon Jan 02, 2023 11:25 am
- Forum: Flowcode V6
- Topic: Timer on PIC16F1847
- Replies: 13
- Views: 12784
Timer on PIC16F1847
Could do with some guidance, I am trying to use the timer on a PIC16F1847 but having no luck. Attached is the modified code which was from an example posted on the forum a while back but for a different processor. Checked the timer settings on the data sheet and as far as I can see I have set the co...
- Wed Feb 04, 2015 6:46 pm
- Forum: Flowcode V6
- Topic: Using Labview to send data to PIc Micro
- Replies: 0
- Views: 2131
Using Labview to send data to PIc Micro
Using Labview to read the data being sent from Pic 16F877, 5 Analogue channels and 18 Digital which all work fine. However I cannot get the LCD display on 'Development Board Ver3' to display the data sent from Labview. Labview program is sending the data as a string and the Flowcode program is set t...
- Sat Jan 31, 2015 10:55 pm
- Forum: Freelance Embedded Engineers
- Topic: Serial read and write data
- Replies: 0
- Views: 9983
Serial read and write data
Currently working on an existing design that needs updating to offer serial communication for accessing its data and also controling its output. At present this is done by 0-5V analogue DAQ. I have created some Flowcode files to read the 5 analogue channels and send then to PC running our Labview op...
- Tue Apr 23, 2013 10:24 pm
- Forum: General Programming
- Topic: PWM on 16F877A
- Replies: 3
- Views: 2945
Re: PWM on 16F877A
Thanks Martin, life will be easier tomorrow..... Sorry for post in the wrong area and will use link next time. Noticed that you are looking for commercial applications of Flowcode so will send you details of final project when complete because its for commercial use. Part of an auto-start system for...
- Tue Apr 23, 2013 9:15 pm
- Forum: General Programming
- Topic: PWM on 16F877A
- Replies: 3
- Views: 2945
Re: PWM on 16F877A
Sorry forgot to mention that the test code is only the 'main' and 'declared variables b0 and b1. The rest is redundant at the moment.
- Tue Apr 23, 2013 9:11 pm
- Forum: General Programming
- Topic: PWM on 16F877A
- Replies: 3
- Views: 2945
PWM on 16F877A
Using a 16F877A micro in a project and require the 2 PWM outputs on RC1 and RC2. I have set the ports up as per attached test file but can only get an output on RC2. I have tried changing the duty cycle so I could see which one was going to RC2 but all that did was shift the duty as the program exec...
- Wed May 02, 2012 8:57 pm
- Forum: General Programming
- Topic: Error Hex File program memory is outside selected chip
- Replies: 7
- Views: 5310
Re: Error Hex File program memory is outside selected chip
Hi Martin Thanks for info. I have had a look at the links given today and will have a go with the 1847 again on the weekend. In the meantime I went back to using the PIC16F88 and reduced code size by not using the floating point maths for voltage interpretation of ADC. Small error in voltage reading...
- Tue May 01, 2012 11:20 pm
- Forum: General Programming
- Topic: Error Hex File program memory is outside selected chip
- Replies: 7
- Views: 5310
Re: Error Hex File program memory is outside selected chip
Hi Martin, One other thing I forgot to mention is that I had a look at the data sheet earlier on for 1847 and it headlines it as 8K words but when describing its memory locations avaiable for data it lists it as 128 x 32 which to my maths gives 4096 .......? I did reduce my code to about 2800 odd an...
- Tue May 01, 2012 10:47 pm
- Forum: General Programming
- Topic: Error Hex File program memory is outside selected chip
- Replies: 7
- Views: 5310
Re: Error Hex File program memory is outside selected chip
Hi Martin
Thanks for link to PPP file which I have just swapped for existing file as per instructions. The only problem is the PIC16F1847 is no longer listed in the advanced config screen?
Cheers
John
Thanks for link to PPP file which I have just swapped for existing file as per instructions. The only problem is the PIC16F1847 is no longer listed in the advanced config screen?
Cheers
John
- Tue May 01, 2012 11:46 am
- Forum: General Programming
- Topic: Error Hex File program memory is outside selected chip
- Replies: 7
- Views: 5310
Error Hex File program memory is outside selected chip
This error occurs when I compile code to chip "Hex file program memory is outside selected chip memory range". Found an earlier posting a while back with similar problem and Ben gave solution, which I have tried but it does not work . Also the chip I am using is PIC16F1847 which according to Microch...
- Fri Apr 27, 2012 10:10 pm
- Forum: General Programming
- Topic: LUT for 10bit ADC??
- Replies: 12
- Views: 8533
Re: LUT for 10bit ADC??
I 've still got my Z80 and 8086 assembler programming manuals, no idea why but it makes me 'feel safe'! Unfortunatly I never used C in anger and only picked bits and bobs up as I went along. The uni that I went to did my foundation course using Pascal and then at some later point in the degree our c...
- Fri Apr 27, 2012 12:32 pm
- Forum: General Programming
- Topic: LUT for 10bit ADC??
- Replies: 12
- Views: 8533
Re: LUT for 10bit ADC??
Hi Martin, Loaded code again this morning with both a delay in and start command in place of one of the clears as suggested by Ben and everything now works fine. The table has been redone and values for index now agree with the ADC values so really chuffed! I should have known better than to origina...
- Thu Apr 26, 2012 11:15 pm
- Forum: General Programming
- Topic: LUT for 10bit ADC??
- Replies: 12
- Views: 8533
Re: LUT for 10bit ADC??
I think our posts crossed and only just picked up your attachment, which leaves me something to dwell over! I have tried to download your code to dev board but its playing up and display is 'locked up' , so will try it again in the morning, think possible problem with laptop link. I checked my Excel...
- Thu Apr 26, 2012 9:19 pm
- Forum: General Programming
- Topic: LUT for 10bit ADC??
- Replies: 12
- Views: 8533
Re: LUT for 10bit ADC??
Thanks for input Martin, apprecated. I can follow your answer and it make sense. I have had a bash and attached my efforts, which I know are not as neat as your solution and will tidy up when I get it to work! Just tried flowchart (spent most of the last few hours sorting the LUT values out on excel...
- Thu Apr 26, 2012 5:06 pm
- Forum: General Programming
- Topic: LUT for 10bit ADC??
- Replies: 12
- Views: 8533
Re: LUT for 10bit ADC??
Had an attempt at constructing a LUT using the following thoughts; Because the valid ADC range started at 266 and ended at 818 I subtracted 266 from ADC value to start with giving me a new range of 0 to 552. Any value outside of this range is displayed as a 0 for ADC value and ERROR for Index value....
- Wed Apr 25, 2012 2:51 pm
- Forum: General Programming
- Topic: LUT for 10bit ADC??
- Replies: 12
- Views: 8533
LUT for 10bit ADC??
After writing flowchart on Flowcode 4 to solve the following problem using Pic 16F88:- Read a voltage between 0 and 5V with ADC channel Display Error on LCD if voltage is below 1.3V or above 4V. If no error display a numeric value relative to the analogue input voltage. There are 15 defined points t...