Search Engine


Add Question

289 Threads found on pic18f
Well, i ran into a problem which many other beginners face while interfacing pic with lcd. i googled and checked solution given in all forums and i cant still get it to work. Iam using pic18f4520. The lcd iam using is JHD162A. My Mikroc program to check lcd is sbit LCD_RS at RC2_bit; sbit LCD_EN at RD2_bit; sbit LCD_D4 at RD0_bit
I want to write some program in C language for a PIC16F and a pic18f. I searched in the internet and I got confused with the name of them! I want a free version and I know that my C program is less than 2 KB. Does MPLAB lonely enough? Or I need to install C16? C18? Which one I must install? Can I install both in a single computer? I found four k
hello, i have convert the code to c18 mplab but it don't seem to produce the result, can u help me to solve this? i'm using pic18f4580 with xtal 20Mhz#include #include #include #include #include #include #pragma config OSC= HS #pragma config WDT=OFF #pragma config LVP=O
HI, Recently i started working on freertos on pic18f4520, I just downloaded the source files from website. So how to create semaphore and queues, how can we implement them on freertos, any reference docs Anyone help me out................ I am very thankful to you
Hello i would like to convert a mikro code to MPlab with Compilr C30 that display a parameter in a LCD with the pic24f This is a project in MikroC that works with pic18f. please help me thanks in advace
This tutorial is a modular way of adding interfaces one at a time. Though it was designed for PIC16F family of chips it can be easily be ported to hardware and software in assembly are included. Allen
Hello, For the following code, I get some errors: #include <18F452.h> #fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP #use delay(clock = 4000000) unsigned char FlagReg; sbit ZC at FlagReg.B0; void interrupt(){ if (INTCON.INTF){ //INTF flag raised, so external interrupt occured ZC = 1; INTCON.INTF = 0; } }
The pic18f4550 has one UART and one USART so you should be able to connect one to you PC and the other to the RF module
I've written (and compiled) CCS C code for pic18f452 in order to control 3 phase thyristor firing/triggering. What kind of experimantal set up (pic18f, LED, etc...) shall I prepare in order to show the results? Ty.
hello, you can buy pic18f with a bootloader allready included.. see MikroE example : 18F2550_startusb or others ..
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
Hello guys, I am studying how to use PIC18 right now, I have found a good example here in edaboard I am sure I did follow the instructions in here, but I am stuck in "build" process. I can't build the project because MikroC says the error Undeclared
Hi, I am planning to interface MMA7455 Accelrometer module with pic18f4520. Please help me with connections. How the signal transmission should be done if the MMA7455 is mounted separately from the PCB ? Would it need RS232 or I can work with I2C ?
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
Hi, I am using pic18f27J13 and it does not support internal EEPROM. I need to store a data byte ( basically a simple flag in my C code) into non-volatile memory, so that when microcontroller is switched off, then my flag is retained and i read and edit it during execution. Since I dont have internal EEPROM so I want to store the data in program
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
friends, i have a pic development board. whenever i want to program it, i do it through the usb of my pc as a bootloader program is already there...may be the manufacture of the board is responsible for that. i want to enter a program's hex code and store it into micro-controller's program memory and through one of the ports of the micro-controller
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 ?
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