Search found 42 matches
- Sat Mar 08, 2014 2:41 am
- Forum: General Programming
- Topic: ADC controlling needs advice.
- Replies: 3
- Views: 3801
Re: ADC controlling needs advice.
HI Martin, Thanks. You want to limit the current, so that means if the current exceeds a threshold, then PWM duty is reduced. But what if the current is not exceeded, but is less than threshold? PWM increase? Martin This time round I'm solely setting On & Off at the output port, no PWM involve. ...
- Fri Mar 07, 2014 8:47 am
- Forum: General Programming
- Topic: ADC controlling needs advice.
- Replies: 3
- Views: 3801
ADC controlling needs advice.
Hi all, I’m trying to use ADC reading to control current flow. The circuit as followed: The FC3 program & the output waveform is attached, from what I observed through the scope, I got the same waveform regardless different values of “VAL0” settings. If I'm not wrong with VAL0>5 setting, i shoul...
- Sun Mar 02, 2014 2:18 pm
- Forum: General Programming
- Topic: Looping for desire timing by interrupt needs advice
- Replies: 8
- Views: 6577
Re: Looping for desire timing by interrupt needs advice
Hi Martin,
Thanks alot, you been very helpful,
The LED is ON/OFF at the rate of 32sec each mode.
But i 'm curious, where went wrong to my version that did not work accordingly, any pointing from you please?
Thanks
Thanks alot, you been very helpful,

The LED is ON/OFF at the rate of 32sec each mode.
But i 'm curious, where went wrong to my version that did not work accordingly, any pointing from you please?
Thanks
- Sun Mar 02, 2014 1:45 am
- Forum: General Programming
- Topic: Looping for desire timing by interrupt needs advice
- Replies: 8
- Views: 6577
Re: Looping for desire timing by interrupt needs advice
Hi Martin,
I replicate to program into the chip, it stays ON all the while, just the same as my early version, in simulation it works ON/OFF according to program, but not on hardware.
May be the chip is spoilt
, i'll come back after try on a new piece.
Thanks

I replicate to program into the chip, it stays ON all the while, just the same as my early version, in simulation it works ON/OFF according to program, but not on hardware.

May be the chip is spoilt

Thanks
- Sun Mar 02, 2014 12:57 am
- Forum: General Programming
- Topic: Looping for desire timing by interrupt needs advice
- Replies: 8
- Views: 6577
Re: Looping for desire timing by interrupt needs advice
Thanks Martin!medelec35 wrote:
So for simulation purposes only (defiantly not for sending to hardware), you can just add a call ISR macro to speed simulation up.
Martin

Now i can read the content, i'll try out to the chip later, if it workings on the hardware.

- Sat Mar 01, 2014 4:44 pm
- Forum: General Programming
- Topic: Looping for desire timing by interrupt needs advice
- Replies: 8
- Views: 6577
Re: Looping for desire timing by interrupt needs advice
Hi Martin,
Thanks for your advice, however i'm still using the FC3, so unable to see the changes u made , please if u could display the code in png format? Thanks.
Thanks for your advice, however i'm still using the FC3, so unable to see the changes u made , please if u could display the code in png format? Thanks.
- Sat Mar 01, 2014 12:16 pm
- Forum: General Programming
- Topic: Looping for desire timing by interrupt needs advice
- Replies: 8
- Views: 6577
Looping for desire timing by interrupt needs advice
Hi all, I tried to use this circuit to observe the output ON & OFF for 30sec each, but what I see is the output always ON, never OFF. :| Please advice how should I loop to achieve it, by using the interrupt method? What is the mathematic way to calculate the desire output ON/OFF time? Thanks :)
- Wed Sep 04, 2013 6:07 am
- Forum: General Programming
- Topic: Seven segment common cathode
- Replies: 4
- Views: 5413
Re: Seven segment common cathode
Hi everyone,
I got stuck using C code to display 7-segment.
It worked for display 7-segment when used none C code to program.
The pdf shows the images of the 7-segment display of both C code and none C code programs.
Please any advice?
oookey

I got stuck using C code to display 7-segment.

It worked for display 7-segment when used none C code to program.
The pdf shows the images of the 7-segment display of both C code and none C code programs.
Please any advice?
oookey
- Thu Aug 22, 2013 2:03 pm
- Forum: General Programming
- Topic: Read info on a Code Protected MCU
- Replies: 1
- Views: 2643
Read info on a Code Protected MCU
Hi everyone
,
Is there anyway to read the program codes and information in a MCU (12F615) that the code protected already "ON"
thanks.
oookey

Is there anyway to read the program codes and information in a MCU (12F615) that the code protected already "ON"

thanks.
oookey
- Sat Jun 15, 2013 3:58 pm
- Forum: General Programming
- Topic: Do i need a resistor at the output port?
- Replies: 3
- Views: 3563
Re: Do i need a resistor at the output port?
thanks Martin,
i think the resistor connecting gate to ground should not leave out, it acts to discharge the gate when the PWM at low level.
oookey

i think the resistor connecting gate to ground should not leave out, it acts to discharge the gate when the PWM at low level.
oookey
- Sat Jun 15, 2013 12:13 pm
- Forum: General Programming
- Topic: Do i need a resistor at the output port?
- Replies: 3
- Views: 3563
Do i need a resistor at the output port?
Hi :D , i 'm puzzle whether or not to have a resistor of below 1k ohm at the O/P port (PWM) before connecting a mosfet(IRF540) as circuit sketched. For using the timer IC 555 to drive the IRF540, i need not to have the "R", can i apply the same to a MCU such as 12F615? thanks for advice. :...
- Tue May 21, 2013 4:37 am
- Forum: Flowcode V2 & V3
- Topic: 12F615 comparator programming
- Replies: 5
- Views: 18177
Re: 12F615 comparator programming
Hi, I tried not using the comparator, but simply let the pot GP2 continue loop ON and OFF for 1 sec each, but it did not perform as wanted, it ON and never OFF :? If I changed start with continue loop OFF and ON for 1 sec each, the pot never turned ON at all :!: Same when i changed to GP1. But in si...
- Sat May 18, 2013 5:51 am
- Forum: Flowcode V2 & V3
- Topic: 12F615 comparator programming
- Replies: 5
- Views: 18177
Re: 12F615 comparator programming
Hi Kenrix2, You might want to try the Comparator module instead of the CCP for the input, that way you can set the "reference voltage" Then have your photo diode connect to the comparator(input+). If (input +)voltage rises to within 5mv of (input-) voltage the comparator output goes high. ...
- Wed May 15, 2013 9:41 am
- Forum: Flowcode V2 & V3
- Topic: 12F615 comparator programming
- Replies: 5
- Views: 18177
12F615 comparator programming
Hi :D , i' m going to try out using the TV remote control as an input signal to the 12F615 and trigger out PWM signal. Looking at the datasheet of the 12F615, it has the CCP features. Please advice if i could implement it in the following manner (sketch): Few points i need your expert advice: 1. The...
- Wed May 08, 2013 7:56 am
- Forum: General Programming
- Topic: Seven segment common cathode
- Replies: 4
- Views: 5413
Re: Seven segment common cathode
Hi
,
I’m trying to use FC to control the common cathode seven segment (7seg4), prior hopping into the clock program.
Please take a look the V3 FC and advice. I tried to display 0 thru 9 by each of the 7seg4, using supplementary code and C, but fail to compile, error (57).
Thanks
oookey

I’m trying to use FC to control the common cathode seven segment (7seg4), prior hopping into the clock program.
Please take a look the V3 FC and advice. I tried to display 0 thru 9 by each of the 7seg4, using supplementary code and C, but fail to compile, error (57).

Thanks
oookey
- Wed May 01, 2013 2:41 am
- Forum: General Programming
- Topic: Seven segment common cathode
- Replies: 4
- Views: 5413
Seven segment common cathode
Hi :D i'm trying to make a clock display using one unit 4pcs of seven segment, 2 digits for hours the rest for minutes, and using decimal point as second. Program on a 16F628A chip. I got a problem that the FC component macro is for common anode only, but i have in hand is a common cathode :? , is t...
- Tue Mar 19, 2013 7:20 am
- Forum: General Programming
- Topic: Seek supplementary code and lookup table advice
- Replies: 37
- Views: 20400
Re: Seek supplementary code and lookup table advice
Hi Martin :D i failed to modify your version of FC to perform scrolling display of the "HELLO WELCOME", instead i worked out my own, it could display scrolling started from right to left, but my FC got a limitation, could not display long messages, i tried display all the 26 alphabets, enc...
- Mon Feb 25, 2013 2:57 am
- Forum: General Programming
- Topic: Seek supplementary code and lookup table advice
- Replies: 37
- Views: 20400
Re: Seek supplementary code and lookup table advice
Hi All, I still encountered fail compiling, following are the error messages: C:\Indexing.c(82:17): error: unknown identifier 'index' C:\Indexing.c(82:17): error: invalid index C:\Indexing.c(82:12): error: failed to generate expression C:\Indexing.c(82:12): error: invalid operand 'mess[index]' C:\In...
- Sun Feb 24, 2013 1:23 pm
- Forum: General Programming
- Topic: Seek supplementary code and lookup table advice
- Replies: 37
- Views: 20400
Re: Seek supplementary code and lookup table advice
Hi All, I encountered compiling errors: error: too many initializers error: unexpected [] operation on identifier 'mess' error: failed to generate expression error: invalid operand 'mess[index]' error: failed to generate expression I have the following values in the Supplementary Code: int mess = { ...
- Thu Feb 21, 2013 3:35 am
- Forum: General Programming
- Topic: Seek supplementary code and lookup table advice
- Replies: 37
- Views: 20400
Re: Seek supplementary code and lookup table advice
Hi Martin, Thanks for the advice, after changing file name, problem remain the same, the message as: :idea: Memory Usage Report =================== RAM available:224 bytes, used:87 bytes (38.9%), free:137 bytes (61.1%), Heap size:137 bytes, Heap max single alloc:79 bytes ROM available:2048 words, us...
- Wed Feb 20, 2013 9:25 am
- Forum: General Programming
- Topic: Seek supplementary code and lookup table advice
- Replies: 37
- Views: 20400
Re: Seek supplementary code and lookup table advice
Hi all FC experts, I modified the previous FC with addition of sequence count (seq_count) to monitor the pointer movement in the program, in order to turn on the respective 74HC138. Why can't I compile the program to the device but it can successfully run simulation in the PC environment? The failur...
- Mon Feb 18, 2013 11:34 am
- Forum: General Programming
- Topic: Seek supplementary code and lookup table advice
- Replies: 37
- Views: 20400
Re: Seek supplementary code and lookup table advice
Thanks Martin,
The characters did appear 1 by 1 in the column 1 to 5 only.
The circuit connection as attached:
Regards
oookey
The characters did appear 1 by 1 in the column 1 to 5 only.
The circuit connection as attached:
Regards
oookey
- Mon Feb 18, 2013 4:38 am
- Forum: General Programming
- Topic: Seek supplementary code and lookup table advice
- Replies: 37
- Views: 20400
Re: Seek supplementary code and lookup table advice
Hi Martin, :D i have added in LEDs; 74138 and other necessary component, to enable display 7x15 dot matrix. With your previously written program it displayed the letter "L" on the left side 5 columns, how do i modify on that program in order to display "HELLO WELCOME" :?: Please ...
- Wed Feb 13, 2013 11:54 am
- Forum: General Programming
- Topic: Seek supplementary code and lookup table advice
- Replies: 37
- Views: 20400
Re: Seek supplementary code and lookup table advice
Great Martin
you have got it.
please show how more matrixes could scroll from right to left.
Many Thanks


you have got it.

please show how more matrixes could scroll from right to left.

- Wed Feb 13, 2013 10:27 am
- Forum: General Programming
- Topic: Seek supplementary code and lookup table advice
- Replies: 37
- Views: 20400
Re: Seek supplementary code and lookup table advice
Thanks Martin,
the display of "L" is almost correct.
until now i'm still trying to understand how your program works.

the display of "L" is almost correct.

until now i'm still trying to understand how your program works.
