Search found 37 matches

by Madman07
28 Mar 2011 18:02
Forum: mikroC PRO for PIC General
Topic: Help!! usb midi with 18fxx
Replies: 4
Views: 3794

Re: Help!! usb midi with 18fxx

But there isn't anything about MIDI over USB.
by Madman07
27 Mar 2011 18:37
Forum: mikroC PRO for PIC General
Topic: Help!! usb midi with 18fxx
Replies: 4
Views: 3794

Re: Help!! usb midi with 18fxx

Hi. I found it on internet and prepared for mikroC although its not working. Can anyone help me? #define NUM_CONFIGURATIONS 1 #define NUM_INTERFACES 1 #define TRUE 1 #define FALSE 0 #define NULL 0 #define OLEN 128 #define ILEN 128 #define ConfiguredUSB() ((USWSTAT&0x3) == CONFIG_STATE) #define STALL...
by Madman07
26 Dec 2009 15:19
Forum: mikroC General
Topic: one PWM signal on two pins
Replies: 2
Views: 1537

I have no idea that if cp1 pin change status (for example from 0 to 1) then some interrupt occur? If yes then u can test if PWM interrupt occurred, and then read cp1 pin status and set it to another pin.

But that is only an idea, I don't know if that is true.
by Madman07
26 Dec 2009 15:16
Forum: mikroC General
Topic: Sony RC5 [library]
Replies: 5
Views: 3991

I cant edit my post so i will write it again. And I can't explain it better, just watch my code and watch rc5 signal, then everything will be clear :-) Sending: void IR1() { // logic 1, first 864us of 0, then 864us of pwm signal PWM_Stop(); // dont forget that its manchester coding delay_us(864); PW...
by Madman07
26 Dec 2009 14:51
Forum: mikroC General
Topic: PWM 10 bits [library]
Replies: 7
Views: 8414

Yes, in my functions init mean start. But u can stop PWM by clearing registers (i think that, I dont remember that well).
by Madman07
25 Dec 2009 20:05
Forum: mikroC General
Topic: Sony RC5 [library]
Replies: 5
Views: 3991

Oh I mistaken Sony with Philips, sorry :oops:
by Madman07
25 Dec 2009 15:00
Forum: mikroC General
Topic: Sony RC5 [library]
Replies: 5
Views: 3991

Sony RC5 [library]

Here u got libraries to send and receive sony rc5 code. I found many codes, but they were complicated, or written in asm so I decided to do my own library. If u will notice any bugs, please report it here and I will check it out. That libraries are easy to use, just put everything and read and send ...
by Madman07
25 Dec 2009 14:59
Forum: mikroC General
Topic: pwm 10 bits
Replies: 2
Views: 1648

Here u got the easiest code for PWM (i think that) http://www.mikroe.com/forum/viewtopic.php?t=17449

U don't have to do anything more, just put that in ur code and specify duty ratio for PWM1 and 2.
by Madman07
16 Dec 2009 09:07
Forum: mikroC General
Topic: PWM Resolution
Replies: 5
Views: 3060

There is easy way to get 10 bit PWM:

http://www.mikroe.com/forum/viewtopic.php?t=17449
by Madman07
13 Dec 2009 19:36
Forum: mikroC General
Topic: PWM 10 bits [library]
Replies: 7
Views: 8414

It depend what u wanna controll. Maybe just use from 23 to 1023, then 1% = 33, 2% = 43 etc... (for example for LED, or some motor). It will be very fast to calculate for uc. Or just use % * 10,23, but it will give u some errors, for example it will give 10, not 10,23 to output. And look here, change...
by Madman07
13 Dec 2009 19:35
Forum: mikroC General
Topic: PWM 10 bits [library]
Replies: 7
Views: 8414

It depend what u wanna controll. Maybe just use from 23 to 1023, then 1% = 33, 2% = 43 etc... (for example for LED, or some motor). It will be very fast to calculate for uc. Or just use % * 10,23, but it will give u some errors, for example it will give 10, not 10,23 to output. And look here, change...
by Madman07
03 Aug 2009 14:25
Forum: mikroPascal PRO for AVR General
Topic: Unwanted data sent.
Replies: 3
Views: 3003

Just like at ur code and usart terminal. PIC is sending 3 dots, terminal receive 2 dots, and the 3rd one moves to new line. Its just displaying 8 symbols, the rest is mooving.
by Madman07
04 Jun 2009 20:27
Forum: mikroC General
Topic: problem with this code
Replies: 3
Views: 1612

Try this: void main() { TRISB = 1; PORTB = 0; TRISD = 0; PORTD = 0; while (1) { if (PORTB.F0 & PORTB.F1) PORTD = 0x0A; if (PORTB.F0 & (PORTB.F1 == 0)) PORTD = 0x80; if ((PORTB.F0 == 0) & PORTB.F1) PORTD = 0x02; if ((PORTB.F0 == 0) & (PORTB.F1 == 0)) PORTD = 0x0; } } Use & instead of && and don't for...
by Madman07
04 Jun 2009 20:16
Forum: mikroC General
Topic: Translation from asm to C - verification
Replies: 2
Views: 1496

Bad luck, it's a color organ, but i wanna use this only in home. I found it here http://wolfstone.halloweenhost.com/ColorOrgans/clomak_MakingColorOrgan.html I'm trying to make a direct translation, and, if everything will be ok, optimize it. But main problem is digital filter. I trying to make some ...
by Madman07
04 Jun 2009 18:05
Forum: mikroC General
Topic: Translation from asm to C - verification
Replies: 2
Views: 1496

Translation from asm to C - verification

Hello. A few days ago i found nice project, but source is in asm and i wanna make some changes in it. I translated it to C, but i dont know that it is good or not (i used helps which i found on goole). Can somebody chjeck it? Original file- http://wolfstone.halloweenhost.com/ColorOrgans/clomak_Kutsc...

Go to advanced search