Search Engine


Add Question

297 Threads found on pic18f
Hello, I have designed a pcb with relay that triggered some device. I used dry contact relays. But relays are expensive and wanna use opto-mos relay. Is it convenient? Also how can I use it. I searched especially cpc1017n. But I havent found more details especially how to connect with microcontroller(pic18f series). Can you give any advise
Try this. If it still doesn't work then switch to pic18f device. void main() { TRISC = 0x80; PORTC = 0x00; TRISD = 0x00; PORTD = 0x00; UART1_init(9615); Delay_ms(200); UART1_Write_Text("AT\r\n"); Delay_ms(1000); UART1_Write_Text("AT+CMGF=1\r\n"); Delay_ms(1000); UART1_Write_Text("AT+CMGS=\"989559518
Hello, I am new to PIC18 world and I have a big problem. I bought two pic18f Stater Kits with pic18f46J50 microcontroller, Oled display and card reader and I want to connect them using RS232. I already connect the two boards by soldering two wires on D2 and D3 pins. I've read that I need to use USART2, since USART1 is already connected to t
Post full code and Zip and post complete MPLAB project files. As pic18f is used, use LATxbits.Latxy instead of PORTxbits.Rxy for output pins.
I have a pic18f452, MPLAB and MikroC softwares. I am currently working on sending data from Bluetooth HC05 (connected to pic18f) and receiving in a smartphone app. Now I want to send the same data via wi-fi module to smartphone. Is this possible. Which Wi-Fi module should I purchase which is easy to interface with a micro controller. Thank
don't forget also, to treat error flags inside receive interupt , wich can block the flow of data.. especially with pic18f Frame eror and Overrun error ..
1 cycle =1000000 / in ?S FOSC can be internal (inside the PIC) or external , use of a Quartz or an external clock device generator. for Other pic18f you can active a PLL multiplicator => FOSC*4 => 1 cycle= 1000000/ FOSC ?S for executime time Code operation take mainly 1 cycle ( it's explain why we divide FOSC/4) but some
hello, but when I tend to write 0.05 it cannot display but displays 0.49 , 0.10 is 0.99 and other a mistake here ? 0.10 is 0.099 ! 0.05 is 0.049 ! with pic18f & MikroC , i don't get this behavior if initialise a float value with 5.00 , or convert ascii "5.00" to float , i get 5.00 ! show your particular case ..(code) don't fo
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, don't forget to use LATBbits.LATb3 for trig define if you are using pic18f. Measure max less than 4M ? Was is the power supply ? i also tested HC-SR04 and get less than 3M. as maximum. i think is a problem of power signal on sender part.. needs a hardware change to boost the signal Materual comming from RPC are low cost
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