Author |
Message |
Topic: RAM over usage!! |
domdom
Replies: 5
Views: 5463
|
Forum: General CCS C Discussion Posted: Tue Aug 05, 2008 6:34 pm Subject: RAM over usage!! |
2 things come up in my mind:
first: How are ClientID and ID defined?
second: Buffer is bigger than AIS_String, how do you handle this possible overflow?
unsigned char Client_ID[6 ... |
Topic: RAM over usage!! |
domdom
Replies: 5
Views: 5463
|
Forum: General CCS C Discussion Posted: Tue Aug 05, 2008 4:53 am Subject: RAM over usage!! |
I have a few variables which consume large amount of RAM
#include <16F877A.h>
#device *=16
#device PASS_STRINGS = IN_RAM
unsigned char Buffer[86];
unsigned char Command[4 ... |
Topic: Changing the baudrate |
domdom
Replies: 7
Views: 6290
|
Forum: General CCS C Discussion Posted: Mon Oct 22, 2007 7:39 pm Subject: Changing the baudrate |
Hi all,
I did some search in the forum, but i failed to find any example related to my project.
My PIC will receive a data from a GPS with 9600bps and transmit the data to PC with 4800bps.
H ... |
Topic: weird case for rtc ds1302 |
domdom
Replies: 4
Views: 6370
|
Forum: General CCS C Discussion Posted: Sat Sep 22, 2007 7:47 am Subject: weird case for rtc ds1302 |
I am using real time clock to provide me timing information.
But my clock output in hyperterminal never update the seconds.
Output:
22/09/07
22:30:01
#include <16F873A.h>
#fuses H ... |
Topic: use i2c question! |
domdom
Replies: 18
Views: 32183
|
Forum: General CCS C Discussion Posted: Sat Mar 24, 2007 11:43 pm Subject: use i2c question! |
Hi PCM programmer,
Did you see the url? what is my problem for my window terminal?
Or may be the code is not working? |
Topic: use i2c question! |
domdom
Replies: 18
Views: 32183
|
Forum: General CCS C Discussion Posted: Thu Mar 22, 2007 6:18 am Subject: use i2c question! |
Hi PCM programmer,
I program the master.c code in my master PIC , and EX_SLAVE.c in my slave PC.
the output of terminal is like below:
[img]
http://img144.imageshack.us/img144/5611/outputuc3.g ... |
Topic: use i2c question! |
domdom
Replies: 18
Views: 32183
|
Forum: General CCS C Discussion Posted: Wed Mar 21, 2007 8:19 pm Subject: use i2c question! |
Hi, PCM_programmer,
Does this code work for master 16f877a? I pulled up two SDA and SCL with 4.7K resistor and program the slave chip(16f877a) with EX_SLAVE.c (without any modification)
But i fail ... |
Topic: help me on RS232 connection between 2 PICS |
domdom
Replies: 1
Views: 4624
|
Forum: General CCS C Discussion Posted: Tue Mar 20, 2007 7:15 pm Subject: help me on RS232 connection between 2 PICS |
You mention that you able to send a single byte between master and slave.
Can i see your code for master and slave via 232?
thanks! |
Topic: SPI master and slave |
domdom
Replies: 4
Views: 6824
|
Forum: General CCS C Discussion Posted: Tue Mar 20, 2007 7:39 am Subject: SPI master and slave |
Sorry, i just new to pic.
So in short
I just need to remove the
setup_spi(SPI_SLAVE | SPI_L_TO_H | SPI_CLK_DIV_16);
to
setup_spi(SPI_SLAVE | SPI_L_TO_H);
|
Topic: SPI master and slave |
domdom
Replies: 4
Views: 6824
|
Forum: General CCS C Discussion Posted: Mon Mar 19, 2007 3:29 am Subject: SPI master and slave |
I have two pics 16f877a. i am trying to communicate them with spi.
But the code seems not working. Below are my code for master and slave
master_spi.c
#if defined(__PCM__)
#include ... |
Topic: 2 (or 3) PICs communicating? |
domdom
Replies: 5
Views: 5472
|
Forum: General CCS C Discussion Posted: Mon Mar 19, 2007 12:44 am Subject: 2 (or 3) PICs communicating? |
How you get it works? Any modification you have done in your code? |
Topic: connect 20 pics |
domdom
Replies: 17
Views: 18391
|
Forum: General CCS C Discussion Posted: Sat Mar 17, 2007 11:29 am Subject: connect 20 pics |
ChangB,
do you mind to share your working code with us? currently working with a few pics communication. 18f4520 as master, 16f877a as slave |
Topic: bootloader question for 18f452 |
domdom
Replies: 26
Views: 19823
|
Forum: General CCS C Discussion Posted: Sat Mar 17, 2007 11:18 am Subject: bootloader question for 18f452 |
what about 16f877a?
I've tried a few times using Tiny bootloader...but it is not working |
Topic: Pic to pic code question ... |
domdom
Replies: 2
Views: 4526
|
Forum: General CCS C Discussion Posted: Sat Mar 17, 2007 7:28 am Subject: Pic to pic code question ... |
J_D ,
have you solved your problem? |
Topic: bootloader question for 18f452 |
domdom
Replies: 26
Views: 19823
|
Forum: General CCS C Discussion Posted: Sat Mar 17, 2007 5:08 am Subject: bootloader question for 18f452 |
santana, can you share the booatloader code for 16f877a or 18f4520?
I am looking for it so long. can you help me? |
|