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 5 matches
CCS Forum Index
Author Message
  Topic: 16f1936 and output_bit
qve

Replies: 5
Views: 6293

PostForum: General CCS C Discussion   Posted: Sun May 02, 2010 5:49 pm   Subject: 16f1936 and output_bit

#define PWM2_TRIS 1137

unsigned int readjumperpos() // read jumper pos 0 = no jumper, 1 = jumper low (gnd), 2 = Jumper hi (+5)
{
char p = 0;
char tt;

outpu ...
  Topic: 16f1936 and output_bit
qve

Replies: 5
Views: 6293

PostForum: General CCS C Discussion   Posted: Sun May 02, 2010 5:25 pm   Subject: 16f1936 and output_bit
TRISC, BIT 1 is what I'm after. Pin names are just defines in the .h file based on below.

clipped this from the help

Pins are defined in the devices .h file. The actual value is a bit address ...
  Topic: 16f1936 and output_bit
qve

Replies: 5
Views: 6293

PostForum: General CCS C Discussion   Posted: Sun May 02, 2010 5:05 pm   Subject: 16f1936 and output_bit
It seems that the compiler really likes bank 3. Twice now the compiler has selected the incorrect bank, Once with asm code and now with the output_bit function. The asm code was fixed with asis but t ...
  Topic: PCM flash write 16f883
qve

Replies: 6
Views: 9160

PostForum: General CCS C Discussion   Posted: Mon Feb 01, 2010 9:46 am   Subject: PCM flash write 16f883
Thanks for the tip on the label_address function and the sample code as well. You are correct that it is a bit unorthodox but sometimes it's necessary.

It's amazing how one can spend time browsing ...
  Topic: PCM flash write 16f883
qve

Replies: 6
Views: 9160

PostForum: General CCS C Discussion   Posted: Sun Jan 31, 2010 11:48 am   Subject: PCM flash write 16f883
The reason I was thinking flash is so conditional statements would execute literally instead of reading an EE value into ram for comparison which has the potential to corrupted by program bugs, brown ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group