Author |
Message |
Topic: 38kHz IR signal transmitter |
tunatopraktan
Replies: 2
Views: 11507
|
Forum: General CCS C Discussion Posted: Thu Apr 15, 2021 2:55 pm Subject: 38kHz IR signal transmitter |
How ??
There are several ways but we need to know which PIC you have to use.
Depending on the PIC, there are different internal peripherals that can be used.
Also you'll need to know how to 'puls ... |
Topic: 38kHz IR signal transmitter |
tunatopraktan
Replies: 2
Views: 11507
|
Forum: General CCS C Discussion Posted: Thu Apr 15, 2021 1:59 pm Subject: 38kHz IR signal transmitter |
38kHz IR signal transmitter
Hello friends.
I am working on a IR signal circuit. I want to control my Samsung TV. But i am confused.
I have a 20mHz external crystal. How will i create 38kHz car ... |
Topic: about LDR component |
tunatopraktan
Replies: 4
Views: 14532
|
Forum: General CCS C Discussion Posted: Thu Apr 15, 2021 1:51 pm Subject: about LDR component |
Thank you very much friends. |
Topic: about LDR component |
tunatopraktan
Replies: 4
Views: 14532
|
Forum: General CCS C Discussion Posted: Sat Apr 10, 2021 3:58 am Subject: about LDR component |
Hello friends,
I have a circuit to print pcb. The circuit has a LDR. I know all components model number except LDR. How can i understand the model of LDR ? I will send the circuit with BOM list to C ... |
Topic: RS485 communication problem |
tunatopraktan
Replies: 4
Views: 14177
|
Forum: General CCS C Discussion Posted: Mon Mar 29, 2021 4:27 am Subject: RS485 communication problem |
You just send a message back.
The whole point of this system is that provided the RS485 is properly
configured so all the transceivers are in receive mode when not sending
any device on the bus ... |
Topic: Receiving problem from RS232 controlled device |
tunatopraktan
Replies: 11
Views: 24686
|
Forum: General CCS C Discussion Posted: Fri Mar 26, 2021 9:41 am Subject: Receiving problem from RS232 controlled device |
Thank you Master.
One problem was solved. Another point I have to solve is I can not take feedback from device. Do you have any advice about that? |
Topic: Receiving problem from RS232 controlled device |
tunatopraktan
Replies: 11
Views: 24686
|
Forum: General CCS C Discussion Posted: Fri Mar 26, 2021 6:01 am Subject: Receiving problem from RS232 controlled device |
quick comment...
your code....
BYTE next_in;
BYTE next_out;
change to ...
BYTE next_in=0;
BYTE next_out=0;
You should ALWAYS preset any variable to a KNOWN value.
Pretty sure that RAM ... |
Topic: Receiving problem from RS232 controlled device |
tunatopraktan
Replies: 11
Views: 24686
|
Forum: General CCS C Discussion Posted: Fri Mar 26, 2021 2:41 am Subject: Receiving problem from RS232 controlled device |
Ex_SISR, stores the incoming data into a circular buffer.
In your main code, a byte is available when bkbhit says there is a byte.
You would need to read the bytes when they exist into a message ... |
Topic: Receiving problem from RS232 controlled device |
tunatopraktan
Replies: 11
Views: 24686
|
Forum: General CCS C Discussion Posted: Thu Mar 25, 2021 8:03 am Subject: Receiving problem from RS232 controlled device |
again.....
Have a look at ex_sisr.c, the CCS supplied program that shows how to receive data using the RDA_ISR and a buffer.
It'll be in the EXAMPLES folder....
Thank you for your advice temtro ... |
Topic: Receiving problem from RS232 controlled device |
tunatopraktan
Replies: 11
Views: 24686
|
Forum: General CCS C Discussion Posted: Thu Mar 25, 2021 7:41 am Subject: Receiving problem from RS232 controlled device |
An RS232 interrupt means _one_ byte is available for you to receive.
Just one.
You can't sit in the interrupt loading data.
The interrupt should load just one byte and increment the count and e ... |
Topic: RS485 communication problem |
tunatopraktan
Replies: 4
Views: 14177
|
Forum: General CCS C Discussion Posted: Thu Mar 25, 2021 5:08 am Subject: RS485 communication problem |
You are misunderstanding how get/send message works.
get doesn't 'look' for a specific value, it receives a message. You then have
to decode this.
The value passed are pointers to where you wan ... |
Topic: Receiving problem from RS232 controlled device |
tunatopraktan
Replies: 11
Views: 24686
|
Forum: General CCS C Discussion Posted: Tue Mar 23, 2021 4:30 am Subject: Receiving problem from RS232 controlled device |
Hello friends,
I control a rs232 controlled device (a hdmi switcher) via rs232 protocol. While i am sending the code, everything is fine. But when i sent the code, the device send the feedback data t ... |
Topic: RS485 communication problem |
tunatopraktan
Replies: 4
Views: 14177
|
Forum: General CCS C Discussion Posted: Tue Mar 23, 2021 3:23 am Subject: RS485 communication problem |
Hello friends,
I am working on a project that has 4 circuits. And they will communicate with each other. I have started from basic with two circuits. I am using standard <rs485.c> library.
... |
|