Author |
Message |
Topic: Hardware UART 18f452 |
uni_student
Replies: 2
Views: 4537
|
Forum: General CCS C Discussion Posted: Sun Oct 03, 2010 8:33 pm Subject: Hardware UART 18f452 |
Compiler version 3.249 |
Topic: Hardware UART 18f452 |
uni_student
Replies: 2
Views: 4537
|
Forum: General CCS C Discussion Posted: Sun Oct 03, 2010 8:32 pm Subject: Hardware UART 18f452 |
Hi,
This is fine
#use rs232(baud=57600, xmit=PIN_C6, rcv=PIN_C7, parity=N, bits=8, stream=GPS, ERRORS)
This not working
#use rs232(baud=57600, UART1, parity=N, bits=8, stream=GPS, ... |
Topic: Simple analogue |
uni_student
Replies: 7
Views: 5373
|
Forum: General CCS C Discussion Posted: Thu Jul 08, 2010 5:43 pm Subject: Simple analogue |
WOW!! I found a bug in CCS, thats just made my day! Cheers PCM all working now! |
Topic: Simple analogue |
uni_student
Replies: 7
Views: 5373
|
Forum: General CCS C Discussion Posted: Thu Jul 08, 2010 3:19 pm Subject: Simple analogue |
Yeah i checked over about a million times and no constants for setup_adc_ports are evident. Checked 18f1230 aswell and nothing, Tried a few other header files and they all have constants, dont know wh ... |
Topic: Simple analogue |
uni_student
Replies: 7
Views: 5373
|
Forum: General CCS C Discussion Posted: Thu Jul 08, 2010 4:00 am Subject: Simple analogue |
Compiler Version 3.249
18f1330 Header file makes no reference to setup_adc_ports??? Confused :( |
Topic: Simple analogue |
uni_student
Replies: 7
Views: 5373
|
Forum: General CCS C Discussion Posted: Thu Jul 08, 2010 1:21 am Subject: Simple analogue |
Hi, trying to follow examples off other threads, but the compiler does not like the following line setup_adc_ports(ALL_ANALOG|VSS_VDD);
Unidentified identifier???
Heres full code
#incl ... |
Topic: Retrieving variables contents after power off. |
uni_student
Replies: 4
Views: 7759
|
Forum: General CCS C Discussion Posted: Wed May 26, 2010 3:17 am Subject: Retrieving variables contents after power off. |
Thanx for reply,
in the line
#ROM 0x2100 = {0x00}
how do you determine the rom address (0x2100)? Is this chosen randomly or that value for a reason? |
Topic: Retrieving variables contents after power off. |
uni_student
Replies: 4
Views: 7759
|
Forum: General CCS C Discussion Posted: Tue May 25, 2010 7:33 pm Subject: Retrieving variables contents after power off. |
Hi, trying to store a value that changes into a variable, int mode; , switch off power to pic, and turn back on and retrieve the last value that was in that variable. Does declaring int mode; always ... |
Topic: Simple division not working |
uni_student
Replies: 2
Views: 3347
|
Forum: General CCS C Discussion Posted: Wed May 12, 2010 4:46 pm Subject: Simple division not working |
Cheers, dude.
int16 made it work, knew it was something simple:) |
Topic: Simple division not working |
uni_student
Replies: 2
Views: 3347
|
Forum: General CCS C Discussion Posted: Wed May 12, 2010 3:55 am Subject: Simple division not working |
Hi there, getting unrealistic values for average velocity(avspd) on display. No problems getting current speed (tpspd) from gps and displaying it, but calculating average speed is not working. Am i mi ... |
Topic: GPS and 2 baud rates |
uni_student
Replies: 4
Views: 4344
|
Forum: General CCS C Discussion Posted: Tue May 04, 2010 3:55 pm Subject: GPS and 2 baud rates |
Thanx for reply.
I've had both modules on the hyperterminal and messages, commas, etc are the same. Forgot to mention the LCD is running at 9600 baud, so I am switching between 9600 and 4800 all th ... |
Topic: GPS and 2 baud rates |
uni_student
Replies: 4
Views: 4344
|
Forum: General CCS C Discussion Posted: Tue May 04, 2010 3:45 am Subject: GPS and 2 baud rates |
Hi, im trying out a new gps module which is using 4800 baud. Problem im having is reading time info from the RMC message and displaying onto LCD with the following format "HH:MM:SS". Old ... |
Topic: 4800 and 9600 Baud |
uni_student
Replies: 1
Views: 3267
|
Forum: General CCS C Discussion Posted: Wed Apr 28, 2010 2:21 am Subject: 4800 and 9600 Baud |
Hi, need to interface two modules. I need to receive data at 4800 bps to one module and send 9600 bps to the other. Can this be done, what are my options? Using PIC18F452.
Help appreciated, Cheers |
Topic: 2 lines of code greedy on ROM |
uni_student
Replies: 2
Views: 3228
|
Forum: General CCS C Discussion Posted: Sat Oct 10, 2009 12:18 am Subject: 2 lines of code greedy on ROM |
andrewg
I used a less precise measurement in conjunction with atoi instead of atof which has certainly fixed the problem.
Cheers |
Topic: 2 lines of code greedy on ROM |
uni_student
Replies: 2
Views: 3228
|
Forum: General CCS C Discussion Posted: Fri Oct 09, 2009 10:45 pm Subject: 2 lines of code greedy on ROM |
Pic 16f716
Before adding these 2 lines ROm usage is 78%
dist=dist + (atof(temp)/3600);
printf("%1.2fkm ", dist);
After "Out of ROM" Error me ... |
|