Author |
Message |
Topic: Code works - but did I code it ok? |
Chantry
Replies: 3
Views: 5882
|
Forum: General CCS C Discussion Posted: Sat Feb 12, 2011 12:21 pm Subject: Code works - but did I code it ok? |
Are there any examples online of this kind of system in CCS C? |
Topic: Code works - but did I code it ok? |
Chantry
Replies: 3
Views: 5882
|
Forum: General CCS C Discussion Posted: Fri Feb 11, 2011 6:51 pm Subject: Code works - but did I code it ok? |
Hi,
This code works, but I was wondering if it is optimal code. It is designed to either read rfid tags and print the track name on the screen, or generate random numbers and print the track name o ... |
Topic: Random Number between a range? |
Chantry
Replies: 2
Views: 8165
|
Forum: General CCS C Discussion Posted: Tue Feb 08, 2011 5:24 am Subject: Random Number between a range? |
Thank you very much, I did search but couldn't find those mentioned threads. |
Topic: Random Number between a range? |
Chantry
Replies: 2
Views: 8165
|
Forum: General CCS C Discussion Posted: Mon Feb 07, 2011 6:37 pm Subject: Random Number between a range? |
Hi,
I found this code:
char random_byte;
char rand(void) {
char sum;
sum = 0;
// This calculates parity on the selected bits (mask = 0xb4).
if ... |
Topic: RFID Code Help |
Chantry
Replies: 8
Views: 10173
|
Forum: General CCS C Discussion Posted: Wed Feb 02, 2011 12:18 pm Subject: RFID Code Help |
Hi,
Ive looked at this code and made a few tweaks. It still has the problem of the array size, but I think I have put a terminator on the string correctly and integrated your LCD code.
#include ... |
Topic: RFID Code Help |
Chantry
Replies: 8
Views: 10173
|
Forum: General CCS C Discussion Posted: Tue Feb 01, 2011 5:25 pm Subject: RFID Code Help |
This is what I understand so far. The total RFID string which is sent is 20, but the RFID tag portion I need is only 12, this is why the max length is 20, but I understand that this might not be the b ... |
Topic: RFID Code Help |
Chantry
Replies: 8
Views: 10173
|
Forum: General CCS C Discussion Posted: Tue Feb 01, 2011 4:59 pm Subject: RFID Code Help |
Thank you very much for the advice on my code. I will use your help to hopefully get my unit working tomorrow.
- James |
Topic: RFID Code Help |
Chantry
Replies: 8
Views: 10173
|
Forum: General CCS C Discussion Posted: Tue Feb 01, 2011 10:25 am Subject: RFID Code Help |
Hi.
I would really appreciate help on this. I am trying to show the RFID serial string on the LCD.
I've worked on the code above and got it to this stage:
#include <16F88.H>
#fuses INT ... |
Topic: RFID Code Help |
Chantry
Replies: 8
Views: 10173
|
Forum: General CCS C Discussion Posted: Mon Jan 31, 2011 2:50 pm Subject: RFID Code Help |
Hi!
I successfully programmed my PIC using the flexible LCD drivers available on here. My body of code looked like this:
#include <16F88.H>
#fuses NOMCLR, INTRC_IO, NOBROWNOUT, NOWDT, NO ... |
Topic: MPLAB + CCS + LCD code |
Chantry
Replies: 2
Views: 6794
|
Forum: General CCS C Discussion Posted: Wed Jan 26, 2011 4:30 pm Subject: MPLAB + CCS + LCD code |
Hi,
I'm trying to program a PIC 16F88 with my PICKIT3. This is the CCS C code I'm using:
#include <16F88.H>
#fuses NOMCLR, INTRC_IO, NOBROWNOUT, NOWDT, NOPROTECT, PUT, NOLVP
#use delay ... |
Topic: RFID Problems.... |
Chantry
Replies: 8
Views: 10693
|
Forum: General CCS C Discussion Posted: Mon Jan 24, 2011 3:20 pm Subject: RFID Problems.... |
This is a very widely used RFID module and I happen to have one of these myself. Is there any reason why these 0's are appearing? I can't see anything in the code which would be causing this. |
Topic: Sensor - What kind will make life easy? |
Chantry
Replies: 1
Views: 2988
|
Forum: General CCS C Discussion Posted: Fri Jan 21, 2011 7:47 pm Subject: Sensor - What kind will make life easy? |
Hi,
I'm sorry for the slightly off topic question. I have a system in place which currently has two free I/O pins free on the PIC (not UART - they are in use).
I am after a kind of sensor, prefe ... |
Topic: How to learn CCS C |
Chantry
Replies: 1
Views: 4069
|
Forum: General CCS C Discussion Posted: Tue Jan 18, 2011 4:29 pm Subject: How to learn CCS C |
Hi.
I'm trying to learn CCS C. Does anyone know of any good resources and tutorials I can use to get me up to speed on the basics.
James |
|