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 11 matches
CCS Forum Index
Author Message
  Topic: RS232 missing characters
turpin62

Replies: 10
Views: 23769

PostForum: General CCS C Discussion   Posted: Tue Oct 17, 2017 9:26 am   Subject: Update
OK so I set up two laptops one monitoring the PIC UART and one monitoring the RS232 output from the FDTI serial port

This is data 3651
This is data3652
his is data 3653
This is data 3654
RS232 ...
  Topic: RS232 missing characters
turpin62

Replies: 10
Views: 23769

PostForum: General CCS C Discussion   Posted: Thu Oct 12, 2017 7:40 am   Subject: RS232 missing characters
Yeah, the baud rate is high. Reducing it even to 4k doesn't eliminate the problem, but does make it less frequent. Unfortunately, I have a lot of stuff going on with this card so I need the fast clock ...
  Topic: RS232 missing characters
turpin62

Replies: 10
Views: 23769

PostForum: General CCS C Discussion   Posted: Thu Oct 12, 2017 5:47 am   Subject: RS232 missing characters
That is a fair point. I have tried 2 different PCs with Hyperterm, Teraterm and an in house terminal emulator and they all see the same.

I am going to splice into the UART output with a signal anal ...
  Topic: Sleep mode for PIC 24HJ64GP504
turpin62

Replies: 23
Views: 45512

PostForum: General CCS C Discussion   Posted: Thu Oct 12, 2017 4:43 am   Subject: Sleep mode for PIC 24HJ64GP504
You should be able to use the same trick to monitor the CAN data line and wake up on message. You need to configure the CAN RX data pin to be an external interrupt during sleep and reconfigure it to b ...
  Topic: RS232 missing characters
turpin62

Replies: 10
Views: 23769

PostForum: General CCS C Discussion   Posted: Thu Oct 12, 2017 3:14 am   Subject: RS232 missing characters
I am working on a motor controller using a PIC24EP256MC204.
The controller uses I2C to communicate with another board, SPI for the control of local ADCs and UART via an FDTI UART to USB chip (FT232RL ...
  Topic: Subroutine returns to wrong point - any ideas
turpin62

Replies: 11
Views: 8721

PostForum: General CCS C Discussion   Posted: Sun Mar 23, 2008 12:30 pm   Subject: Subroutine returns to wrong point - any ideas
Finally had a bit of time to sort out a short code that shows the problem - below.

Used #ORG to force the getid function to call across the memory page boundary.

As included here the sleep comma ...
  Topic: Subroutine returns to wrong point - any ideas
turpin62

Replies: 11
Views: 8721

PostForum: General CCS C Discussion   Posted: Thu Mar 20, 2008 11:53 am   Subject: Subroutine returns to wrong point - any ideas
Hi Ken,

I had the same thought this morning and so upgraded to 4.069.

The compilation above is from 4.069.
  Topic: Subroutine returns to wrong point - any ideas
turpin62

Replies: 11
Views: 8721

PostForum: General CCS C Discussion   Posted: Thu Mar 20, 2008 9:39 am   Subject: Subroutine returns to wrong point - any ideas
The problem only occurs when the call to getid() is on a different memory page to the function code and the ID space. In my case the call is on the page above 0x200 and the function and ID space is be ...
  Topic: Subroutine returns to wrong point - any ideas
turpin62

Replies: 11
Views: 8721

PostForum: General CCS C Discussion   Posted: Thu Mar 20, 2008 5:15 am   Subject: Subroutine returns to wrong point - any ideas
Cutting down the code actually makes the problem go away which probably gives a clue as to the nature of the problem

The ID location is set up by #define to reserve some space

#org 0x00ef, 0x00f ...
  Topic: Subroutine returns to wrong point - any ideas
turpin62

Replies: 11
Views: 8721

PostForum: General CCS C Discussion   Posted: Wed Mar 19, 2008 1:49 pm   Subject: Subroutine returns to wrong point - any ideas
1) Not using #SEPARATE but .lst file reports

Stack: 2 worst case (1 in main + 1 for interrupts)

2) There is an ASM jump to pick up the ID. However, this code works on the same chip in anoth ...
  Topic: Subroutine returns to wrong point - any ideas
turpin62

Replies: 11
Views: 8721

PostForum: General CCS C Discussion   Posted: Wed Mar 19, 2008 1:20 pm   Subject: Subroutine returns to wrong point - any ideas
Hi,

I am writing a data transmision code for a PIC12F509 using PCWH compiler version 4.030. Thought this morning that this was a 20 minute job - ever the optimist!
The programme has a call once r ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group