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: 577
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: 778
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: 571
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: 2333
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: 531
Can a pic C Program be simulated in the ccs pic C IDE to determine how the program shall behave?
Microcontrollers :: 03-17-2016 00:04 :: matrixofdynamism :: Replies: 6 :: Views: 882
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: 970
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: 1249
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: 807
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: 740
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: 2168
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: 938
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: 864
Why you are using rs485?
Are your both pic's on the same board?
If on the same board you can simply use rs232 or even I2C for sending data.
you can receive data on the slave side using serial interrupts.
you can also use modbus drives for sending data.
Microcontrollers :: 12-09-2014 12:52 :: cool.man :: Replies: 4 :: Views: 11429
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: 686
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: 1360
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: 1616
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: 997
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: 2517
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: 1715