Search found 16 matches

by daver442
02 Jan 2009 22:26
Forum: mikroBasic General
Topic: RB7:RB4 interrupt on change not working
Replies: 8
Views: 4269

I'm still not having any luck using the weak pull ups. I'm able to see the pins change states with my "O" scope, but no interrupt (at least not a dependable one). I also tried switching the IOCB to RB0:RB3 with the same disappointing results. I even went back to the microchip keypad configuration of...
by daver442
02 Jan 2009 15:48
Forum: mikroBasic General
Topic: RB7:RB4 interrupt on change not working
Replies: 8
Views: 4269

Thanks bpislife, I think you're on to something. I'll give these ideas a try and let you know if I have any luck.

Thanks again,

daver442
by daver442
01 Jan 2009 18:28
Forum: mikroBasic General
Topic: RB7:RB4 interrupt on change not working
Replies: 8
Views: 4269

That does work, but with keypad_released being a blocking function the pic won't be free to perform other tasks while waiting for keypad input. I really need the interrupt to detect that a keys been pressed.
by daver442
31 Dec 2008 15:35
Forum: mikroBasic General
Topic: RB7:RB4 interrupt on change not working
Replies: 8
Views: 4269

Hi bpislife,

Thanks for the response. I tried your suggestion and I was able to generate the interrupt with and without the keypad_init command. Should all pins be pulled to ground for interrupt on change?

daver442
by daver442
29 Dec 2008 19:02
Forum: mikroBasic General
Topic: RB7:RB4 interrupt on change not working
Replies: 8
Views: 4269

RB7:RB4 interrupt on change not working

Hi folks! Having trouble getting RB<7:4> IOCB to work with keypad. I'm using P16F886 with 4X4 keypad wired up as in MB example (RB7:RB0 pulled to grnd using 10K resistors). Keypad functions properly when using code with Keypad_released function but I don't want the processor tied up all day waiting ...
by daver442
10 Dec 2008 03:26
Forum: mikroBasic General
Topic: LCD display problems - Need an expert.
Replies: 9
Views: 4494

Perhaps I'm making an incorrect assumption that they didn't work however, the only changes I made to get the lcd's to work are in bold text in my second post (PORTA = 0, TRISA = 0). I have since removed those changes and made the changes directly to the LCD4_INIT routine highlighted in my previous p...
by daver442
10 Dec 2008 00:18
Forum: mikroBasic General
Topic: LCD display problems - Need an expert.
Replies: 9
Views: 4494

Hi xor, Thanks for the response. I've modified the beginning of the LCD4_INIT routine as follows: sub procedure LCD4_INIT PORTA = PORTA And $FA TRISA = TRISA And $FA TRISC = TRISC And $0F delay10000(5) Everything is now working fine. My question is why didn't the individual port pin assignments orig...
by daver442
09 Dec 2008 03:54
Forum: mikroBasic General
Topic: LCD display problems - Need an expert.
Replies: 9
Views: 4494

Thanks for the response. I understand the part about setting the port pins as outputs, but what is the difference between setting the entire port as an output vs. just setting the pins I'm using as outputs. Setting the pins individually didn't work, setting the entire port did. I don't have a firm g...
by daver442
08 Dec 2008 19:46
Forum: mikroBasic General
Topic: LCD display problems - Need an expert.
Replies: 9
Views: 4494

I got it!! PORTA apparently wasn't being configured properly by the INIT routine in the optimized LCD4 module. Anyone know why? I changed my setup code to this: sub procedure setup() CM1CON0.7 = 0 ' turn off comparators CM2CON0.7 = 0 ' turn off comparators ANSEL = ANSEL and %1110000 ' turn off analo...
by daver442
08 Dec 2008 04:13
Forum: mikroBasic General
Topic: LCD display problems - Need an expert.
Replies: 9
Views: 4494

LCD display problems - Need an expert.

Hello all, I have 3 lcd character displays, 1-4X16, and 2-4X20's. I'm having trouble getting them to display with the MB lcd library and xor's optimized code. The 4X16 will display using the MB lcd (4 bit) library however display lines 3 and 4 are shifted over to mid display. The 2 4X20's will not d...
by daver442
28 Nov 2008 21:30
Forum: mikroBasic General
Topic: Possible timer1 interrupt issues?
Replies: 8
Views: 3469

Found my mistake.....using the wrong interrupt flag. :oops: I must be dyslexic or something. Everything is working fine now. :D Thanks to everyone for the responses.

daver442
by daver442
28 Nov 2008 17:18
Forum: mikroBasic General
Topic: Possible timer1 interrupt issues?
Replies: 8
Views: 3469

I'm still not having any luck. Anyone have any ideas? The frustration level is about at a 7.5!!!
by daver442
24 Nov 2008 00:42
Forum: mikroBasic General
Topic: Possible timer1 interrupt issues?
Replies: 8
Views: 3469

Hello to all, and thanks for the responses. I apologize for the lack of pertinent info in my opening post. The output of CCP1 is toggling at a rate of approx 260ms (+/- as near as I can tell with my oscope). I've set timer1 (Fosc/4) prescaler at 1:8 using the 8Mhz internal clock. That should provide...
by daver442
21 Nov 2008 19:16
Forum: mikroBasic General
Topic: Possible timer1 interrupt issues?
Replies: 8
Views: 3469

Can anyone please offer any guidance as to why I'm unable to change the duration of the pulse "on" and "off" times based on the code in the previous post?

Thanks.
by daver442
19 Nov 2008 14:18
Forum: mikroBasic General
Topic: Possible timer1 interrupt issues?
Replies: 8
Views: 3469

Possible timer1 interrupt issues?

Trying to build off code written by W. Schroeder that toggles CCP1 for a precision time period. Problem is I'm unable to affect the output based on changes to CCPR1H:CCPR1L register which should generate an interrupt when a match occurs with TMR1H:TMR1L (at least thats what I would like to have happ...

Go to advanced search