Author |
Message |
Topic: led blinking issue |
td
Replies: 1
Views: 5563
|
Forum: General CCS C Discussion Posted: Mon Feb 01, 2016 4:50 am Subject: led blinking issue |
hi,
In our project, we have 2 set point values (example, 5 and 10 ). When one set point crosses, one led starts blink continuously. When 2nd crosses, 2nd led will start blinking.
We used timer inte ... |
Topic: modbus error with pic18f87k90 |
td
Replies: 17
Views: 23731
|
Forum: General CCS C Discussion Posted: Thu Aug 06, 2015 12:19 am Subject: solved |
idea is great!!!!!!
Okay, and this is probably my last input to this thread, I'd do that by having just ten read-only registers for a single event. Then I'd have a read-only event status register, ... |
Topic: modbus error with pic18f87k90 |
td
Replies: 17
Views: 23731
|
Forum: General CCS C Discussion Posted: Wed Aug 05, 2015 4:31 am Subject: modbus error with pic18f87k90 |
compiler version: 4.119
Our project is a data logger. We used rtc ds1302 to get the date and time. if any events occurs, the data with date and time will be saved in eeprom 24lc16. For each event, ... |
Topic: modbus error with pic18f87k90 |
td
Replies: 17
Views: 23731
|
Forum: General CCS C Discussion Posted: Wed Aug 05, 2015 12:45 am Subject: modbus error with pic18f87k90 |
Are you getting timeouts, or are you getting errors? Which is it? What is the actual problem?
when i use 18f4620 with modbus register length 21, it was working perfect.
when i use the same hardw ... |
Topic: modbus error with pic18f87k90 |
td
Replies: 17
Views: 23731
|
Forum: General CCS C Discussion Posted: Mon Aug 03, 2015 5:26 am Subject: modbus error with pic18f87k90 |
both circuit are similar. only difference microcontroller.
via optocoupler connected to sn75176 IC.
in code, we used
case FUNC_READ_HOLDING_REGISTERS:
case FUNC_READ_INPUT_REG ... |
Topic: modbus error with pic18f87k90 |
td
Replies: 17
Views: 23731
|
Forum: General CCS C Discussion Posted: Sun Aug 02, 2015 10:51 pm Subject: modbus error with pic18f87k90 |
again.... it is showing timeout error for last 2 days....
but when i connect another device having 18f4620 controller, modbus is working without any timeout. |
Topic: modbus error with pic18f87k90 |
td
Replies: 17
Views: 23731
|
Forum: General CCS C Discussion Posted: Thu Jul 30, 2015 3:32 am Subject: solved |
now its working.......
thank you for your support....
for last 3 days it was showing TIMEOUT. but today, it is working. but some times.. it is showing timeout.
...
#define MODBUS_TYPE ... |
Topic: modbus error with pic18f87k90 |
td
Replies: 17
Views: 23731
|
Forum: General CCS C Discussion Posted: Wed Jul 29, 2015 4:33 am Subject: modbus error with pic18f87k90 |
i checked the above code with and without #device ICD=TRUE .
but the same result - TIME OUT.
we are not using debug option.
directly programing using pickit3.
But i dont know why the same co ... |
Topic: modbus error with pic18f87k90 |
td
Replies: 17
Views: 23731
|
Forum: General CCS C Discussion Posted: Wed Jul 29, 2015 3:20 am Subject: modbus error with pic18f87k90 |
deleted delay_ms( 1000 ) . then also not connected.
termination resistor 120E, and bias is 10K. same hardware successfully communicate with PIC18f4620 and modbus.
i have connected leds in RX an ... |
Topic: modbus error with pic18f87k90 |
td
Replies: 17
Views: 23731
|
Forum: General CCS C Discussion Posted: Wed Jul 29, 2015 2:30 am Subject: modbus error with pic18f87k90 |
i changed the code..
#define MODBUS_TYPE MODBUS_TYPE_SLAVE
#define MODBUS_SERIAL_TYPE MODBUS_RTU
#define MODBU ... |
Topic: modbus error with pic18f87k90 |
td
Replies: 17
Views: 23731
|
Forum: General CCS C Discussion Posted: Tue Jul 28, 2015 11:50 pm Subject: modbus error with pic18f87k90 |
hi,
when i interface sn75176 IC with pic18f4620, i can do modbus communication. we are using modbus.c file
but when i connect sn75176 with pic18f87k90, in modbus tester, it shows TIME OUT. (status n ... |
Topic: 7 segment display off while executing modbus |
td
Replies: 6
Views: 10232
|
Forum: General CCS C Discussion Posted: Thu May 21, 2015 6:35 am Subject: 7 segment display off while executing modbus |
i have used timer for display .then also display is blinking while connecting to modbus. |
Topic: 7 segment display off while executing modbus |
td
Replies: 6
Views: 10232
|
Forum: General CCS C Discussion Posted: Wed May 20, 2015 2:54 am Subject: 7 segment display off while executing modbus |
We are using the display function in program.
void displayOn7Seg(int8 d1,int8 d2,int8 d3)
{
int8 number=0;
while(number<25)
{
... |
Topic: 7 segment display off while executing modbus |
td
Replies: 6
Views: 10232
|
Forum: General CCS C Discussion Posted: Tue May 19, 2015 10:42 pm Subject: 7 segment display off while executing modbus |
thanks for reply
but in our program we are not using timer.
Even if everything's working correctly, the time taken to in blocking calls to MODBUS response routine will probably cause some flic ... |
Topic: 7 segment display off while executing modbus |
td
Replies: 6
Views: 10232
|
Forum: General CCS C Discussion Posted: Tue May 19, 2015 6:41 am Subject: 7 segment display off while executing modbus |
hi,
In our project we are using 18f4620 controller, ccs compiler 4.119, 3 common cathode 7segment displays, modbus(rs 485).
If we are not using modbus, the 7segment is working properly. If we add c ... |
|