Search found 8 matches

by Stownes
28 May 2010 12:21
Forum: mikroBasic for dsPIC30/33 and PIC24 General
Topic: I2C Interrupt Code
Replies: 0
Views: 2640

I2C Interrupt Code

Hi, Using dsPic30F4011/4013 for a lot of trig/math... and was using the ME I2C library initially without problems. Now that I've loaded up the code with even more time consuming processing, I'd like to move over to Interrupt based I2C. The dsPic needs to be a slave, with I2CADD = 0x32. Searched a lo...
by Stownes
31 Oct 2008 18:55
Forum: mikroBasic General
Topic: Menu System on P16 and P18
Replies: 7
Views: 3223

Sure.. here you go. This is the very first code that I started with, when I was in step one of my 'headache' :? If you get the drift, you can manage to add more menus and levels by linking to other sub procedures, by calling the procedure that reads the key inputs by the user.. ie keypad or else lin...
by Stownes
31 Oct 2008 08:54
Forum: mikroBasic General
Topic: Menu System on P16 and P18
Replies: 7
Views: 3223

>> You have first to write a code and then ask for assistance if it is required. That, I have done, and as mentioned above I managed to have a 3 layer menu structure. The way I done it, is to have each menu page in a separate sub procedure, and this sub is halted by the user until a button is presse...
by Stownes
30 Oct 2008 16:49
Forum: mikroBasic General
Topic: Menu System on P16 and P18
Replies: 7
Views: 3223

You are right.. with only two lines, there is not much info you can display. On the bright side.. it should be simpler because every page ( or 2x16 screen) has only to do with few info at a time. Anyway.. My real issue was how to be able to read first a button(eg UP ), and then if there is another b...
by Stownes
30 Oct 2008 15:57
Forum: mikroBasic General
Topic: Menu System on P16 and P18
Replies: 7
Views: 3223

Menu System on P16 and P18

Why is it so hard to code a decent but simple menu system on a 2x16 LCD? From what I could google, there is not much info around. And the little pseudo code that there is, caters only for yes/no.. quiz type input. I have managed to use mikrobasic's Button function successfully, and have managed also...
by Stownes
23 Sep 2008 18:35
Forum: mikroBasic General
Topic: PPM Read Code for Futaba R/C
Replies: 3
Views: 3257

Hi Again.. Modified the prescaler to Div by 4 Values are now closer to reality in microseconds, as displayed on the 16x2 LCD. This code also works if you have a 4Mhz Xtal, just by changing the prescaler to T1CON = 8 '( each tick is 1us) Then, the duration displayed on the LCD should be very close to...
by Stownes
23 Sep 2008 17:40
Forum: mikroBasic General
Topic: PPM Read Code for Futaba R/C
Replies: 3
Views: 3257

HI XOR, I feel that its a privilege that you popped over to my plea. You are right. I left the timer ticking very fast, and in fact the resolution is excellent. ( or too much for any application) I will have a look at reducing the prescaler , and then changing the trigger values of 5000 and 1000 for...
by Stownes
23 Sep 2008 10:21
Forum: mikroBasic General
Topic: PPM Read Code for Futaba R/C
Replies: 3
Views: 3257

PPM Read Code for Futaba R/C

Hi, I am a total n00bie and still getting to grips with Interrupts and CCP etc.. I'm in total love with mB, and as a radio control modeler, it is opening up opportunities which I have been longing to experiment with in my models. Adapted from XOR's excellent code.. http://www.mikroe.com/forum/viewto...

Go to advanced search