Author |
Message |
Topic: CCS Modbus (RTU) libraries |
snock
Replies: 5
Views: 17816
|
Forum: General CCS C Discussion Posted: Mon Mar 23, 2020 8:53 pm Subject: CCS Modbus (RTU) libraries |
Sorry, I meant it's only irrelevant in the case of not comparing the received CRC with the calculated CRC. There still needs to be a way of detecting errors on the line.
I've been digging throug ... |
Topic: CCS Modbus (RTU) libraries |
snock
Replies: 5
Views: 17816
|
Forum: General CCS C Discussion Posted: Mon Mar 23, 2020 5:42 pm Subject: CCS Modbus (RTU) libraries |
The source of the EMI is irrelevant as noise on the RS485 line would yield a bad CRC, but it is indeed coming from the motor leads.
Yeah, I see where it is calculated in the modbus_phy_layer_rtu. ... |
Topic: CCS Modbus (RTU) libraries |
snock
Replies: 5
Views: 17816
|
Forum: General CCS C Discussion Posted: Fri Mar 13, 2020 8:30 pm Subject: CCS Modbus (RTU) libraries |
Hello everyone. I am using the CCS included Modbus library for a Modbus RTU project and everything is working normally except for what I think is lack of CRC error checking on received packets.
... |
Topic: lcd_symbol() on PIC16F19175 [Solved] |
snock
Replies: 11
Views: 23412
|
Forum: General CCS C Discussion Posted: Mon Jun 03, 2019 8:10 pm Subject: lcd_symbol() on PIC16F19175 [Solved] |
Okay, so after researching a bit more I have determined that compiler is fine. I added LCD_VOLTAGE_INT_LADDER_VDD to the setup_lcd() after reviewing my original xc8 code and all is well with the WA b ... |
Topic: lcd_symbol() on PIC16F19175 [Solved] |
snock
Replies: 11
Views: 23412
|
Forum: General CCS C Discussion Posted: Mon Jun 03, 2019 6:35 pm Subject: lcd_symbol() on PIC16F19175 [Solved] |
I can make the LCD work with XC8.
Post your XC8 test program.
/*
* File: main.c
* Author: x
*
* Created on March 9, 2019, 11:37 AM
*/
#define _XTAL_FREQ 1000000
... |
Topic: lcd_symbol() on PIC16F19175 [Solved] |
snock
Replies: 11
Views: 23412
|
Forum: General CCS C Discussion Posted: Mon Jun 03, 2019 6:29 pm Subject: lcd_symbol() on PIC16F19175 [Solved] |
Thanks. I tried the fuses you had recommended and it still hangs at lcd_symbol().
I haven't delved into the datasheet for the specific register that the compiler is waiting on, but I noticed this ... |
Topic: lcd_symbol() on PIC16F19175 [Solved] |
snock
Replies: 11
Views: 23412
|
Forum: General CCS C Discussion Posted: Sun Jun 02, 2019 7:23 pm Subject: lcd_symbol() on PIC16F19175 [Solved] |
Okay, I tried that. As far as flashing an LED goes, if you look right past the lcd_symbol() call, I do exactly that. That's how I know that it's hanging on lcd_symbol(). |
Topic: lcd_symbol() on PIC16F19175 [Solved] |
snock
Replies: 11
Views: 23412
|
Forum: General CCS C Discussion Posted: Sun Jun 02, 2019 11:57 am Subject: lcd_symbol() on PIC16F19175 [Solved] |
Sorry, yeah, that is important.
#include<16f19175.h>
#device ADC=10
#fuses RSTOSC_HFINTRC, NOCLKOUT, MCLR, PUT_64MS, PPS1WAY
#use delay(clock=8M)
//#use fast_io(c)
#i ... |
Topic: lcd_symbol() on PIC16F19175 [Solved] |
snock
Replies: 11
Views: 23412
|
Forum: General CCS C Discussion Posted: Sun Jun 02, 2019 11:10 am Subject: lcd_symbol() on PIC16F19175 [Solved] |
Hello. I just upgraded to the latest v5 compiler (v5.085) and the lcd_symbol() is hanging. I've used CCS successfully with the LCD peripheral on a PIC16F1937 in the past without problems, but on the ... |
Topic: RN4020 and EzAppLynx |
snock
Replies: 1
Views: 34409
|
Forum: EZ App Lynx Posted: Tue Dec 06, 2016 9:43 am Subject: RN4020 and EzAppLynx |
Greetings. I am looking to use the RN4020 and EzAppLynx in a project here and while I have not yet upgraded to a newer version of the CCS compiler with the necessary libraries, I would like to know w ... |
Topic: CCS Modbus library hangups |
snock
Replies: 0
Views: 4786
|
Forum: General CCS C Discussion Posted: Mon Aug 05, 2013 6:51 am Subject: CCS Modbus library hangups |
I am using the CCS modbus library from v1.124 and am experiencing a rare hang up. I have enabled the WDT on the part (PIC18F2680) but I am not sure that the micro itself is hanging. I have a red/gre ... |
Topic: Transmitting int16 value through i2c |
snock
Replies: 17
Views: 27388
|
Forum: General CCS C Discussion Posted: Fri Aug 02, 2013 9:14 am Subject: Transmitting int16 value through i2c |
Ok, great. I appreciate the help.
Here is the routine I am testing now:
// * I2C INTERRUPT HANDLER *****************************************************
#int_ssp
void i2c_handler(void ... |
Topic: Transmitting int16 value through i2c |
snock
Replies: 17
Views: 27388
|
Forum: General CCS C Discussion Posted: Fri Aug 02, 2013 8:32 am Subject: Transmitting int16 value through i2c |
Ttelmah, thanks for the pointers. I guess I am still a little confused. I thought that state==0 is the i2c address. So you are saying to insert a
if(state==0) i2c_read(); into my ... |
Topic: Transmitting int16 value through i2c |
snock
Replies: 17
Views: 27388
|
Forum: General CCS C Discussion Posted: Fri Aug 02, 2013 6:21 am Subject: Transmitting int16 value through i2c |
Well, another peculiarity is that the code when compiled with version 4.050 will function properly but when compiled with version 4.124 does not function.
Here is the code which does not function ... |
Topic: Transmitting int16 value through i2c |
snock
Replies: 17
Views: 27388
|
Forum: General CCS C Discussion Posted: Thu Aug 01, 2013 6:25 am Subject: Transmitting int16 value through i2c |
Thanks for the head's up on the BSR15 issue. We've been having issues with the i2c on PIC16F882s so I will try it with it off. It's a very intermittent problem and hopefully this fixes it. |
|