Author |
Message |
Topic: 18F242 change from 3.278MHz to 20Mhz |
PICLeo
Replies: 5
Views: 8979
|
Forum: General CCS C Discussion Posted: Mon Feb 20, 2006 12:58 am Subject: 18F242 change from 3.278MHz to 20Mhz |
Hi
I use 22pF caps. So that should be allright. I also use exactly the options Grouchy mentioned.
Yesterday I also tried to get a very simple program started.
Its just like:
output_high(PI ... |
Topic: i2c_isr_state() |
PICLeo
Replies: 5
Views: 10017
|
Forum: General CCS C Discussion Posted: Fri Feb 17, 2006 2:15 am Subject: i2c_isr_state() |
Hi
I do have a working code over there. Maybe it helps you.
Just look for the int_ssp interrupt at the slave Pics. Maybe the code from Slave 2 is more easy to understand. The routines don't work ... |
Topic: 18F242 change from 3.278MHz to 20Mhz |
PICLeo
Replies: 5
Views: 8979
|
Forum: General CCS C Discussion Posted: Fri Feb 17, 2006 1:55 am Subject: 18F242 change from 3.278MHz to 20Mhz |
Hi
I do have a program that connects 3 18F242 Pics via I2c. At the moment all three pics are working with a 3.278Mhz crystal. Because of the reason that I do a lot of calculation with one of the sl ... |
Topic: CAN 2.0 B |
PICLeo
Replies: 1
Views: 4687
|
Forum: General CCS C Discussion Posted: Tue Jan 31, 2006 12:51 am Subject: CAN 2.0 B |
Hi
Did somebody ever tried to use the CAN BUS?
I didn't find one thread about this serial connection. What is it all about?
Better than I2C??
Bye
Martin |
Topic: i2c_isr_state() |
PICLeo
Replies: 5
Views: 10017
|
Forum: General CCS C Discussion Posted: Mon Jan 23, 2006 6:57 am Subject: i2c_isr_state() |
Hi
I tried to use the i2c_isr_state() routine within my program but it is not possible to compile the program. I also don't find it within the help files. Doesn't it exist in all versions?
I use v ... |
Topic: I2C whatever |
PICLeo
Replies: 1
Views: 3756
|
Forum: General CCS C Discussion Posted: Mon Jan 23, 2006 4:13 am Subject: I2C whatever |
Hi
Since a few days I try to get two 18F242 connected. Here the code.
MASTER:
BYTE data;
#int_TIMER1
TIMER1_isr()
{
output_high(PIN_B3);
i2c_start( ... |
Topic: I2C whatever |
PICLeo
Replies: 0
Views: 2881
|
Forum: General CCS C Discussion Posted: Mon Jan 23, 2006 4:12 am Subject: I2C whatever |
Hi
Since a few days I try to get two 18F242 connected. Here the code.
MASTER:
BYTE data;
#int_TIMER1
TIMER1_isr()
{
output_high(PIN_B3);
i2c_start( ... |
Topic: I2C with 18F242 |
PICLeo
Replies: 3
Views: 7561
|
Forum: General CCS C Discussion Posted: Wed Jan 18, 2006 8:30 am Subject: I2C with 18F242 |
Hi
I changed my program now and I do get the right data at the slave PIC (3). I checked it with Hyper Terminal.
I am still busy with sending the data back. Will take a while.
Something curiou ... |
Topic: I2C with 18F242 |
PICLeo
Replies: 3
Views: 7561
|
Forum: General CCS C Discussion Posted: Wed Jan 18, 2006 3:06 am Subject: I2C with 18F242 |
Hi
I thought the zero or one behind the slave-address indicates if the master wants to write or send. ?!
I tried it like that and the interrupt on the slave PIC occured.
I deleted the start an ... |
Topic: I2C with 18F242 |
PICLeo
Replies: 3
Views: 7561
|
Forum: General CCS C Discussion Posted: Tue Jan 17, 2006 7:07 am Subject: I2C with 18F242 |
HI
Today I tried to get a simple connection of two 18F242 started.
I just wanted to send a value from the master to the slave PIC and back. After that I send the value via RS232 to the PC to see i ... |
Topic: INT_RDA never stops? |
PICLeo
Replies: 6
Views: 9572
|
Forum: General CCS C Discussion Posted: Fri Jan 13, 2006 2:55 am Subject: INT_RDA never stops? |
Hi
I changed my program now and the transmission works quite well so far.
Thanks for the help.
I actually need this program to control a RCcar via Bluetooth. The data I send within the printf ... |
Topic: INT_RDA never stops? |
PICLeo
Replies: 6
Views: 9572
|
Forum: General CCS C Discussion Posted: Thu Dec 15, 2005 1:08 am Subject: INT_RDA never stops? |
Puh
Thats a lot. Could take a while.
Thank you so far. |
Topic: INT_RDA never stops? |
PICLeo
Replies: 6
Views: 9572
|
Forum: General CCS C Discussion Posted: Wed Dec 14, 2005 3:22 am Subject: INT_RDA never stops? |
Hi
I use the PIC 18F242.
What I am going to do is do send data via RS232. I made a computer program with Labview that makes it possible to send and receive data.
Every 500 ms the program star ... |
|