Search found 13 matches

by sysavm
14 Aug 2019 10:02
Forum: mikroC PRO for AVR General
Topic: CDI Ignition - programmable conditioning stage.
Replies: 1
Views: 1604

Re: CDI Ignition - programmable conditioning stage.

btw. Currently I'm using 8MHZ internal crystal and prescaler can be optimized later.
by sysavm
14 Aug 2019 09:56
Forum: mikroC PRO for AVR General
Topic: CDI Ignition - programmable conditioning stage.
Replies: 1
Views: 1604

CDI Ignition - programmable conditioning stage.

cdi.png Hi gurus, Good day. I'm trying to build my own programmable conditioning stage that can be added to simple CDI units for motorcycles. Having an oscilloscope and signal generator is what I can think most useful tool for this project but Affordability is my main issue. That is why I would lik...
by sysavm
21 Sep 2015 06:34
Forum: User Projects
Topic: Ignition Map (My CDI Project)
Replies: 1
Views: 2238

Ignition Map (My CDI Project)

Hello gurus, I'm trying to build a programmable CDI ignition advance timing controller. It can be added to existing analog CDI. I'm making it in mikroc. Algorithm: 1. Connect the pulse sensor to CCP1 pin. 2. The 1st pulse resets TMR1H and CCP1H. 3. 2nd and incoming pulses captured by the CCP1H. 4. A...
by sysavm
30 Jun 2015 11:18
Forum: mikroC General
Topic: Input pin over voltage protection.
Replies: 2
Views: 1857

Re: Input pin over voltage protection.

Sparky1039 wrote:The better solution is to use an optoisolator. It provides galvanic isolation on the order of several kV, perfect for protecting the low voltage PIC inputs.

thanks Sparky1039.
by sysavm
29 Jun 2015 21:19
Forum: mikroC General
Topic: Input pin over voltage protection.
Replies: 2
Views: 1857

Input pin over voltage protection.

input.png
input.png (12.53 KiB) Viewed 1857 times
Hello guys,

Just want to have any suggestion about my circuit. The pulse sensor generates higher voltage that the pic input can handle. If the zener diode goes bad, then higher voltage goes into my pic input.

Any tips.

Thanks in advance.
by sysavm
24 Jul 2014 05:46
Forum: mikroC General
Topic: Understanding Instruction Cycles.
Replies: 1
Views: 1709

Understanding Instruction Cycles.

Hi Gurus, I'm a newbie and want to understand how oscillator and instruction cycles works. I have the code below; [code} int a;=0; while(1){ a++; }[/code] If I'm going to use 4mhz oscillator. Does variable a increment exactly every 1ÎĽsecond? Or does the while command and spaces/blank line takes 1ÎĽs ...
by sysavm
20 Jul 2014 17:21
Forum: Website & Forums General Discussion
Topic: multiple while() and nestedIFs alternative.
Replies: 3
Views: 2745

Re: multiple while() and nestedIFs alternative.

thanks Filip. but I would like to make the code smaller/shorter as much as possible. I'm building a programmable ignition module for CDI in mikroc. I've tested the code in C and it works. But seems that it will have the same number of conditions as the IF-Else statement. #include <stdio.h> int main(...
by sysavm
20 Jul 2014 08:27
Forum: Website & Forums General Discussion
Topic: bitwise operator. Book query.
Replies: 2
Views: 2581

Re: bitwise operator. Book query.

Thank you Robert.
by sysavm
19 Jul 2014 21:25
Forum: mikroC General
Topic: How to Setup Configuration bits in code
Replies: 9
Views: 16445

Re: How to Setup Configuration bits in code

Is this functionality added?
by sysavm
16 Jun 2014 18:35
Forum: Website & Forums General Discussion
Topic: multiple while() and nestedIFs alternative.
Replies: 3
Views: 2745

Re: multiple while() and nestedIFs alternative.

This is a sample code I'm trying to solve. if (ptime ==1000) { pdelay = 245;} if (ptime >1000 and ptime <=1025) { pdelay = 240;} if (ptime >1025 and ptime <=1050) { pdelay = 235;} if (ptime >1050 and ptime <=1065) { pdelay = 230;} if (ptime >1065 and ptime <=1085) { pdelay = 225;} if (ptime >1085 an...
by sysavm
15 Jun 2014 21:27
Forum: Website & Forums General Discussion
Topic: multiple while() and nestedIFs alternative.
Replies: 3
Views: 2745

multiple while() and nestedIFs alternative.

Any idea on what is best alternative for the below conditions? < 100 = 1ms delay >= 100 and < 200 = 2.. >= 200 and < 300 = 3.. >= 300 and < 400 = 4.. >= 400 and < 500 = 5.. ..... >=1xxx < 19xx = x Can look-up table be used?
by sysavm
13 Jun 2014 20:47
Forum: mikroC PRO for PIC General
Topic: Help. Declaring variables and flags.
Replies: 2
Views: 1255

Help. Declaring variables and flags.

Hi gurus. I'm just starting to learn/study pic programming using mikroC PRO. What is the difference on the below statements; RA1_bit = 1; PORTA.B1 =1; PORTA = 0b00000010; or the equivalent; (PORTA = 0x2 , PORTA = 2) and INTCON.GIE = 1; INTCON.GIE_bit = 1; INTCON = 0b10000000; Is there a general rule...
by sysavm
10 Jun 2014 12:12
Forum: Website & Forums General Discussion
Topic: bitwise operator. Book query.
Replies: 2
Views: 2581

bitwise operator. Book query.

http://www.mikroe.com/chapters/view/15/chapter-2-programming-microcontrollers/ Is there an error in the BITWISE OPERATORS section of the book above? << Shift left a = b << 2 b = 11110011 a = 11001100 // this is ok. >> Shift right a = b >> 2 b = 11110011 a = 00011110 // this is what i mean. it should...

Go to advanced search