bcd 16 bits to bin

Started by falcosms in Piclist11 years ago 30 replies

Hi I need a code example for conversion of a 16 bits BCD data in BIN , in C (ccs PIC) []?s Marcelo

Hi I need a code example for conversion of a 16 bits BCD data in BIN , in C (ccs PIC) []?s Marcelo


srf04

Started by sreenu_dindi in Piclist15 years ago 3 replies

Hi, I am trying to measure the distance using srf04. I am using ccs compiler. The pic16f877 is unable to recognize the echo.. ...

Hi, I am trying to measure the distance using srf04. I am using ccs compiler. The pic16f877 is unable to recognize the echo.. Though srfo4 is returning an echo, i had verified it with an OScilloscope. my program is main() { int echo_t


LED Displays

Started by dump_cmd in Piclist15 years ago

Hi For an upcoming project I am looking for a schematic and program (prefferably in CCS's PICc) to display a scaled analog...

Hi For an upcoming project I am looking for a schematic and program (prefferably in CCS's PICc) to display a scaled analog value on a 4- digit, 7-segment LED display. Does anyone know of such a circuit. Any help would be greatfully received.


What to do with your ICD 1 for debugging 16F88

Started by scott5342000 in Piclist14 years ago

I have an ICD 1 I would like to use on 16F88 & 16F7x7's. Anyone try using an ICD 1 on any of those PIC's that are not supported on...

I have an ICD 1 I would like to use on 16F88 & 16F7x7's. Anyone try using an ICD 1 on any of those PIC's that are not supported on MPLab 5.7? I was told that a CCS firmware load could enable it to download programs, but I would like to be able to debug too. So I would like a


Timing with the 18F458

Started by Anonymous in Piclist14 years ago 3 replies

Hey, I'm using an Accelerometer to measure velocity, so timing is critical. Any ideas on how to keep accurate track of how long...

Hey, I'm using an Accelerometer to measure velocity, so timing is critical. Any ideas on how to keep accurate track of how long each cycle of a loop runs? I would like to be as accurate as humanly possible. I am using CCS and my code is as follows: while( input(PIN_C2) ); /


Timer Interrupt

Started by Anonymous in Piclist14 years ago

I want a certain function to happen every X seconds. I figure I'll have to use an interrupt, and with CCS C, the "Set_timer0" ...

I want a certain function to happen every X seconds. I figure I'll have to use an interrupt, and with CCS C, the "Set_timer0" and "SETUP_TIMER_0" (I don't know the difference). Any ideas on how to execute this as SIMPLY as possible? Shamoon


Proton Development Suite

Started by ascii_geek in Piclist14 years ago 11 replies

Hi All, Does anyoone have experience with this BASIC programmer. Not that I need BASIC but this compiler seems pretty good...

Hi All, Does anyoone have experience with this BASIC programmer. Not that I need BASIC but this compiler seems pretty good and the included SPLICE simulator is pretty neat as well. I am still trying to find the right compiler and am looking at either CCS


Serial Interrupts

Started by Anonymous in Piclist14 years ago 5 replies

I have the CCS C Compiler... here is my code --------------------------------------------- void serial_isr() { int t; ...

I have the CCS C Compiler... here is my code --------------------------------------------- void serial_isr() { int t; buffer[next_in]=fgetc(TRANS); t=next_in; next_in=(next_in+1) % BUFFER_SIZE; if(next_in==next_out) next_in=t; // Buffer full !! }


compiler error on external interrupt

Started by wantoniet in Piclist13 years ago 2 replies

Hi folks, I?ve got a problem with compilation a sw through CCS compiler. I?m using PIC18f452 and error occur on external interrupt0. A...

Hi folks, I?ve got a problem with compilation a sw through CCS compiler. I?m using PIC18f452 and error occur on external interrupt0. A piece of my sw described below: ... ext_int_edge(0,h_to_l); enable_interrupts(int_ext); enable_interrupts(global); clear_lcd(); while(true) { comand_lcd(0x80);


SRF08 - I2C sonar

Started by Nick Alexeev in Piclist15 years ago

Hello, Did anyone succeed in interfacing SRF08 I2C sonar to a PIC? Unfortunately, I couldn't find a datasheet which would...

Hello, Did anyone succeed in interfacing SRF08 I2C sonar to a PIC? Unfortunately, I couldn't find a datasheet which would describe the I2C communication format. Here's the code I wrote (in CCS C), but it doesn't work (returns 0xFF all the time): w


PIC24 I2C cannot receive device address

Started by bare...@celestica.com.ph in Piclist9 years ago

Hi, I really need help guyz, I'm stuck, I already initialized my I2C Pins to input but when i send the device address, i cannot see it in the...

Hi, I really need help guyz, I'm stuck, I already initialized my I2C Pins to input but when i send the device address, i cannot see it in the I2CxRCV buffer. Im using PIC24FJ64 and im using CCS compiler which can already support PIC24 devices. I am using a master which is working in my PIC16 slave.. Is there anything that i forgot to initialized? Please help. Thanks. ---------...


RC5 Code in C

Started by Kamal Shankar in Piclist12 years ago 6 replies

Hi Has anyone done a single/two channel or more Remote controller codec using some variant of C (HiTec C/CCS C etc). Based on RC5 would make...

Hi Has anyone done a single/two channel or more Remote controller codec using some variant of C (HiTec C/CCS C etc). Based on RC5 would make it more useful. I want to control the IR Remote controlled devices in my house controlled through a single PIC. I have seen lots of ideas on the net, but they recorded the data streams from the original remote and played it back. I want the P...


How to declare a software UART in the MPLAB compiler?

Started by Nick Alexeev in Piclist14 years ago 1 reply

Colleagues, I'm a big fan of CCS compiler, but for this project I have to use the MPLAB, becasue it support s Salvo OS....

Colleagues, I'm a big fan of CCS compiler, but for this project I have to use the MPLAB, becasue it support s Salvo OS. Here are my questions. - Is it possible to delare a Software UART in the MPLAB without a lot of coding? - Is there a good 3rd partty Software


Hi-Tech init of PORTD on 16F877

Started by KM6VV in Piclist13 years ago 1 reply

Hi to the list! I'm having problems getting an LED display (4 digits) to work with a 20 Mhz 16F877A. New (to me) compiler, PIC C, 7.83...

Hi to the list! I'm having problems getting an LED display (4 digits) to work with a 20 Mhz 16F877A. New (to me) compiler, PIC C, 7.83 OLD compiler was CCS. The Display is common cathode, digits are selected with a ULN2003 driver from RB7, RB6, RC7, RC5 pins (which appear to work), and the segments are driven through 220 ohm resistors from PORTD.


Oscillator not running on 16F873

Started by Andrew in Piclist8 years ago 3 replies

Hi I have developed some code to control RGB LEDs from a PIC16F873A chip. The code was working, but now the oscillator is not running. I've...

Hi I have developed some code to control RGB LEDs from a PIC16F873A chip. The code was working, but now the oscillator is not running. I've checked the connections between the crystal, processor 4MHz crystal, and 22pF caps, and everything is in tact. I'm using the CCS PCM C compiler, I have set the #fuses to: #fuses XT,NOWDT,NOPUT,NODEBUG,NOPROTECT,NOBROWNOUT,NOLVP,NOCPD Can someone my b...


URGENT ! PLEASE HELP ME OUT!..please!!!

Started by AMIT KAPOOR in Piclist14 years ago

Hello friends    i need ur help urgently..actually i am new to pic micros...i tried very simple program but why it is giving...

Hello friends    i need ur help urgently..actually i am new to pic micros...i tried very simple program but why it is giving problems i dont knw ..  i have ccs c compiler ... first i wrote the following program ...(PINB.2 IS LOW ALLWAYS..i connect


Floating point IEEE 754 to Microchip conversion. SOS!!!

Started by Nick Alexeev in Piclist15 years ago 6 replies

Colleagues, My PIC has to talk to the GPS rerceiver, and GPS transmitts data as IEEE 754 floats. I'm trying to write...

Colleagues, My PIC has to talk to the GPS rerceiver, and GPS transmitts data as IEEE 754 floats. I'm trying to write conversion routine in C (CCS compiler), but it does not work. Could you post a working conversion routine? Thanks! Sincerely,


UART

Started by wonghongyik in Piclist10 years ago

Hello everybody, I was trying to write a UART program to send out few bytes of data by using PIC16F877A, CCS C compiler, MPLAB IDE, MPLAB SIM....

Hello everybody, I was trying to write a UART program to send out few bytes of data by using PIC16F877A, CCS C compiler, MPLAB IDE, MPLAB SIM. The problem of my program is the code fail to transmit out the data to pin RC6 of Port C. So far i am just use MPLAB SIM to simulate my program and using Watch window to monitor all the register and symbol. To simulate the program i was pressing the...


PIC Prototyping Board on Ebay

Started by amg amg in Piclist15 years ago

Listed on Ebay with no reserve.  Made by CCS.   http://c

Listed on Ebay with no reserve.  Made by CCS.   http://c


how do you make port a and B in or output in CCS ?

Started by Vincent in Piclist13 years ago 5 replies

Message Hi all,   working on a PIC16F628, I try to configure its I/O with pull

Message Hi all,   working on a PIC16F628, I try to configure its I/O with pull