329 Threads found on edaboard.com: 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
Microcontrollers :: 08-20-2014 15:13 :: engineer khan :: Replies: 4 :: Views: 452
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
Microcontrollers :: 08-17-2014 17:42 :: engineer khan :: Replies: 4 :: Views: 831
unfortunatly, mikroC is poor with PIC16F serie compare to pic18f serie...that is !
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
Microcontrollers :: 07-31-2014 09:47 :: paulfjujo :: Replies: 20 :: Views: 1835
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.......
i2c_write (0x00) ; //set sec
i2c_write( 0x00); //min
i2c_write(0x10); //hou 10:59:00;
Microcontrollers :: 07-29-2014 04:39 :: Surender Reddy :: Replies: 1 :: Views: 1234
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
Microcontrollers :: 06-24-2014 04:32 :: dineshjpr14 :: Replies: 11 :: Views: 1241
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).
Microcontrollers :: 06-15-2014 11:01 :: nagkiller :: Replies: 7 :: Views: 1900
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
Microcontrollers :: 05-24-2014 14:33 :: paulfjujo :: Replies: 1 :: Views: 922
if you do a web search there are plenty of links to articals on the PIC and driving the USART, e.g.
PC Programming and Interfacing :: 04-28-2014 17:18 :: horace1 :: Replies: 2 :: Views: 1271
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
Embedded Linux and Real-Time Operating Systems (RTOS) :: 04-23-2014 06:13 :: horace1 :: Replies: 5 :: Views: 815
Is this possible to inter-fetch USM GSM modem with pic18f4550 micro-controller? As far as I know USB inter-fetch required higher speed.
Microcontrollers :: 04-17-2014 06:02 :: Mithun_K_Das :: Replies: 1 :: Views: 476
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
Microcontrollers :: 03-07-2014 17:46 :: wp100 :: Replies: 2 :: Views: 1156
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
Microcontrollers :: 03-05-2014 18:51 :: paulfjujo :: Replies: 6 :: Views: 1240
pic18f family will be easier for you to work on, and development kits are also available for you.
Microcontrollers :: 02-18-2014 09:07 :: Raady Here :: Replies: 2 :: Views: 499
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
Microcontrollers :: 01-25-2014 13:58 :: daniii :: Replies: 1 :: Views: 1138
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
Microcontrollers :: 01-23-2014 04:39 :: Revestroke :: Replies: 0 :: Views: 730
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
Microcontrollers :: 01-18-2014 11:41 :: jayanth.devarayanadurga :: Replies: 9 :: Views: 436
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
Microcontrollers :: 12-29-2013 16:37 :: Revestroke :: Replies: 1 :: Views: 675
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
Microcontrollers :: 12-07-2013 10:59 :: dhanraj_kmr :: Replies: 0 :: Views: 929
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
Microcontrollers :: 11-15-2013 19:29 :: mot1639 :: Replies: 2 :: Views: 520
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?
Microcontrollers :: 10-27-2013 19:23 :: vinodstanur :: Replies: 3 :: Views: 629
if u have xc compiler then read this thread and implement
Microcontrollers :: 10-17-2013 08:41 :: nick703 :: Replies: 32 :: Views: 2955
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
Embedded Linux and Real-Time Operating Systems (RTOS) :: 09-23-2013 19:39 :: ricardop :: Replies: 0 :: Views: 1089
How to calculate the baud rate in 8051 & pic18f microcontroller.?
Read datasheet for particular uC.
Visit this link :
PIC serial communication tutorial
Microcontrollers :: 09-11-2013 10:10 :: tpetar :: Replies: 4 :: Views: 938
yes I have same problem usb1 project from advanced PIC Microcontroller projects in c with pic18f
Undeclared Identifier 'USB_Interrupt_Proc'
Microcontrollers :: 09-08-2013 04:25 :: nyanphyoaung :: Replies: 8 :: Views: 3169
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
Microcontrollers :: 09-05-2013 14:11 :: milind.a.kulkarni :: Replies: 9 :: Views: 1080
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
Embedded Linux and Real-Time Operating Systems (RTOS) :: 08-19-2013 06:47 :: vijayjadhav.595 :: Replies: 0 :: Views: 752
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.
Microcontrollers :: 08-10-2013 19:09 :: internetuser2k13 :: Replies: 46 :: Views: 4775
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:
MOVWF TBLPTRL ; LOOK UP TABLE LOW BYTE ADRESS
Microcontrollers :: 08-06-2013 21:54 :: kgavionics :: Replies: 4 :: Views: 734
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?
However, the task will require the installation of a compiler compatible with the dsPIC family, like XC16 or C30.
Microcontrollers :: 07-30-2013 08:27 :: bigdogguru :: Replies: 1 :: Views: 547
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
Microcontrollers :: 07-26-2013 06:17 :: bigdogguru :: Replies: 14 :: Views: 1435
Does any one have code for 2p2z controller so it can be implemented on a pic18f ?
Microcontrollers :: 06-06-2013 06:13 :: vinayakdabholkar :: Replies: 0 :: Views: 725
Where can i buy a pic18f kit like this ?
Microcontrollers :: 04-30-2013 21:29 :: yamine :: Replies: 10 :: Views: 995
Have a look at this video
Some of the tutorials based on PIC Micro's
Microcontrollers :: 04-28-2013 15:08 :: xpress_embedo :: Replies: 1 :: Views: 526
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
Microcontrollers :: 04-18-2013 08:43 :: betwixt :: Replies: 4 :: Views: 529
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?
Microcontrollers :: 04-04-2013 17:23 :: jayanth.devarayanadurga :: Replies: 15 :: Views: 21217
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
Microcontrollers :: 03-21-2013 23:06 :: rajesh1987 :: Replies: 5 :: Views: 731
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
Embedded Linux and Real-Time Operating Systems (RTOS) :: 03-22-2013 09:33 :: Amardeep :: Replies: 1 :: Views: 468
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
Microcontrollers :: 03-19-2013 22:17 :: wp100 :: Replies: 3 :: Views: 770
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.
Microcontrollers :: 03-14-2013 09:36 :: irfan ahmad :: Replies: 5 :: Views: 1076
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
Microcontrollers :: 02-27-2013 05:58 :: bluerose :: Replies: 0 :: Views: 417
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 ..you must buy a licence 250$ !! to
Microcontrollers :: 02-23-2013 09:13 :: paulfjujo :: Replies: 2 :: Views: 14822
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
Microcontrollers :: 02-06-2013 14:15 :: Praveen1991 :: Replies: 0 :: Views: 1039
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
Microcontrollers :: 01-28-2013 08:30 :: mariuszoll :: Replies: 1 :: Views: 498
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
Microcontrollers :: 01-25-2013 05:35 :: dhakeparag81 :: Replies: 1 :: Views: 1545
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
Microcontrollers :: 01-22-2013 13:10 :: hungrymind :: Replies: 0 :: Views: 478
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
Microcontrollers :: 01-09-2013 17:23 :: Amardeep :: Replies: 4 :: Views: 1297
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?
Microcontrollers :: 01-08-2013 05:14 :: hungrymind :: Replies: 1 :: Views: 2541
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
Microcontrollers :: 01-07-2013 09:53 :: ajex :: Replies: 0 :: Views: 699
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
Microcontrollers :: 12-24-2012 23:06 :: mrcube_ns :: Replies: 8 :: Views: 1407
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
So is that means that your communicated signal through this opto coupler is a 4MHZ s
Microcontrollers :: 12-13-2012 07:05 :: goldsmith :: Replies: 4 :: Views: 1660