Author |
Message |
Topic: Global variables ?? |
mohsin_hashmi
Replies: 3
Views: 4415
|
Forum: General CCS C Discussion Posted: Thu Oct 18, 2012 8:08 am Subject: Global variables ?? |
thx alot ! |
Topic: Global variables ?? |
mohsin_hashmi
Replies: 3
Views: 4415
|
Forum: General CCS C Discussion Posted: Thu Oct 18, 2012 5:31 am Subject: Global variables ?? |
Is there anyway to declare global variables ?
I want to change the value of a variable in main() from ext_int_isr()
an example will be very helpful !!! |
Topic: Entering ISR when Power Up !!!! Plz Help |
mohsin_hashmi
Replies: 16
Views: 14709
|
Forum: General CCS C Discussion Posted: Wed Oct 17, 2012 1:11 pm Subject: Entering ISR when Power Up !!!! Plz Help |
Thanks everyone !
Code is working !!!!!! Booo Yeahhhh !!! |
Topic: Entering ISR when Power Up !!!! Plz Help |
mohsin_hashmi
Replies: 16
Views: 14709
|
Forum: General CCS C Discussion Posted: Wed Oct 17, 2012 8:40 am Subject: Entering ISR when Power Up !!!! Plz Help |
on both !!!! |
Topic: Entering ISR when Power Up !!!! Plz Help |
mohsin_hashmi
Replies: 16
Views: 14709
|
Forum: General CCS C Discussion Posted: Wed Oct 17, 2012 8:03 am Subject: Entering ISR when Power Up !!!! Plz Help |
the three column pins with pull ups are connected to d4->col0 ,d5->col1, d6->col2 (inputs)
row wires are connected to d0->row0, d1->row1, d2->row2, d3>row3
port d is : d7 d6 d ... |
Topic: Entering ISR when Power Up !!!! Plz Help |
mohsin_hashmi
Replies: 16
Views: 14709
|
Forum: General CCS C Discussion Posted: Wed Oct 17, 2012 7:35 am Subject: Entering ISR when Power Up !!!! Plz Help |
Ok Ttelmah
I will change the code ! will post soon ! |
Topic: Entering ISR when Power Up !!!! Plz Help |
mohsin_hashmi
Replies: 16
Views: 14709
|
Forum: General CCS C Discussion Posted: Wed Oct 17, 2012 7:24 am Subject: Entering ISR when Power Up !!!! Plz Help |
Because the keypad driver that comes with CCS C is a polling based. |
Topic: Entering ISR when Power Up !!!! Plz Help |
mohsin_hashmi
Replies: 16
Views: 14709
|
Forum: General CCS C Discussion Posted: Wed Oct 17, 2012 6:23 am Subject: Entering ISR when Power Up !!!! Plz Help |
Yes ! I have gotten around the problem Thanks alot :D
But my code has lots of "set_tris_d()" if i get rid of those my ports wont be written properly.
I am posting the latest code but t ... |
Topic: Entering ISR when Power Up !!!! Plz Help |
mohsin_hashmi
Replies: 16
Views: 14709
|
Forum: General CCS C Discussion Posted: Wed Oct 17, 2012 12:42 am Subject: Entering ISR when Power Up !!!! Plz Help |
I search the forum for this problem and found that I should clear interrupt flag so I did that now I cant enter the ISR
#include <18F452.h>
#device adc=8
#FUSES NOWDT / ... |
Topic: Entering ISR when Power Up !!!! Plz Help |
mohsin_hashmi
Replies: 16
Views: 14709
|
Forum: General CCS C Discussion Posted: Wed Oct 17, 2012 12:24 am Subject: Entering ISR when Power Up !!!! Plz Help |
I am making an interrupt based keypad. When I run the simulation it enters ISR even before I pressed any key. I have posted the keypad detecting code and the code for "#include <kbd_m.c> &q ... |
Topic: password program not verifying |
mohsin_hashmi
Replies: 6
Views: 7204
|
Forum: General CCS C Discussion Posted: Sun Oct 07, 2012 11:17 am Subject: password program not verifying |
I have tried the example in the CCS C manual but same problem.
char string[30];
char temp[30];
strcpy(temp,"mohsin");
printf("Password: " ... |
Topic: password program not verifying |
mohsin_hashmi
Replies: 6
Views: 7204
|
Forum: General CCS C Discussion Posted: Sun Oct 07, 2012 10:08 am Subject: password program not verifying |
Hello !
I have written a program that asks for password. But even if i am entering the correct password "mohsin" it is still saying password not correct. Please help.
#include <16 ... |
|