Author |
Message |
Topic: PIC16F877A and PIC16f84A |
HOHOHAHA
Replies: 6
Views: 8196
|
Forum: General CCS C Discussion Posted: Thu Jan 24, 2008 11:33 am Subject: PIC16F877A and PIC16f84A |
Is it possible to communicate between PIC16F877A and PIC16F84A .. ? Is RS232 communication possible ... ? I want to drive the stepper motor with PIC16F84A .. and send the data back to F877A ... the F ... |
Topic: INT_RB problem... |
HOHOHAHA
Replies: 10
Views: 9108
|
Forum: General CCS C Discussion Posted: Thu Jan 17, 2008 10:22 am Subject: INT_RB problem... |
Software solution, is to use one of the timers.
In the INT_RB routine, program this to trigger in perhaps 1mSec, enable this interrupt, disable int_rb, and exit the routine.
Then have an interrupt h ... |
Topic: INT_RB problem... |
HOHOHAHA
Replies: 10
Views: 9108
|
Forum: General CCS C Discussion Posted: Tue Jan 15, 2008 10:41 am Subject: INT_RB problem... |
I can't call a delay_ms() in isr... right ?? Can I call a function which will in turn call a delay ?? ... How can I exit from an isr without executing the later part of the code in isr... ? Your solut ... |
Topic: INT_RB problem... |
HOHOHAHA
Replies: 10
Views: 9108
|
Forum: General CCS C Discussion Posted: Tue Jan 15, 2008 9:35 am Subject: INT_RB problem... |
Well, you set the B4 to B7 pins to inputs, and you enable interrupts, so you should enter the routine. Did you try, as I said, to do something more simple ? Something like that :
long test=0 ;
#in ... |
Topic: INT_RB problem... |
HOHOHAHA
Replies: 10
Views: 9108
|
Forum: General CCS C Discussion Posted: Tue Jan 15, 2008 4:23 am Subject: INT_RB problem... |
Basically it works but not properly....though RB4 RB5 works fine but RB6 and RB7 give ambiguous results |
Topic: INT_RB problem... |
HOHOHAHA
Replies: 10
Views: 9108
|
Forum: General CCS C Discussion Posted: Tue Jan 15, 2008 4:13 am Subject: INT_RB problem... |
Thanks .. I really overlooked it ...but the interrupt is still not working |
Topic: INT_RB problem... |
HOHOHAHA
Replies: 10
Views: 9108
|
Forum: General CCS C Discussion Posted: Tue Jan 15, 2008 3:40 am Subject: INT_RB problem... |
I am trying to make an obstacle avoidance robo, using stepper (unipolar) motor ,,, and IR for the detection...I have connected the output of and LM324 (opamp) to the interrupt pins... the IR receiver ... |
Topic: Rx Tx |
HOHOHAHA
Replies: 17
Views: 19226
|
Forum: General CCS C Discussion Posted: Tue Jan 15, 2008 3:26 am Subject: Rx Tx |
connect the 1uf in MAX232 properly... ie the + and - sign of the capacitors...this may be the only problem...I think... |
Topic: Infrared receiver for SONY remotes |
HOHOHAHA
Replies: 19
Views: 165996
|
Forum: Code Library Posted: Tue Jan 01, 2008 11:11 am Subject: Infrared receiver for SONY remotes |
great work ... |
Topic: Cant compile RTOS PIC16F877A |
HOHOHAHA
Replies: 11
Views: 10561
|
Forum: General CCS C Discussion Posted: Mon Dec 31, 2007 9:45 am Subject: Cant compile RTOS PIC16F877A |
ok, I understand that .. but what is the need of setting the value of "max" then ?.... why does the RTOS need it... are they fooling us ? |
Topic: Cant compile RTOS PIC16F877A |
HOHOHAHA
Replies: 11
Views: 10561
|
Forum: General CCS C Discussion Posted: Sun Dec 30, 2007 11:11 pm Subject: Cant compile RTOS PIC16F877A |
Changing to a 16 bit timer is not enough to solve the problem, your 500ms setting still generates a timer overflow with the same compiler error.
When I changed the #rtos line to the one below I g ... |
Topic: Cant compile RTOS PIC16F877A |
HOHOHAHA
Replies: 11
Views: 10561
|
Forum: General CCS C Discussion Posted: Sun Dec 30, 2007 11:02 pm Subject: Cant compile RTOS PIC16F877A |
I have a new problem now ... is this RTOS seriously lame .... ? If anyone have written a program within an infinite loop a little trickily then this RTOS features can be easily implemented without RTO ... |
Topic: Cant compile RTOS PIC16F877A |
HOHOHAHA
Replies: 11
Views: 10561
|
Forum: General CCS C Discussion Posted: Sun Dec 30, 2007 10:45 pm Subject: Re: Different Timer |
Try using Timer1 or add a prescaler to Timer0. I think the timing duration of 1000ms using a 20MHz clock un-scaled is beyond the 8-bits available with Timer0. Timer1 is a 16 bit timer.
#use rtos(ti ... |
Topic: Cant compile RTOS PIC16F877A |
HOHOHAHA
Replies: 11
Views: 10561
|
Forum: General CCS C Discussion Posted: Sun Dec 30, 2007 12:27 pm Subject: Cant compile RTOS PIC16F877A |
/////////////////////////////////////////////////////////////////////////
//// ex_rtos_demo1_tasks.C ////
//// ... |
Topic: Cant compile RTOS PIC16F877A |
HOHOHAHA
Replies: 11
Views: 10561
|
Forum: General CCS C Discussion Posted: Sun Dec 30, 2007 2:45 am Subject: Cant compile RTOS PIC16F877A |
No one to help me out ?? Please try ... |
|