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 7 matches
CCS Forum Index
Author Message
  Topic: Problems with SFRs
Zezem

Replies: 6
Views: 14067

PostForum: General CCS C Discussion   Posted: Wed Jan 30, 2019 10:13 am   Subject: Problems with SFRs
My code compiles fine but if I do things like:

PORTB = 0xFF;
or
PORTC = 0x15;

the ports don't actually change. This worked with an old compiler v4.128 but when I use v5.065 I get all sorts of ...
  Topic: CCS compiler overwriting SFRs
Zezem

Replies: 11
Views: 25250

PostForum: General CCS C Discussion   Posted: Tue Jun 26, 2018 9:48 am   Subject: CCS compiler overwriting SFRs
Figured out the problem after posting the last reply.

Someone thought it was a good idea to use the same variable names

#bit Pump_Voltage = PORTA.1 //Pin 3 AN1
#bit _24VDC = PORTA.2 ...
  Topic: CCS compiler overwriting SFRs
Zezem

Replies: 11
Views: 25250

PostForum: General CCS C Discussion   Posted: Tue Jun 26, 2018 9:36 am   Subject: CCS compiler overwriting SFRs
Any #locate statements?. Any #byte or #word statements?.

Ok so there is a header file with #bit declarations that might be the problem:



// Registers.
// Created for 18f26k22 on 12-16-2011 ...
  Topic: CCS compiler overwriting SFRs
Zezem

Replies: 11
Views: 25250

PostForum: General CCS C Discussion   Posted: Tue Jun 26, 2018 8:05 am   Subject: CCS compiler overwriting SFRs
Thanks for the awesome support guys!

To be honest this is my boss's code. He is a smart man but the way he writes code is very old school and can be a pain to follow.

I will talk to him today a ...
  Topic: CCS compiler overwriting SFRs
Zezem

Replies: 11
Views: 25250

PostForum: General CCS C Discussion   Posted: Mon Jun 25, 2018 4:39 pm   Subject: CCS compiler overwriting SFRs
I'm pretty sure I saw something related to this on this forum and was just wondering if someone had an solution.

Right now I have a program that keeps assigning float variables to weird memory addr ...
  Topic: USB CDC Help
Zezem

Replies: 1
Views: 7337

PostForum: General CCS C Discussion   Posted: Mon Mar 06, 2017 2:31 pm   Subject: USB CDC Help
So I've been trying to get this pretty basic CDC project working but have ran out of ideas.

INFO:
PIC: 18F4550
Crystal 8 MHZ
Microchip Explorer 8 Dev Board

I think my fuses aren't set up ri ...
  Topic: Declaring Bit
Zezem

Replies: 1
Views: 6369

PostForum: General CCS C Discussion   Posted: Thu Mar 02, 2017 11:37 am   Subject: Declaring Bit
ok I'm having trouble compiling this code from my global.h file


extern int8 flags;

#BIT USB_BAD_BYTE_COUNT = flags.0 //error here
#BIT USB_BAD_CHECKSUM = flags.1 //error here
#BIT USB_WW_BUS ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group