285 Threads found on edaboard.com: Pic Ccs Compiler
Source down to line 46 include 8051 specific low level code and have to be rewritten for pic. Your compiler suite (XC8, Mikro-C, ccs C or what?) has library functions to simplify access to IO ports and UART.
Did you consider to learn something about pic programming or just looking for a volunteer to write the code for (...)
Microcontrollers :: 10-27-2016 10:42 :: FvM :: Replies: 5 :: Views: 533
i am using ccs pic compiler.
i want to use serial programming.
can someone send me the code in which i will simply send 16 bit int and receive to another MCU (pic16F886).
thanks in advance.
i am using this code to transmit . it transmits properly but receiving is creating proble
void transmit (void)
Microcontrollers :: 06-21-2016 17:24 :: Noman Yousaf :: Replies: 2 :: Views: 649
I have used ccs and mikroC as pic compiler.
now i am going to use AVR studio as AVR C compiler.
In beginning i am facing a problem about #define.
How can i define port as label like i want to use portb.0 as LED output.
when i write #define LED PORTB.0 it makes error.
what is the right way.
Secondly, from where (...)
Microcontrollers :: 03-29-2016 01:22 :: Noman Yousaf :: Replies: 4 :: Views: 543
i simply need to convert decimal (8 bit) to hex in ccs. In mikroC, that is so easy to convert by using "bcd2dec" built in function. but in ccs i think there is no any function like that so how can i do?
Microcontrollers :: 03-24-2016 10:12 :: Noman Yousaf :: Replies: 4 :: Views: 1820
When using any of the built in peripherals like the ADC or SPI e.t.c specific pins are already designed to be used as input or output for specific functions. e.g using spi_write shall drive the SDO and SCK pins on the pic. However, should the I/O direction of the involved pins always be set before these functions are called? i.e should I explicitly
Microcontrollers :: 03-17-2016 12:14 :: matrixofdynamism :: Replies: 5 :: Views: 486
Don't underestimate the effort of designing a correct simulation of pic hardware features for all processors. If you look at the various bugs produced by Proteus pic simulation, you get an idea about it. Cooperation of MPLAB SIM with ccs is rather smoothly. If you prefer to use the ccs IDE, you need to import the *.cof file (...)
Microcontrollers :: 03-17-2016 13:53 :: FvM :: Replies: 6 :: Views: 752
i actually want to use timer 1 as 16 bits. how to split the 16 bits into 8 bits to make it out to 2 ports (may b portb and c)
The TMR1 register in the pic consists of two individual 8-bit registers to store the lower and upper nibbles.
TRISB = 0x00; // PORTB as outp
Microcontrollers :: 01-03-2016 18:55 :: pradhan.rachit :: Replies: 6 :: Views: 897
I don't have any experience with MikroE. I'm using primarly ccs C for pic16 - pic24 and Microchip compiler for pic32.
My connection to ccs C originates from customer projects. As said, I was struggling with PCD (the pic24 compiler) a lot in the beginning, (...)
Microcontrollers :: 08-10-2015 12:55 :: FvM :: Replies: 6 :: Views: 1103
In ccs C compiler it is possible to set a multitude of interrupts and assign an ISR to it. I want to know what happens if multiple interrupts occur at the same time or if another interrupt occurs before the current ISR has not finished execution.
For example, here is a list of some of the possible interrupts:
Analog to digital conversion comp
Microcontrollers :: 07-13-2015 19:56 :: matrixofdynamism :: Replies: 4 :: Views: 755
we are interfacing sim 300 with pic18f. ,using ccs compiler
if i m sending at commands from microcontroller to modem , it is working perfect. we monitor via hyperterminal.
but if i m checking for 'OK' after each at command, it receives only for 1st at command.
here is my code
Microcontrollers :: 06-03-2015 11:35 :: dxn :: Replies: 1 :: Views: 708
This is Multiple I2C LCD code. It is written using ccs C compiler version 5.044. This si tested in Proteus and also Easypic v7 development board with 2 x 20x4 LCDs. LCDs should be HD44780 or compatible. I have used I2C LCDs and I2C LCD modules from Banggood.
I will soon post mikroC PRO pic and AVR versions of the code (...)
Show your DIY :: 05-04-2015 03:03 :: milan.rajik :: Replies: 1 :: Views: 1972
I want to start C programming for pic.
What compiler do you use, I also have a library full of diverse and powerful.
Micro c OR ccs
Microcontrollers :: 04-16-2015 08:03 :: rozmad :: Replies: 4 :: Views: 886
MPLAB is IDE. Which compiler are you using ? C18, Hi-Tech picC18, ccs C, XC8 ? Zip and post your complete MPLAB project files with all the necessary header files used.
Microcontrollers :: 11-17-2014 06:05 :: milan.rajik :: Replies: 3 :: Views: 814
I need "pic to pic interfacing by RS485 in ccs C compiler (using RS485.c)" codes and schematics. Can you share with me?
Microcontrollers :: 08-17-2014 12:02 :: kaSva :: Replies: 4 :: Views: 10696
It is typically good policy to specify the exact compiler to which you are referring.
I suspect it is of the ccs line of compilers, however it always pays to be specific when posting such a query.
Microcontrollers :: 08-04-2014 16:06 :: bigdogguru :: Replies: 2 :: Views: 635
the s1307 rtc has 56x8 ram. please send sample program for writing and reading in ram. i am using pic ccs complier
kindly send sample program are algorithim
Microcontrollers :: 07-28-2014 09:26 :: raman00084 :: Replies: 1 :: Views: 1257
I am trying to send a PWM signal on PortC5 (PWM1) using the latest ccs compiler(5.026).
This is the manual method of sending a PWM and it doesn't seem to be working.
I have followed the PWM Setup and generation on page 221 of pic16f1503 datasheet. I just couldn't get it to work. Anyone have anyidea what else I should be doing?
Microcontrollers :: 06-16-2014 18:56 :: rocky79 :: Replies: 1 :: Views: 1519
In the past I have used ccs C compiler that has built in functions for just about anything that we might want to do. These include:
RS232 I/O, SPI two wire I/O, Discrete I/O, Parallel port, I2C I/O, Processor controls, Bit/Byte Manipulation, Standard C Math, Voltage Ref, A/D Conversion, Standard C char / String, Timers, Standard C memory, Capture
Microcontrollers :: 06-03-2014 23:43 :: matrixofdynamism :: Replies: 1 :: Views: 941
This is to slow down the PWM ramp up.
It is an unusual procedure.
By the way, had you used pic Wizard tool which come with ccs toolset to get the values that you configured for PWM registers ?
Microcontrollers :: 05-20-2014 01:02 :: andre_teprom :: Replies: 13 :: Views: 2362
how to make bit addressable variable in ccs compiler .
like we make variables to access ports .
#bit led1 =portb.0
#bit led2 =portb.1
//now we can access bits and byte of this ports.
Microcontrollers :: 05-07-2014 14:25 :: easy electronics :: Replies: 1 :: Views: 1611
If you use both GPS and GSM then you should use a MCU with 2 UARTs. If you don't want to read GPS all the time but only want to read it when SMS is received then you can connect GSM and GPS both to one UART using bi-lateral switch and then select GSM to be connected all the time to UART. If SMS is received then you can read the SMS. Now you can swi
Microcontrollers :: 04-18-2014 04:17 :: milan.rajik :: Replies: 4 :: Views: 2111
I'm learning about how to control applications using ethernet. To start up, i want to toggle LED using Ethernet.
How to do this?
I'm using pic18F4550 Controller. ccs C compiler.
Any help please.
Microcontrollers :: 02-27-2014 11:32 :: hemnath :: Replies: 0 :: Views: 693
I agree, the original code looks suspicious. It does a shift then checks the LSB but overwrites it as it moves through each byte. It goes through the motions of converting to a single bit doesn't produce a result. Each time it goes through the 'for' loops it should store 'bit' somewhere. How it achieves that will depend on the desired format of t
Microcontrollers :: 02-25-2014 23:05 :: betwixt :: Replies: 2 :: Views: 2894
The function prototype and constant definitions in the post are cut from a ccs header file of dspic or similar device. setup_motor_pwm() is a ccs PCD (16-Bit pic compiler) built-in function. It's documented in the PCD online help for V4 and V5 compilers.
Apart from annoying cross-posting, (...)
Microcontrollers :: 02-25-2014 09:26 :: FvM :: Replies: 2 :: Views: 848
That's a strange thing to do but if it's what you want:
1. read the ADC
2. put the ADC value into the baud rate generator.
For example if you are using pic16/18 series devices, read the ADC and load the result into SPBRG.
Microcontrollers :: 01-20-2014 10:32 :: betwixt :: Replies: 12 :: Views: 1794
Your code is ccs compiler!!! And incomplete!!!
Change #include instead #include <16F877A.h>...
In MPLB change the toolsuite (menu Project - Set Language Toolsuite... and choose the ccs C Compiller......etc)...
Or create the project in pic C compiler...
Microcontrollers :: 01-11-2014 22:23 :: nagkiller :: Replies: 4 :: Views: 1909
Can someone help me with MikroC program for interfacing RFID reader(serial,125 KHz) with pic18f452
Microcontrollers :: 01-05-2014 11:27 :: Albey Mathew :: Replies: 2 :: Views: 869
Hi, I'm interfacing GLCD with pic 18LF2520, Oscillator type: Internal 1Mhz, ccs c compiler, GLCD: Winstar WG12232A-YYH
I having difficult in initializing the Graphic lcd. It does not have Enable pin.
Does anyone have sample code?
Thanks in advance :)
Microcontrollers :: 10-08-2013 10:50 :: hemnath :: Replies: 6 :: Views: 793
Why not read the compiler manual? Please consider that when passing a 16-bit variable, the expected maximum pulse width value is 4*period. This is essentially a pic hardware thing and not particularly related to ccs C. The ccs specific point is to scale 8-bit and 16-bit variables differently in the built-in function. (...)
Microcontrollers :: 09-23-2013 21:54 :: FvM :: Replies: 1 :: Views: 2345
HI, good nigth everyone ..
I´m making a memory gam with 8 button and a need a help how to make a C program in ccs compiler
for to make such task :
- if the button D1 is pressed Hold during 3 seconds turn ON the pic.
- and if the button D1 is pressed Hold again during 3 seconds turn OFF the pic.
Microcontrollers :: 09-17-2013 00:01 :: wilker_dias :: Replies: 5 :: Views: 614
There are two available in 18F series and have extensive online help available too.
RF, Microwave, Antennas and Optics :: 08-04-2013 08:14 :: umerhuzaifa :: Replies: 4 :: Views: 693
I am going to use enc28j60 with pic 16F877A. Will this circuit work well. Plz help.:-?
Microcontrollers :: 07-09-2013 13:30 :: Muhammad Owais Khan :: Replies: 5 :: Views: 1899
You need a compiler for that. Your code is for pic microcontroller. So you can download MPLAB IDE from microchip website. Its free of cost. There you can compile it using ccs c compiler or you can download ccs C to do that.
PC Programming and Interfacing :: 06-09-2013 16:45 :: shatruddha :: Replies: 1 :: Views: 1331
Microchip has lof of info for USB device.
I was use ccs compiler for program to communicate pic->PC via USB by virtual COM-Port
Microcontrollers :: 05-20-2013 13:39 :: MisterDi :: Replies: 1 :: Views: 408
i need to turn Timer1 on that on pic 16F877A for a time and then turn it off, then displaying the period of the time on LCD
my circuit on protues:
can anyone help me in coding this !!! i'm using Mikroc language
Microcontrollers :: 05-14-2013 22:18 :: NadaF :: Replies: 3 :: Views: 1098
i am using pic 16f877a and ccs compiler,
i am tried for a software uart. it work properly in Proteus and oshonsoft simulator.
but in board transmit section is ok but reception is not working.
receive will get only null.
like " you entered : "
no character appear there.
the code is given below
PCB Routing Schematic Layout software and Simulation :: 05-13-2013 13:45 :: abilashjoseph :: Replies: 0 :: Views: 866
Can some body plz help me to modify the following codes for counting the frequency up to 2Mhz of a square wave and sine wave:
unsigned int16 value;
Microcontrollers :: 05-04-2013 08:59 :: john120 :: Replies: 2 :: Views: 2936
Remove the main directory
program files -> picC folder
remove the pic C from the registry
restart the computer
reinstall the software
I wonder what you want to achieve?
I would expect an error in the compiled project in a first order.
ccs C V4.068 is a very old version that has some errors. I wonder if it's from an
Microcontrollers :: 04-15-2013 18:49 :: FvM :: Replies: 11 :: Views: 978
hi every one
i am trying to write program to make communication between matlab and pic16f877
but when i tried to send string value from matlab to pic using "fprintf" in matlab and "gets" in ccs compiler it didn't work
although when i tried to send character from matlab to pic using "fprintf" in matlab (...)
Analog Circuit Design :: 04-12-2013 19:45 :: a_sniper :: Replies: 0 :: Views: 1076
Below is the code for led glowing in pic16f876a micro controller ( pin RC0 ) through positive logic. But it is not working. What else should be done?
#use delay(clock = 8M)
int i = 0;
Microcontrollers :: 04-11-2013 07:50 :: Murugesh_89 :: Replies: 4 :: Views: 648
Hey friends i need a program for my pic16f877A for my ADC to work and display the output in 7segment display which is inbuilt in my development kit ! ? Can someone pls help me
since its in build then what do you want to do again? please make your self clear.
Microcontrollers :: 04-04-2013 02:47 :: kabeer02 :: Replies: 3 :: Views: 2054
i have a pic 16F877A and LCD 2x16
i tested pic Only and it's Ok :)
but when test it with LCD , LCD don't show any character !!!
what's the problem and how i can test LCD only to know if it Okay or not ?!
and what's the best compiler working with pic 16F877A ?!
Microcontrollers :: 03-21-2013 11:46 :: bas_90 :: Replies: 12 :: Views: 3537
There a "lapse" in code!!!
unsigned int myStr = 0; is unsigned int myInt = 0;???
And Display show 0056 in my case (not 5432)!!!
#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)
Microcontrollers :: 03-09-2013 14:04 :: nagkiller :: Replies: 7 :: Views: 10665
To control the speed, PWM is the easy and efficient method. Here you can find a circuit and an example code for DC motor control with pic16F877A, using PWM. While the program has been written for mikroC compiler, you should have no problem in "porting" it to ccs.
Microcontrollers :: 02-27-2013 17:43 :: Tahmid :: Replies: 1 :: Views: 2561
i have got Inertial measurement unit MinIMU-9 v2 (accelerometer, gyroscope, magnetometer) from Pololu, i need to interface it with pic 18f controller, can any one guide me to interface and to write code for pic controller using ccs compiler..
if any one written code for pic controll
Microcontrollers :: 02-05-2013 06:13 :: rajesh1987 :: Replies: 0 :: Views: 678
HOW CAN WE CONVERT PINB1 AS SERIAL TX PIN IN pic16F877A?
How to add a software usart to pic in ccs compiler.?????????
Microcontrollers :: 01-31-2013 10:05 :: OSHO G R :: Replies: 0 :: Views: 588
Hi every body I would like to interface EEPROM to aa pic16F877A and save text in an EEPROM after starting the system a pic reads from text stored and display it on the LCD who can help me with the codes in ccs C compiler or assembly language.
Thanks the serial EEPROM is 93C06
Hobby Circuits and Small Projects Problems :: 01-23-2013 15:40 :: john120 :: Replies: 0 :: Views: 915
What actually the problem 1) pic coding 2) sensors calculations (I mean theory of them)?
- - - Updated - - -
you may got something from here :
and for the detail calculations of Gyro + Accelero (for IMU) check Tutorial.
(And can you post the link of your
Microcontrollers :: 12-21-2012 16:34 :: Jigar 4 Electronics :: Replies: 2 :: Views: 2373
plz help how to plot sine wave in glcd, i am using pic 16f877a and ccs c compiler.I am working on this from past two weeks didn't got output .....plz help
Microcontrollers :: 12-13-2012 05:39 :: manoharn :: Replies: 4 :: Views: 1674
its gud to know ur problem is solved.
can you programm with ccs c compiler?.....i'll appreciate it if you can write your code with ccs.
thanks all....problem solved...
the problem is that : i have to select hitech universal tool suit with hitech c pic18 compiler
Microcontrollers :: 12-12-2012 15:20 :: bioda :: Replies: 21 :: Views: 3231