Search found 37 matches
- 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.
- 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...
- 26 Dec 2009 15:19
- Forum: mikroC General
- Topic: one PWM signal on two pins
- Replies: 2
- Views: 1537
- 26 Dec 2009 15:16
- Forum: mikroC General
- Topic: Sony RC5 [library]
- Replies: 5
- Views: 4013
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...
- 26 Dec 2009 14:51
- Forum: mikroC General
- Topic: PWM 10 bits [library]
- Replies: 7
- Views: 8436
- 25 Dec 2009 20:05
- Forum: mikroC General
- Topic: Sony RC5 [library]
- Replies: 5
- Views: 4013
- 25 Dec 2009 15:00
- Forum: mikroC General
- Topic: Sony RC5 [library]
- Replies: 5
- Views: 4013
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 ...
- 25 Dec 2009 14:59
- Forum: mikroC General
- Topic: pwm 10 bits
- Replies: 2
- Views: 1649
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.
U don't have to do anything more, just put that in ur code and specify duty ratio for PWM1 and 2.
- 16 Dec 2009 09:07
- Forum: mikroC General
- Topic: PWM Resolution
- Replies: 5
- Views: 3060
- 13 Dec 2009 19:36
- Forum: mikroC General
- Topic: PWM 10 bits [library]
- Replies: 7
- Views: 8436
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...
- 13 Dec 2009 19:35
- Forum: mikroC General
- Topic: PWM 10 bits [library]
- Replies: 7
- Views: 8436
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...
- 03 Aug 2009 14:25
- Forum: mikroPascal PRO for AVR General
- Topic: Unwanted data sent.
- Replies: 3
- Views: 3003
- 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...
- 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 ...
- 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...