Search Engine


Add Question

309 Threads found on pic18f
Hi all, Guy's Im working on pic18f45K22 using XC8 1.33V. My problem is if((u16)Voltage > (u16)280) { DispRYBCnt = 6; DispBuffer = CHAR_r; } even Voltage Variable is less than 280 this condition is getting true. I tried this also Voltage = 210; if((u16)Voltage > (u16)280) { DispRYBCnt = 6; DispBuffer =
I am getting 100mv noise at my ADC input channel, how can I remove it using DSP filter in micro-controller. I am using pic18f.
Any body can explain me in deep what is Stack over? How to find it in program? what means of instruction instruction at 0x000050 when i run my program with MPLAB SIM This massage comes out CORE-E0001: Stack over flow error occurred from instruction at 0x000050
Hi Dora, Sorry that if I had not followed the etiquette . I am really in search of the library that supports the MFRC 522 RFID .There is one for the arduino which is almost stable but nowhere i find that for the pic18f or PIC16F. I searched many a times and could not find any results . If you are aware of any such libraries for the PIC then that wo
size of ROM WIDTH in 8051 vs PIC18 vs AVR does the ROM width changes from mcu to mcu?? i heared that pic18f has 16bit wide ROM is it true
i tested my ESP8266 wifi module and send a command AT+ CWJAP =,< pwd > and joined with my wifi router.. atfer that how can i control devices with it? i want to control a relay from internet..i got many tutorials with arduino not with pic18f...i dont know much abt arduino...... how can i create a button in my wifi module's ip address do
I am looking for 16x4 LCD initialization code for LCD in 4 bit mode using pic18f
The page 28 in describes the OSCTUNE register. What do the Frequency tuning bits do? When it says maximum and minimum frequency, how does one know what these maximum and minimum frequency values are?
hi we are interfacing sim 300 with pic18f. ,using ccs compiler if i m sending at commands from microcontroller to modem , it is working perfect. we monitor via hyperterminal. but if i m checking for 'OK' after each at command, it receives only for 1st at command. here is my code void main() { char c; int8 i; for(i=0;i<10;i
hi we are interfacing sim 300 with pic18f. ,using ccs compiler if i m sending at commands from microcontroller to modem , it is working perfect. we monitor via hyperterminal. but if i m checking for 'OK' after each at command, it receives only for 1st at command. here is my code void main() { char c; int8 i; for(i=0;i<10;i
I am using a pic18f to communicate over I2C to the RDA5820 FM chip. I have a suspicion the problem has nothing to do with the RDA however, because I've tried other chips in place and experienced the same problems. About 50% of the time the PIC will halt (just stops executing as if i2c disconnected), and the rest of the time the communication works
i'm having pic18f and arduino i'm interested in doing some projects but have no idea,so suggest some project idea pls.........
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, 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.
i am having trouble understanding the ADC module of pic18f4550 i have configured it as follows clock 20MHz PLL prescaler divide by 5 System post scaler 96Mhz/6 Hence my Fosc = 16MHz now i selected Tad = 16Tosc(101) also Tacq = 4Tad hence by adding above two i will get 5us which means sampling frequency is 200KHz????? and if my
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?

Last searching phrases:

seven | nevertheless | keep out | first course | forth | and nor | three way | cant get | cant get | seven