Author |
Message |
Topic: 1-wire RS232 |
apl01
Replies: 17
Views: 15544
|
Forum: General CCS C Discussion Posted: Thu Dec 27, 2007 10:34 pm Subject: 1-wire RS232 |
OK so it can done. What do you mean by passive pull up system? I was thinking of making both master and slaves always in the receiving state by making the Tx pins as inputs i.e input(Tx). When the sla ... |
Topic: 1-wire RS232 |
apl01
Replies: 17
Views: 15544
|
Forum: General CCS C Discussion Posted: Thu Dec 27, 2007 3:31 am Subject: 1-wire RS232 |
Is there any way of using 1-wire for RS232 communication between many slaves and a master?
Thanks. |
Topic: 12F675 RS232 Help |
apl01
Replies: 20
Views: 21781
|
Forum: General CCS C Discussion Posted: Thu Dec 27, 2007 3:18 am Subject: 12F675 RS232 Help |
I could not get the 12f675 to work but i tried my 12f683s and had no problem. I have no idea why since i did everything the same as the 12f683. Thanks for your help. |
Topic: 12F675 RS232 Help |
apl01
Replies: 20
Views: 21781
|
Forum: General CCS C Discussion Posted: Wed Dec 26, 2007 3:42 am Subject: 12F675 RS232 Help |
I tried:
if(getc()==10) // CR Carriage Return
but same problem.
The output voltages and baudrate settings are ok. Unfortunantly i cant use a crystal in my circuit. Has anyone been able to ... |
Topic: 12F675 RS232 Help |
apl01
Replies: 20
Views: 21781
|
Forum: General CCS C Discussion Posted: Sun Dec 23, 2007 7:10 pm Subject: 12F675 RS232 Help |
Yes i have. |
Topic: 12F675 RS232 Help |
apl01
Replies: 20
Views: 21781
|
Forum: General CCS C Discussion Posted: Sat Dec 22, 2007 9:03 pm Subject: 12F675 RS232 Help |
My compiler version is 4.057
I still cant send data to turn on the LED but i can recieve data from the PIC to the PC with the program below but garbage appears on the termianl rather than Hello World ... |
Topic: 12F675 RS232 Help |
apl01
Replies: 20
Views: 21781
|
Forum: General CCS C Discussion Posted: Sat Dec 22, 2007 3:06 am Subject: 12F675 RS232 Help |
I tried connecting up the PIC to the computers rs232 port and have been having difficulties getting it to work.
First off the circuit diagram from the max232 is slightly different to that of the CC ... |
Topic: 12F675 RS232 Help |
apl01
Replies: 20
Views: 21781
|
Forum: General CCS C Discussion Posted: Thu Dec 20, 2007 5:35 pm Subject: 12F675 RS232 Help |
Ok great thanks ill give it a shot. |
Topic: 12F675 RS232 Help |
apl01
Replies: 20
Views: 21781
|
Forum: General CCS C Discussion Posted: Thu Dec 20, 2007 4:49 pm Subject: 12F675 RS232 Help |
Yes thats a very good idea thanks but i dont have rs232 on my laptop is there a different chip i could use or convertor etc? |
Topic: 12F675 RS232 Help |
apl01
Replies: 20
Views: 21781
|
Forum: General CCS C Discussion Posted: Thu Dec 20, 2007 4:16 pm Subject: 12F675 RS232 Help |
I tried the code you suggested below but with still no luck, when using RxChar = 0x10 switching either pushbutton will switch on both LEDs when using RxChar == 0x10 Both LEDs flicker when either butto ... |
Topic: 12F675 RS232 Help |
apl01
Replies: 20
Views: 21781
|
Forum: General CCS C Discussion Posted: Wed Dec 19, 2007 7:34 pm Subject: 12F675 RS232 Help |
Yes i know sorry but my code is not accessible at the moment. Ok what you say about getc() makes sense i will give that a try thanks. |
Topic: 12F675 RS232 Help |
apl01
Replies: 20
Views: 21781
|
Forum: General CCS C Discussion Posted: Wed Dec 19, 2007 5:18 pm Subject: 12F675 RS232 Help |
GETC() not GETC(A) i sorry i cant type |
Topic: 12F675 RS232 Help |
apl01
Replies: 20
Views: 21781
|
Forum: General CCS C Discussion Posted: Wed Dec 19, 2007 5:17 pm Subject: 12F675 RS232 Help |
Sorry, the correct code is:
#include <12F675.h>
#device adc=8
#FUSES NOWDT, INTRC_IO, NOCPD, NOPROTECT, NOMCLR, NOPUT, NOBROWNOUT
#use delay(clock=4000000)
#use rs232(baud=9600,parity ... |
Topic: 12F675 RS232 Help |
apl01
Replies: 20
Views: 21781
|
Forum: General CCS C Discussion Posted: Wed Dec 19, 2007 4:32 pm Subject: 12F675 RS232 Help |
Hi,
I am trying to connect a master and around 50 slaves using 12F675/12F510s with bidirectional communication. I2C looked like the perfect choice but since these chips are incapable RS232 looks li ... |
Topic: Basic I2C for 12F675 problems |
apl01
Replies: 3
Views: 4448
|
Forum: General CCS C Discussion Posted: Wed Dec 19, 2007 2:38 am Subject: Basic I2C for 12F675 problems |
Ok, can i use rs232 instead of I2C? I have developed some rs232 code similar to that of the I2C code above which doesn't work should i post a new topic? |
|