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 99 matches
CCS Forum Index
Author Message
  Topic: Function Pointer -> input()
stinky

Replies: 4
Views: 16732

PostForum: General CCS C Discussion   Posted: Thu Apr 01, 2021 11:02 am   Subject: Function Pointer -> input()
Is there something special about input()???
The problem is that 'input' is not actually a function. It is a internal macro expansion

Thank you for answering my question.
Is this fact documented i ...
  Topic: Function Pointer -> input()
stinky

Replies: 4
Views: 16732

PostForum: General CCS C Discussion   Posted: Thu Apr 01, 2021 9:12 am   Subject: Function Pointer -> input()
Are you saying that in order for me to successfully assign input to a function pointer, I need to assign it as


funcPtr = input(PIN_A0);
  Topic: Function Pointer -> input()
stinky

Replies: 4
Views: 16732

PostForum: General CCS C Discussion   Posted: Thu Apr 01, 2021 7:57 am   Subject: Function Pointer -> input()
Is there something special about input()???
This produces the error Line 8, Expecting a (

#include "16LF1829.h"
#device adc = 10
#define OSCILLATOR 16000000
#use delay (internal = ...
  Topic: WS2811 and PIC16F1824 trouble!!!
stinky

Replies: 28
Views: 71564

PostForum: General CCS C Discussion   Posted: Sat Dec 07, 2019 7:54 am   Subject: WS2811 and PIC16F1824 trouble!!!
This code example only communicates with one WS2812b module to show proof of concept of the function. You just need to keep calling that function with more data. And it looks like you'd then call th ...
  Topic: Combining 3 .hex files into one.
stinky

Replies: 10
Views: 22189

PostForum: General CCS C Discussion   Posted: Fri Jun 03, 2016 11:45 am   Subject: Combining 3 .hex files into one.
Not sure you can combine HEX files.
Any reason they couldn't just be one program?
  Topic: - SLEEP on the 16F616 just one PIN ISR [solved]
stinky

Replies: 13
Views: 20979

PostForum: General CCS C Discussion   Posted: Mon Feb 08, 2016 4:52 pm   Subject: - SLEEP on the 16F616 just one PIN ISR [solved]
I agree with Jeremiah.

enable_interrupts(INT_RA4);
enable_interrupts(INT_RA);
enable_interrupts(GLOBAL);

#INT_RA
void foo(void) {
input_a();
&# ...
  Topic: Non-constant variable initialization
stinky

Replies: 4
Views: 9328

PostForum: General CCS C Discussion   Posted: Mon Jul 06, 2015 2:14 pm   Subject: Non-constant variable initialization
Well the problem is that my short test program isn't accurately recreating the real problem I'm having.

The symptom was that "getvalue(READ);" was returning unexpected results the first t ...
  Topic: Non-constant variable initialization
stinky

Replies: 4
Views: 9328

PostForum: General CCS C Discussion   Posted: Mon Jul 06, 2015 9:48 am   Subject: Non-constant variable initialization
V4.141
Just got bit by a mistake. Kind of wish the compiler had thrown an error on me when I did this. Am i asking too much?

The line in question:
static unsigned int8 bar = savedValue(READ ...
  Topic: stepper motor for loop
stinky

Replies: 19
Views: 31979

PostForum: General CCS C Discussion   Posted: Wed Mar 04, 2015 4:42 am   Subject: stepper motor for loop
Data type and order of operations
void s1(unsigned int rev)
{
int j;
int i=0;

for(i=0;i<(rev*360/1.8);i++){
output_b(ax

You're performing float math on an integer and are you sur ...
  Topic: PK2CMD && CCS && RUBY[off topic]
stinky

Replies: 0
Views: 24049

PostForum: Code Library   Posted: Mon Feb 09, 2015 5:06 pm   Subject: PK2CMD && CCS && RUBY[off topic]
I'm not sure how many of you here are command line junkies. If you are, I've been using a ruby script that has been most helpful for running the command line version of the PICKit2.

You'll need th ...
  Topic: WS2811 and PIC16F1824 trouble!!!
stinky

Replies: 28
Views: 71564

PostForum: General CCS C Discussion   Posted: Mon Nov 17, 2014 4:47 pm   Subject: WS2811 and PIC16F1824 trouble!!!
Not sure if OP is still interested but I came across this thread while trying to get the 16LF1829 to run the WS2812b. I found the comments here very helpful. Hope this helps.
Edit: CCS PCM V4.141
...
  Topic: Varying Battery Loads
stinky

Replies: 8
Views: 11866

PostForum: General CCS C Discussion   Posted: Wed Oct 29, 2014 12:50 pm   Subject: Varying Battery Loads
RF_Developer:
...at their best when working with rechargables, when they track the battery's state and are used as part of the charge control loop and for tracking battery health, but they can be pre ...
  Topic: Varying Battery Loads
stinky

Replies: 8
Views: 11866

PostForum: General CCS C Discussion   Posted: Wed Oct 29, 2014 9:49 am   Subject: Varying Battery Loads
16LF1829
V4.141
2 Primary Lithium 123 Cells in Series
Load draws anywhere from 50mA - 2.5A
9 different load levels
PIC VDD @ 3.3V
I'm measuring battery voltage as a varied duty cycle is changing ...
  Topic: 16F1829 Arrays and EEPROM
stinky

Replies: 3
Views: 9337

PostForum: General CCS C Discussion   Posted: Tue Oct 14, 2014 3:17 pm   Subject: 16F1829 Arrays and EEPROM
not sure about the array.
For the eeprom try:

#ROM getenv("EEPROM_ADDRESS") = {1,2,3,4,5,6}
  Topic: Interrupt and two different output
stinky

Replies: 11
Views: 14472

PostForum: General CCS C Discussion   Posted: Tue Oct 07, 2014 9:24 am   Subject: Interrupt and two different output
Most likely that the line that says#include "button.c" is above your main headers. Move that line below the first lines: #include <18F4520.h>
#fuses HS,NOWDT,PUT,BROWNOUT,PUT,NOLVP ...
 
Page 1 of 7 Goto page 1, 2, 3, 4, 5, 6, 7  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group