Questions tagged [pic-ccs]

Compiler and IDE for Microchip PIC microcontrollers. Compiler is published by Custom Computer Services, Inc. (abbreviated to CCS in PIC circles). **Not to be confused** with Code Composer Studio published by Texas Instruments.

Filter by
Sorted by
Tagged with
0
votes
2answers
74 views

NTP Time calculating

I have this code and i use in my device. ...
0
votes
1answer
68 views

Clock Switching on PIC24

I am running a PIC24F32KA302 using the Low Power RC with Postscaler (FRCDIV) clock source at 250 KHz. I would like to switch the clock in the code to 8 MHz FRC Oscillator with Postscaler and PLL ...
5
votes
3answers
1k views

Is there a problem with using delay functions when using internal oscillator in PIC ?

I am doing a project that requires having the micro-controller to use the delay_ms() functions (compiler CCS C) to wait for a determined period of time. I am using PIC 16f628A and while the program ...
-3
votes
2answers
274 views

pic ccs c 16f84a.h [closed]

I didn't find a solution to this error. I already tried every thought I had. I searched a lot on the net and didn't find a thing. Generally the answer is to add a bracket ...
-2
votes
2answers
726 views

how to change reference voltage in an analog to digital converter in pic16f877 [closed]

I am using pic16f877a adc converter with ccs compiler and i wish to vary my reference voltages, vref+ and vref-. How do i do this?
2
votes
1answer
995 views

USB Keyboard with 18F2550

I'm trying to build my own mechanical keyboard. Everyone uses Teensy as for as i can see. I wanna use PIC18F2550 instead. I'm using CCS C btw. The problem is, i can't send more than 5 bits at all. ...
1
vote
2answers
2k views

CCS PIC C: What is the difference between #INT_TIMER0 and #INT_RTCC?

In CCS PIC C Compiler, there are two interrupts and both are tied to Timer0 overflowing. These are called #INT_TIMER0 and #INT_RTCC. What does RTCC mean and is #INT_TIMER0 not sufficient?
1
vote
1answer
3k views

Does any MPLAB compiler e.g XC8 have built in functions to control PIC peripherals like in CCS PIC C

The CCS compiler provides a lot of built-in functions to access and use the PIC microcontroller's peripherals. This makes it very easy for the users to configure and use the peripherals without going ...
0
votes
1answer
989 views

Unable to use ICD3 with CCS C Compiler

I have recently bought ICD3 since I think that being able to debug a microcontroller program requires that we be able to see what is happening inside it. I really want to learn this stuff :) I have a ...
3
votes
3answers
655 views

Frequently used functions, performance improvements using static variables?

Does defining variables (large arrays) as static inside a function have any performance improvements if the function is to be called repeatedly say in the order of seconds?
1
vote
1answer
967 views

Sleep modes on CCS PIC 18F87J11

I am using timer1 as my 100 ms interrupt clock timer. I don't use hardware WDT, I do this myself. Can I sleep (or idle) the processor and just wake up when the 100 ms clock interrupt goes off? If so, ...
-1
votes
1answer
2k views

Set Output Port High Low

I'm using MPLAB to compile a program in C using the CCS compiler. I want to set an output port as high or low using defined ports. #bit portOut1 = PORTC.0 So, I ...
2
votes
1answer
4k views

Unable to compile (build) code with MPLAB for PIC with CCS C compiler

I'm a newbie trying to lean PIC, i downloaded MPLAB and MPLAB X ide . Ihave done this around 100 times and looked over web enough before asking this question, but my code is not compiled and it is ...
0
votes
4answers
3k views

PIC16F877a input always true

I am programming a PIC16F877a with 3 toggle switches and a 20 x 4 LCD. The 3 switches are soldered to pins B0 - B2 on the PIC. The other end of the switches is connected to +5v (PortsB have internal ...
1
vote
1answer
453 views

LMB204BDC with CCS Flex 4x20 driver not displaying text

I am trying to get an LMB204BDC LCD screen working with a PIC16F877a and the Flex 4x20 Driver (I'm programming in CCS BTW), however for some reason the text is not displayed. Before, I mistaked the ...