Search Engine


Add Question

329 Threads found on pic18f
I am using c18 compiler for pic18f controllers but i wish to go for better one, please guide me which one is good,HI_TECH C, PICC18, MPLAB xc ,MIKROC,CCS,C18 comipler, also tell me the difference between PICC18,HI-TECH C,C18
I m using pic18f and c18 compiler I wish to make milliampere meter but in coding i have a problem please guide me how to write code for getting value of current in milliampere 0-5v is applied on RA3 chanel3
hello, unfortunatly, mikroC is poor with PIC16F serie compare to pic18f serie...that is ! Nota: it is a very bad habit to put variables declaration inside an infinite loop ! Put them outside the main as global variables.. FloatToStr() mikroC is ugly to use ADRead is not a float .. so use cast for using it inside FloatToStr it is also a
Here is sample code for pic18f by using C18 compiler. Before this, once go through the ds1307 data sheet and pic i2c registers How to start & stop i2c....... void rtc_setTime() { //i2c_Wait(); i2c_start(); i2c_write(0xa2); i2c_write(0x02); i2c_write (0x00) ; //set sec i2c_write( 0x00); //min i2c_write(0x10); //hou 10:59:00; i2c_stop
I used MPLAB 8.76 for my program. It used to build successfully and run on controller. I have the source code and working Hex file. I used Hitech Compiler for pic18f46k80. After two years, i have formatted my computer. When i again to try build my program it does build successfully, but hex file is not running and my seven segment displa
The files delay.h and delay.c is for hitech c for pic18f!!! In this case, you only comment or remove the #include delay.h, because it not exist in pic for PIC12/16F and your program works, because the #define _XTAL_FREQ 8000000 Change too the _delay_ms(100); to __delay_ms(100); (2 underlines). Example:
hello, I don't know PIC24F serie but on pic18f serie we must use LAT instead PORT to write a bit into a PORT #define EN LATDbits.LATD4 #define RS LATBbits.LATB15 #define DATA LATE and a remark it is not a good habit to use label definition as DATA sometimes compiler can be confused No probleme in french, i use "Donnee" (for va
if you do a web search there are plenty of links to articals on the PIC and driving the USART, e.g.
Dear all I need to interface 16*2 LCD with pic18f micro-controller.Can any one post the library for LCD Thanks in advance the Microchip MLA contains a file LCDblocking.c for controlling an LCD using a PIC18, PIC24, etc
Is this possible to inter-fetch USM GSM modem with pic18f4550 micro-controller? As far as I know USB inter-fetch required higher speed.
Hi, The ADC input is for measuring an Analogue signal. This tutorial might help is you are using measure the frequency of a square wave you use the CCP Capture Compare
hello, What compiler are you using ? C18 MPLAB or other ? Post your code to get help.. With YC-MCU on pic18f side, you don't need MAX232 or RS232 dialogue with your PC you need A bluetooth dongle and a software like bluesoleil.. this soft can handle virtual serial link port.. Open a terminal software on your PC old Terminal Win31, or Vbra
pic18f family will be easier for you to work on, and development kits are also available for you.
Hi Everyone, I am newbie to USB Communication and don't know much about LAB VIEW's USB VISA. Have worked on Micro Controller and Labview a little though. I want to know how send data from pic18f2550 that can be shown in Labview even if its just some sensor value and to send command from Labview to pic18f2550. I want to do USB Communication. I'll b
Hello friends, I am using pic18f87k22 controller. And I want to know how to use its internal RTCC. I need help to organize my code in C. I have consulted the data sheet and getting confused and how to begin. I want to display the time and date on a LCD module for which I have to create program accordingly. Kindly also suggest which pic18f series ca
Internal eeprom memory will not be sufficient to hold all the data. Is it a college project or a job project. 8051 also doesn't have SPI and I2C. If you want to store data in eeprom then you will have to write software SPI or I2C routines to store and retreive data. I can help if pic18f is used. You can also use SD card to store data. Data can be s
Hello friends, Happy New Year and blessings :smile:. I am working on pic18f4580 controller. Requirement: To put the controller in sleep mode and to minimize the power consumption. 1. LED is connected at Port B.7. 2. A switch SW is connected at Port B.0. 3. LCD is connected to Port D0-D7. I need guidance on how I can take the PIC into sle
Hi All, I have a simple board with 4MZ and a complex board with 10 MZ crystal. I have two micros, one is PIC16f877a and another one is pic18f4520. PIC16F micro works on both boards without any problem while pic18f is not. There is a two major chance for this failure. One is hardware and another one is software. I was about to ignore the ha
Hi every one .. I plan to design small GPS trucker using GPS reciver and gsm modem (sim900) with pic18f microcontoller , in my prototype board , every thing work fine but my question: what is best alternative way for removing 1000uf in power supply section for the modem ? it so big , almost all parts in the pcb is small expect the 1000uf also
Hi, I have avr dragon and the vusb usbasp programmer with me. But I need some thing simple similar to the usbasp but it should be much faster so that it will not take much time to load a 1MB or 256KB of flash. Is there any one already did it in pic18f with USB hardware?
if u have xc compiler then read this thread and implement
Hi, I´m trying to do a ping between W5100 and my computer. I use a pic18f with SPI communication with W5100. My comunication between PIC and W5100 is right: I send and receive the right values. But, when I connect the plug RJ45 is the same as not plug: nothing happens! The lights not turn on, nothing. Any suggestion? My plug is connected h
How to calculate the baud rate in 8051 & pic18f microcontroller.? Read datasheet for particular uC. Visit this link : PIC serial communication tutorial Best regards, Peter
yes I have same problem usb1 project from advanced PIC Microcontroller projects in c with pic18f Undeclared Identifier 'USB_Interrupt_Proc'
One can make an interface with accelerometer with pic18f4520- but couple of things there before you start ..... 1) define the purpose of using your accelerometer ...... and 2) state that correctly to seek for the proper feedback The chip MMA7455 gives output in SPI interface(Fast speed digital interface ) i2C (low speed digital interface) rig
Hi.. I have 3.2" touch screen mounted on a ,3.2" TFT display which has a resolution of 320x240. The touchscreen has a touch controller XPT2046/ADS7843 which has a 12 bit adc inside. I have managed to interface it to my pic18f on which i can read the touch co-ordinates which vary from near about 100 to 3900 on for each axis depending upon whi
Asalam-o-Alikum....!! i am interested to make programmer for pic18f, although i don't know much about pic18f458 and programming too .but in this semester this subject will be i am trying to study this, specially making understanding with programming. www.radiolocm
Hi guys I switched to pic18f family and i'm enjoying very much this family,it has a lot of advantages over PIC16F family. I wrote a simple program in assembly to display string on LCD: ;============================================================ MOVLW 0X0 MOVWF TBLPTRL ; LOOK UP TABLE LOW BYTE ADRESS MOVLW 0X02 MOVWF TBLPTRH
I've been using MPLAB X IDE v1.60 to program mostly pic18f in assembly. My question is can I still use MPLAB X IDE to program a dsPIC chip in C? Yes. However, the task will require the installation of a compiler compatible with the dsPIC family, like XC16 or C30. BigDog
1) So If I want to only read and write the Hex file. Then I have to have pickit 2 programmer and ZIF socket which is on the following option. Really the onl
Does any one have code for 2p2z controller so it can be implemented on a pic18f ?
Where can i buy a pic18f kit like this ? 90322
Have a look at this video Some of the tutorials based on PIC Micro's For PIC16F For pic18f
well... two anyway. PIC16F have a single interrupt vector so if you want to prioritize interrupts you have to do it in software. pic18f series have two interrupt vectors although you can still use just one if you want. The high priority interrupt can itself interrupt the low priority one but if you want other priorities you still have to implemen
You mean you will get the value of flag from that address? Yes, it can be accessed at runtime. How come pic18f device comes under C32 Compiler?
hi i need to interface bluetooth module to store data for my project, can any one guide me to do that with low cost module. i have came to know that some one mentioned that having working code for this, kindly can u upload that. i saw that in below link
Hi .. everyone i am using pic18f microcontroller. i have to build a system which response in real time manner. so please guide me how multitasking can be performed by MCU and what is standard algorithm of software behind multitasking
Hi, Do not quiet understand your problem as the bootloader just allows you to download your program code and then execute it...? You can do what Jayanth suggests and program the chip via a proper programmer like the Pickit2 or 3 which uses pin 1 , 39 and 40 of the pic18f4550 chip to program the code. Can you make those pins available on you
I heard that PIC16F ADCs are not efficient and reliable. Is that true ? I am using PIC16F877A for my project. Input to the ADC is sine signal with frequency between 0.5 to 4 Hz. Should I need to use pic18f ? many professional products like voltmeter , ups,stabilizer, charger are designed on pic16 base. so
hi everyone i want to communicate 2 pic18f micro controllers using CAN protocol and i wrote a software for each of them if i want to simulate it by proteus software how should i connect the cantx and canrx nodes? does anybody have an example program for can protocol in pic18f?? if i want to get started with CAN, does anybody know which site
hello i find C18 MPLAB with MPLAB IDE 8.89 perfect for pic18f familly .. because free of charge and usefull librairy existing.. but not concern with PIC12F or PIC16F.. so i am using MikroC , free version up to 2K programm for PIC12F , very good libraries. Problem is for PIC16F and program upper 2K size must buy a licence 250$ !! to
HI guys, Well to start with my project requires Data Logging , so i used a SDHC card interface PIC18 with SPI, and i can write raw data, no probs... but of course post logging analysis in WINDOWS is not possible, so I wrote a basic FAT32 implementation in ASSEMBLY, that does the following 1) Reads MBR and gets necessary Values for LBA calcul
Hi, I work on a project with pic18f, and there are some very important variables in my program. The values of these variables is not recommended to read it from keyboard, it was sugested to read it from an extern txt file from a local/network drive. First of all, I tried to declare a file( ex: FILE *fp ), but I got an error sintax. So, I would
hi, I am working on RN-41-Sm bluetooth module from last 4-5 days, i interface the module with pic87k22 over MAX232 ic. i use MODBUS protocol over USART, when i communicate with serial bus with standard MODBUS software everything working fine. My problem is when i interface the RN-41-SM module over there i didn't get any single character even
Hi, I'm totally new to Microchip TCP/IP Stack. I'm trying to compile TCP/IP Stack for pic18f452 or pic18f2620. How to configure TCP/IP Stack for it? And What is the string to be set as Preprocessor macro? My Advance thanks
I am using pic18f4520 MCU I am try to implement interrupt on PORTB RB4:RB7 interrupt is works ok but RBIF is still 1 even RBIF=0 as per information on datasheet.. "The input pins (of RB<7:4>) are compared with the old value latched on the last read of PORTB" i did experiment on some condition to input like: 1) made high to low state and ma
Hi, I searched a lot. But still I couldn't find an example which use TCP/IP Stack using pic18f and ENC28j60. Can any one help me to find one example? - - - Updated - - - I like to use microchip tcp/ip stack. But they are saying they provided demo applications. But Where can I find those applications?
hello.. I have a problem in Microchip MDD library function. I want to open an existing file to read some byte. there is a function call "FSfopenpgm" but its only work on pic18f divices. Then how can read an existing file to read using dsPIC30F6014A ??? please help me in this...! :lol: I saw a example code like below. But its
Hello friends, What is typical condensators value for 40MHz quartz? Step 1: I test first with 24MHz quartz with 13.5pF (two 27pF in serial connection) everything working fine. Step 2: Then I just change quartz (put 40MHz instead of 24MHz) and PIC working about 2 times slower?!? I suppose that I need to put smaller condensators, but I'm no
Hi all, Can someone please suggest me a suitable opto-isolator for SPI communication. It should be cheap and thru-hole. This is to isolate a pic18f and a ade7758 ic. I am hoping to use a 4MHz crystal for the pic. Thanks in advance Hi Gehan So is that means that your communicated signal through this opto coupler is a 4MHZ s