Search found 14 matches
- 21 Jan 2012 02:30
- Forum: mikroC PRO for PIC General
- Topic: Quad Encoder HID USB Project
- Replies: 2
- Views: 1797
Re: Quad Encoder HID USB Project
Project is now listed on LIBSTOCK.
- 10 Dec 2011 05:05
- Forum: mikroC PRO for PIC General
- Topic: Quad Encoder HID USB Project
- Replies: 2
- Views: 1797
Quad Encoder HID USB Project
Attached ZIP folder includes project notes, code and circuit diagrams for a HID USB device I put together to create three 'control knobs' for use with the Microsoft FSX flight sim game.
Feel free to use / comment / make it work better....
Regards,
Codepleb
Feel free to use / comment / make it work better....
Regards,
Codepleb
- 15 May 2011 10:08
- Forum: mikroC PRO for PIC General
- Topic: quad encoder count with interrupt trigger via Port B change
- Replies: 8
- Views: 6431
Re: quad encoder count with interrupt trigger via Port B cha
Hello all, After some fiddling around I have successfully implemented the Port B interrupt with a quad encoder. I'm using an EasyPIC5 board with an 16f887 @ 20Mhz. Test code is as follows: [code] unsigned char state; signed int count; // Rotary encoder -------- void interrupt(void){ if(INTCON.RBIF==...
- 19 Apr 2011 10:32
- Forum: mikroC PRO for PIC General
- Topic: quad encoder count with interrupt trigger via Port B change
- Replies: 8
- Views: 6431
Re: quad encoder count with interrupt trigger via Port B cha
Thanks WayneC - I should have spotted the mistake around TRISB earlier.
Made changes accordingly but no success. - not sure why yet.
I think I'll need to experiment a bit more - I am going to try getting an interrupt on RB0 (INT) going instead as it is edge triggered.
Regards,
Codepleb.
Made changes accordingly but no success. - not sure why yet.
I think I'll need to experiment a bit more - I am going to try getting an interrupt on RB0 (INT) going instead as it is edge triggered.
Regards,
Codepleb.
- 13 Apr 2011 06:25
- Forum: mikroC PRO for PIC General
- Topic: quad encoder count with interrupt trigger via Port B change
- Replies: 8
- Views: 6431
Re: quad encoder count with interrupt trigger via Port B cha
Hello again everyone. Thank you to all of you that have taken the time to view my posts. I've tried both of WayneC's encoder ideas and no luck so far. :( There's still something missing in my process here - either setting register bits the wrong way or something else. I also tried each of WayneC's q...
- 05 Apr 2011 23:25
- Forum: mikroC PRO for PIC General
- Topic: quad encoder count with interrupt trigger via Port B change
- Replies: 8
- Views: 6431
Re: quad encoder count with interrupt trigger via Port B cha
Thanks WayneC - I'll try your suggestions, and I'll post the results.
P.S. - I'll use code tags next time!
Regards,
Codepleb
P.S. - I'll use code tags next time!
Regards,
Codepleb
- 28 Mar 2011 09:28
- Forum: mikroC PRO for PIC General
- Topic: quad encoder count with interrupt trigger via Port B change
- Replies: 8
- Views: 6431
quad encoder count with interrupt trigger via Port B change
Hello all, I recently spent time getting a quadrature encoder working - with success counting up down and displaying the result on the 4 x 7-segment display on my EasyPIC5 board. Works OK as a 'proof of concept', but misses counts because the encoder routine is in the body of the main routine, inste...
- 06 Jul 2010 13:23
- Forum: mikroC General
- Topic: 12 bits HID Joystick
- Replies: 10
- Views: 6378
Re: 12 bits HID Joystick
I've recently implemented an 8 bit USB HID joystick using the 18f4550 - and would like to change the throttle, X and Y axis from 8 bit to 10 bit. Do you just need to split the 3 x 10 bit ADC results across 4 x 8 bit bytes? i.e. : 1st byte = lower 8 bits of throttle ADC result 2nd byte = top 2 bits o...
- 26 May 2010 08:00
- Forum: mikroC PRO for PIC General
- Topic: error message: Unresolved extern 'USB_Init_Desc'
- Replies: 3
- Views: 3517
error message: Unresolved extern 'USB_Init_Desc'
Does anyone know where i can get information on the following error message?
Line: Message No. Message Text Unit
0 360 Unresolved extern 'USB_Init_Desc' __Lib_USB_genHID.c
Line: Message No. Message Text Unit
0 360 Unresolved extern 'USB_Init_Desc' __Lib_USB_genHID.c
- 27 Mar 2010 01:13
- Forum: mikroC PRO for PIC General
- Topic: Mouse Emulator
- Replies: 34
- Views: 12782
Re: Mouse Emulator
Hi Javier, Thanks for your posts and the code you have listed - it's helping me learn more about USB. I've tried to compile your code - but no success. I'm using MikroC Pro and it does not like the structure and unions statements. Did you use this complier of the older MikroC 8.2? Have you got the m...
- 11 Feb 2010 09:49
- Forum: mikroC PRO for PIC Beta Testing
- Topic: Mikroc Pro bug with unions?
- Replies: 2
- Views: 2553
Re: Mikroc Pro bug with unions?
Thanks.
I will work it out from the help file you suggested.
Regards,
codepleb
I will work it out from the help file you suggested.
Regards,
codepleb
- 08 Feb 2010 03:57
- Forum: mikroC PRO for PIC Beta Testing
- Topic: Mikroc Pro bug with unions?
- Replies: 2
- Views: 2553
Mikroc Pro bug with unions?
I can compile the following 'joystick' code with Mikro C 8.2.0.0, but not with Mikro C Pro 3.2. Is it me or is there a bug re structures / unions in the Pro version (I just bought it - love it but I need to sort out this issue). Pro version does not like instructions like "buttons.bit.B4=1", but 8.2...
- 31 Mar 2009 00:24
- Forum: mikroC General
- Topic: Modifying the mikroC code to create a USB Joystick
- Replies: 17
- Views: 19384
USB joystick
Hi there. I would like to try this code out but i haven't bought a compiler yet - should i get the MikroC compiler or is there a cheaper option? Also - can you post the code with your comments in English? Regards, Codepleb [quote="fabim"]ok mi frend.. try this modifications on a descriptor and test!...
- 31 Mar 2009 00:19
- Forum: mikroC General
- Topic: LM3915 simulation with PIC
- Replies: 8
- Views: 4895
LM3915 simulation with PIC
You could try the following project. I haven't tried it myself yet - but it looks OK.
http://www.mbeckler.org/microcontrollers/led_bargraph/
Regards,
Codepleb
http://www.mbeckler.org/microcontrollers/led_bargraph/
Regards,
Codepleb