CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 12 matches
CCS Forum Index
Author Message
  Topic: Basic MODBUS example
Pbernardi

Replies: 27
Views: 35458

PostForum: General CCS C Discussion   Posted: Wed Jun 28, 2006 10:35 am   Subject: Basic MODBUS example
Neutone,

Thanks for reply.

I�ve found a little mistake on your code, after change it worked.

/****************************************************/
/* Mean time to decode CRC ...
  Topic: Basic MODBUS example
Pbernardi

Replies: 27
Views: 35458

PostForum: General CCS C Discussion   Posted: Tue Jun 27, 2006 8:11 am   Subject: Basic MODBUS example
Hi,

I changed this page code by by code library�s code (http://www.ccsinfo.com/forum/viewtopic.php?t=19306&highlight=modbus) that looks more complete.

Debugging my code, I see that the ma ...
  Topic: Basic MODBUS example
Pbernardi

Replies: 27
Views: 35458

PostForum: General CCS C Discussion   Posted: Mon Jun 26, 2006 2:24 pm   Subject: Basic MODBUS example
Hi,

Reviving the topic.

I�ve tried to use the Neutone�s Code in a PIC18F452 with PCH 2.234, and I use the ModBusView (www.oceancontrols.com.au) to try to communicate to my PC.

I used th ...
  Topic: Transition from PIC16F876 to PIC16F916
Pbernardi

Replies: 8
Views: 13284

PostForum: General CCS C Discussion   Posted: Thu Oct 20, 2005 4:19 am   Subject: Transition from PIC16F876 to PIC16F916
Ok, here is the start of .h file

#include <16F916.h>

#use delay(clock=16000000)
#fuses HS, NOWDT, PROTECT, MCLR, BROWNOUT, NOFCMEN, NOIESO, PUT

#define LIMPA 0x01
#define RET ...
  Topic: Transition from PIC16F876 to PIC16F916
Pbernardi

Replies: 8
Views: 13284

PostForum: General CCS C Discussion   Posted: Wed Oct 19, 2005 10:43 am   Subject: Transition from PIC16F876 to PIC16F916
Thanks, Mike, but it didn�t work! Crying or Very sad

It looks like the pic didn�t run, I put a BEEP on first line, but nothing happens.

Any idea?
  Topic: Transition from PIC16F876 to PIC16F916
Pbernardi

Replies: 8
Views: 13284

PostForum: General CCS C Discussion   Posted: Wed Oct 19, 2005 6:49 am   Subject: Transition from PIC16F876 to PIC16F916

1. Are you running the internal oscillator?


No, I use an external clock. But It was working fine on 16F876, so, I don�t think it is a problem.


2. Make sure you ensure that your comparator ...
  Topic: Transition from PIC16F876 to PIC16F916
Pbernardi

Replies: 8
Views: 13284

PostForum: General CCS C Discussion   Posted: Wed Oct 19, 2005 6:33 am   Subject: Transition from PIC16F876 to PIC16F916
Hi,

I�m trying to change PIC form PIC16F876 to PIC16F916, but I have had some trouble. Whell, when I turn on my projetc, it doesn�t work! Confused

I�ve noted the PIC16F916 doesn�t have the L ...
  Topic: #INT_xxx HIGH
Pbernardi

Replies: 10
Views: 13670

PostForum: General CCS C Discussion   Posted: Thu Sep 15, 2005 5:12 am   Subject: #INT_xxx HIGH
Well, I found the light. Idea

I thought the CCS could be missconfigurating the priority bits for any reason and - bingo. The priorities were wrong.

So I configurated it by myself.

Ttelma ...
  Topic: #INT_xxx HIGH
Pbernardi

Replies: 10
Views: 13670

PostForum: General CCS C Discussion   Posted: Wed Sep 14, 2005 4:48 pm   Subject: #INT_xxx HIGH
I clear the flag in each interruption.

But bfemmel, look at it and see if it isn�t strange.

The program goes to line 0008 when the timer1 overflows.

But the timer1 is a low priority interrupt ...
  Topic: #INT_xxx HIGH
Pbernardi

Replies: 10
Views: 13670

PostForum: General CCS C Discussion   Posted: Wed Sep 14, 2005 4:13 pm   Subject: #INT_xxx HIGH
Well, I think it can be a bug.

The CCS generated the following code:

0000 EF04 GOTO 0x5c08
0008 EF5E GOTO 0xbc
000C 0000 NOP
000E 0000 NOP
0010 0000 ...
  Topic: #INT_xxx HIGH
Pbernardi

Replies: 10
Views: 13670

PostForum: General CCS C Discussion   Posted: Wed Sep 14, 2005 3:15 pm   Subject: #INT_xxx HIGH
Ttelmah,

Well, actually I don�t have a interrupt handler. Crying or Very sad So I relly need?

It would be so nice if this "HIGH" just modify the priority, and let the athers things untouched. Twisted Evil ...
  Topic: #INT_xxx HIGH
Pbernardi

Replies: 10
Views: 13670

PostForum: General CCS C Discussion   Posted: Wed Sep 14, 2005 3:06 pm   Subject: #INT_xxx HIGH
(The post is mine, i wasn�t logged in)

Well, the HIGH is a recent implementation. Looks very similar to FAST, buts the readme says that a high interruption can stop another interruption (such a FAS ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group