Author |
Message |
Topic: Strange behavior, array of char not cleaning ... |
DiegoGarcia
Replies: 14
Views: 11499
|
Forum: General CCS C Discussion Posted: Thu May 15, 2008 11:06 am Subject: Strange behavior, array of char not cleaning ... |
Now my mcr.c driver is reading in both directions track1 and 2 and working like a charm
Thanks for your help guys ;)
Regards,
Diego Garcia |
Topic: Strange behavior, array of char not cleaning ... |
DiegoGarcia
Replies: 14
Views: 11499
|
Forum: General CCS C Discussion Posted: Thu May 15, 2008 11:00 am Subject: Strange behavior, array of char not cleaning ... |
Works like a charm ;)
Thanks I had done that before but i didnt noted that the memset uses the size of the array .. :/
Thank you very mutch ckielstra and Ttelmah !
Regards,
Diego Garcia |
Topic: Strange behavior, array of char not cleaning ... |
DiegoGarcia
Replies: 14
Views: 11499
|
Forum: General CCS C Discussion Posted: Thu May 15, 2008 10:57 am Subject: Strange behavior, array of char not cleaning ... |
Ok let me try that way to see the results !
Thanks ckielstra ;)
Regards,
Diego Garcia |
Topic: Strange behavior, array of char not cleaning ... |
DiegoGarcia
Replies: 14
Views: 11499
|
Forum: General CCS C Discussion Posted: Thu May 15, 2008 10:39 am Subject: Strange behavior, array of char not cleaning ... |
Nice Ttelmah ;) doesnt noted that i2 wasnt being reseted.
Now it works ;)
But it just works that way !
int clear_tracks(char* track1, char* track2)
{
int i1, i2;
if( ... |
Topic: Strange behavior, array of char not cleaning ... |
DiegoGarcia
Replies: 14
Views: 11499
|
Forum: General CCS C Discussion Posted: Thu May 15, 2008 10:26 am Subject: Strange behavior, array of char not cleaning ... |
Ok ckielstra now just to be sure I've put it an break point on it and debuged with my ICD2, and its entering ...
I dont know why is this happening ...
Any more tips ?
Thanks a lote,
Regards, ... |
Topic: Strange behavior, array of char not cleaning ... |
DiegoGarcia
Replies: 14
Views: 11499
|
Forum: General CCS C Discussion Posted: Thu May 15, 2008 10:03 am Subject: Strange behavior, array of char not cleaning ... |
ok sorry for the bad explanation ckielstra,
I know that its entering because my to my program read an card I have to send the command 0x03 from usb so when the pic receives the command it sets the ... |
Topic: Strange behavior, array of char not cleaning ... |
DiegoGarcia
Replies: 14
Views: 11499
|
Forum: General CCS C Discussion Posted: Thu May 15, 2008 9:26 am Subject: Strange behavior, array of char not cleaning ... |
Yap, its true because I send the command using the usb so if I pass the other card that has both the tracks it reads ok !
I've tryed with many ways, none of then works !
I will try to shift the ... |
Topic: Strange behavior, array of char not cleaning ... |
DiegoGarcia
Replies: 14
Views: 11499
|
Forum: General CCS C Discussion Posted: Thu May 15, 2008 9:16 am Subject: Strange behavior, array of char not cleaning ... |
This doesn't works to :/
I've tried with the memset function to but it don't work too !
The strange thing is that if I pass another card that has both the tracks it works it fills the array with ... |
Topic: Strange behavior, array of char not cleaning ... |
DiegoGarcia
Replies: 14
Views: 11499
|
Forum: General CCS C Discussion Posted: Thu May 15, 2008 8:47 am Subject: Strange behavior, array of char not cleaning ... |
Hi guys I was trying to empty an array that was filled in my aplication but it doesnt fills, if i put another data over it, it works but if I just try to empty not happens ...
i've tryed that way:
... |
Topic: Need help with magnetic card reader |
DiegoGarcia
Replies: 6
Views: 15985
|
Forum: General CCS C Discussion Posted: Wed May 07, 2008 9:13 am Subject: Ok the problem is solved now ;) |
Ok I've done the full reading operation and it works amazing
now can some of you help me doing the lrc check ?
Here is the code, just the lrc and parity check is not working, but all the data is ... |
Topic: Need help with magnetic card reader |
DiegoGarcia
Replies: 6
Views: 15985
|
Forum: General CCS C Discussion Posted: Tue May 06, 2008 5:29 pm Subject: Need help with magnetic card reader |
Hi guys I've changed the mcr.c file to read in both directions, but its very strange the data seens different when passed in the other direction ...
Here is my code
int mcr_read(char* track1=0 ... |
Topic: Doubts about the shift_right and shift_left functions |
DiegoGarcia
Replies: 2
Views: 4076
|
Forum: General CCS C Discussion Posted: Mon Apr 14, 2008 12:40 pm Subject: Doubts about the shift_right and shift_left functions |
Nice tip PCM Programmer I will try to do it !
Thanks regards,
Diego Garcia |
Topic: Doubts about the shift_right and shift_left functions |
DiegoGarcia
Replies: 2
Views: 4076
|
Forum: General CCS C Discussion Posted: Mon Apr 14, 2008 11:48 am Subject: Doubts about the shift_right and shift_left functions |
Hi guys,
I was wondering if anyone of you can explain me how the shift right and shift_left functions work !
I've see some documentation about it but I dont understand ..
If I have an byte li ... |
Topic: Little problem with mcr.c driver |
DiegoGarcia
Replies: 0
Views: 4869
|
Forum: General CCS C Discussion Posted: Thu Apr 10, 2008 1:09 pm Subject: Little problem with mcr.c driver |
Hi guys, its me again !
The mcr.c is working amazing the only problem that I dont figure out yet is that when I pass the first card into the magnetic card reader the mcr_read function fills both th ... |
Topic: Need help in Project... |
DiegoGarcia
Replies: 1
Views: 2904
|
Forum: General CCS C Discussion Posted: Wed Apr 09, 2008 3:01 pm Subject: Need help in Project... |
Hi I think you should start looking the example from ccs aka EX_WEBSV.c that is in the folder C:\Program Files\PICC\Examples\.
Regards,
Diego Garcia |
|