Author |
Message |
Topic: Multiple DS18B20 in parasite Mode (finally working!!!) |
Got PIC
Replies: 17
Views: 71957
|
Forum: General CCS C Discussion Posted: Mon Jan 09, 2017 7:53 pm Subject: This doesn't work for me.. |
I'm using a 18F6527.
This code doesn't work at all for me... Not sure why.
#include <18F6527.H>
#fuses NOLVP,HS,PROTECT,NOWDT,PUT,BROWNOUT//,BORV45
#use delay(clock = 20000000 ... |
Topic: Changing Parity and Stop Bits on the FLY, #use RS232 no work |
Got PIC
Replies: 8
Views: 11353
|
Forum: General CCS C Discussion Posted: Wed Mar 26, 2008 7:54 pm Subject: Changing Parity and Stop Bits on the FLY, #use RS232 no work |
Ttelmah,
What I'm I checking "RS232_ERRORS" for? And what do I do on error? |
Topic: Changing Parity and Stop Bits on the FLY, #use RS232 no work |
Got PIC
Replies: 8
Views: 11353
|
Forum: General CCS C Discussion Posted: Wed Mar 26, 2008 4:02 pm Subject: Change Parity; Response to PCM programmer |
PCM programmer,
Thanks for the response.
Your code space concerns could be addressed by supporting a seperate function...maybe something like the "set_uart_speed()" function.
set_uart_p ... |
Topic: Changing Parity and Stop Bits on the FLY, #use RS232 no work |
Got PIC
Replies: 8
Views: 11353
|
Forum: General CCS C Discussion Posted: Wed Mar 26, 2008 9:48 am Subject: Changing Parity and Stop Bits on the FLY, #use RS232 no work |
The only thing I want to support is 8bit, (N)o Parity, (E)ven Parity, (O)dd Parity. Maybe 1 and 2 stop Bits. I'm sure this can be done some how. It's silly that CCS doesn't support this in the "s ... |
Topic: Changing Parity and Stop Bits on the FLY, #use RS232 no work |
Got PIC
Replies: 8
Views: 11353
|
Forum: General CCS C Discussion Posted: Tue Mar 25, 2008 9:08 pm Subject: Changing Parity and Stop Bits on the FLY, #use RS232 no work |
I'm banging my head against the wall trying to switch from XX, N,8,1 to some other Parity or STOP bits, on the fly. I tried using the #use rs232, using several streams, nothing seems to work?
I mad ... |
Topic: How to correct relay noise |
Got PIC
Replies: 24
Views: 28024
|
Forum: General CCS C Discussion Posted: Sat Mar 22, 2008 8:08 pm Subject: How to correct relay noise |
Is the relay connected directly to the OUTPUT Pin on the CPU?
You may be drawing way too much current from the CPU pin. You should alway isolate the CPU Pin from what ever you are driving, especially ... |
Topic: Saving a Floating point num to e2rom |
Got PIC
Replies: 1
Views: 3382
|
Forum: General CCS C Discussion Posted: Sat Mar 22, 2008 5:11 pm Subject: Saving a Floating point num to e2rom |
I tried the CCS examples for saving a floating point number.
I tried to write a 1.0001 to starting local e2rom address of 38. What get's displayed is 255.000
I'm not sure what I'm doing wrong.?.
... |
Topic: How to change the Parity, odd or even, on the fly using |
Got PIC
Replies: 3
Views: 5896
|
Forum: General CCS C Discussion Posted: Fri Mar 21, 2008 10:25 pm Subject: How to change the Parity, odd or even, on the fly using |
PCM programmer;
I'm not sure if I can use you example if I'm already using the STREAM for both UARTS????
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8,ERRORS, stream=No_Parity)
... |
Topic: How to change the Parity, odd or even, on the fly using |
Got PIC
Replies: 3
Views: 5896
|
Forum: General CCS C Discussion Posted: Fri Mar 21, 2008 9:09 pm Subject: How to change the Parity, odd or even, on the fly using |
Maybe I should have mentioned..
#use rs232(baud=115200,PARITY=N, BITS=8,xmit=PIN_C6, rcv=PIN_C7,ENABLE = PIN_A5,stream=COMM_PORT1,errors)
//#use rs232(baud=115200,PARITY=O, BITS=8,STOP=2, xmit=PIN ... |
Topic: How to change the Parity, odd or even, on the fly using |
Got PIC
Replies: 3
Views: 5896
|
Forum: General CCS C Discussion Posted: Fri Mar 21, 2008 8:23 pm Subject: How to change the Parity, odd or even, on the fly using |
I'm looking to change the RS232 parameters such as parity, stop bits, on the FLY. I have some code that allows a user to change the RS232 paramters and the only way I can see to chage the respect sett ... |
|