Author |
Message |
Topic: USB communication 18f4550 <-> PC |
cile
Replies: 1
Views: 7272
|
Forum: General CCS C Discussion Posted: Tue Aug 02, 2011 8:28 am Subject: USB communication 18f4550 <-> PC |
Hello !
I created small test board with PIC 18f4550 for USB communication between PC and PIC. I made GUI on the PC side which's job is to communicate with PIC. I have tested USB CCS CDC driver & ... |
Topic: keypad 4x4 problem |
cile
Replies: 13
Views: 19083
|
Forum: General CCS C Discussion Posted: Fri Aug 07, 2009 5:37 am Subject: keypad 4x4 problem |
Hello. I could not answer before. I have put 150 debounce factor, and it seems better. I did not test with 200, but I will try and report.
Thank you for help ! |
Topic: keypad 4x4 problem |
cile
Replies: 13
Views: 19083
|
Forum: General CCS C Discussion Posted: Sun Jul 26, 2009 7:10 am Subject: keypad 4x4 problem |
Hello,
There is link, where is schematic of my final project. You will see on schematic how is made jack for kepyad.
http://rapidshare.com/files/260219348/picture.JPG
I think, maybe the button ... |
Topic: keypad 4x4 problem |
cile
Replies: 13
Views: 19083
|
Forum: General CCS C Discussion Posted: Fri Jul 24, 2009 7:13 am Subject: keypad 4x4 problem |
I have tested but still same problem !
any advice ??
thank you ! |
Topic: keypad 4x4 problem |
cile
Replies: 13
Views: 19083
|
Forum: General CCS C Discussion Posted: Thu Jul 23, 2009 1:17 pm Subject: keypad 4x4 problem |
Ok, thank you, I will try tomorrow , I can not do it now.
I will post what happened |
Topic: keypad 4x4 problem |
cile
Replies: 13
Views: 19083
|
Forum: General CCS C Discussion Posted: Thu Jul 23, 2009 4:35 am Subject: keypad 4x4 problem |
1.
#include <18F4550.h>
#fuses HSPLL, PLL5, CPUDIV1, NOWDT, PUT, BROWNOUT, NOLVP
#use delay (clock=48000000)
#include <keypad1.c> // same as
// http://www.ccsinfo.com/fo ... |
Topic: keypad 4x4 problem |
cile
Replies: 13
Views: 19083
|
Forum: General CCS C Discussion Posted: Wed Jul 22, 2009 12:44 pm Subject: keypad 4x4 problem |
No, the pins of LCD and the pins of keypad are not the same.
LCD is on PORTB & PORTE (B4-B7 & E0-E2 ) and the keypad is on the PORTD.
Can this problem fix in software ?? to use some delay_ ... |
Topic: keypad 4x4 problem |
cile
Replies: 13
Views: 19083
|
Forum: General CCS C Discussion Posted: Wed Jul 22, 2009 6:52 am Subject: keypad 4x4 problem |
Hello !
I'm using keypad 4x4 which is connected to PIC 18F4550 and LCD 4x20.
In my program I use drivers for keypad and LCD from PCM programmer. There is link for 4x4 keypad driver :
http://ww ... |
Topic: convert int to char |
cile
Replies: 17
Views: 36468
|
Forum: General CCS C Discussion Posted: Mon May 25, 2009 11:09 am Subject: convert int to char |
THANK YOU on your wishes.... |
Topic: convert int to char |
cile
Replies: 17
Views: 36468
|
Forum: General CCS C Discussion Posted: Mon May 25, 2009 10:28 am Subject: convert int to char |
#define toint(c) ((int)((c)-'0'))
.
.
.
int temp=0;
char=k;
while(1){
k=kbd_getc();
if(k=='1') ... |
Topic: convert int to char |
cile
Replies: 17
Views: 36468
|
Forum: General CCS C Discussion Posted: Mon May 25, 2009 8:53 am Subject: convert int to char |
There is code again... Can someone look it and find (if there is any mistake)..or
void main() {
char k;
int temp=0;
int temp=0;
lcd_init();
kbd_init( ... |
Topic: convert int to char |
cile
Replies: 17
Views: 36468
|
Forum: General CCS C Discussion Posted: Mon May 25, 2009 8:23 am Subject: convert int to char |
Is there any ideas?? have someone explain or advice what is actually wrong?? thank you !!! |
Topic: convert int to char |
cile
Replies: 17
Views: 36468
|
Forum: General CCS C Discussion Posted: Mon May 25, 2009 7:57 am Subject: convert int to char |
I have also make int16 temp and temp1; but still same thing...
LCD and keyboard work OK.. For example
while(1){
k=kbf_getc();
if(k!=0);
... |
Topic: convert int to char |
cile
Replies: 17
Views: 36468
|
Forum: General CCS C Discussion Posted: Sun May 24, 2009 5:17 pm Subject: convert int to char |
I did on this way
char k; int temp=0;
while (1){
k=kbd_getc(); // returns typ 'char'
if(k!=0)
lcd_putc(k);
temp=10*temp+toint(k);
if ... |
Topic: convert int to char |
cile
Replies: 17
Views: 36468
|
Forum: General CCS C Discussion Posted: Sun May 24, 2009 4:58 pm Subject: convert int to char |
OK, I did not change my code, I have only put this macro above main
#define toint(c) ((int)((c)-'0'))
but still doesn't work.
Maybe I have wrong und ... |
|