Search Engine www.edaboard.com

pic18f

Add Question

327 Threads found on edaboard.com: pic18f
This project is a small bootloader and an uploader for the pic18f47K40/27K40. The Microchip pic18f47K40 is one of the newer pic18f microcontrollers with some nice features. Some of the existing PIC bootloaders didn't support it. The new bootloader uses the revised register names and pin configuration process of the 47K40. It (...)
Hello guys I am new to pic micro controllers. I have a problem with it. I have written a very simple code to test the external its interrupts. I don't know why it doesn't work. could you please tell me, what I should do? this is block design of interrupt scheme of the micro controller: 133549 and this my code: [CODE
Hey How fast can be SPI or I2C RAM for pic18f? I would like to read data in blocks, will 10us be enough for such read? Maybe 20us? Any ideas?
What is your financial budget? And you footprint budget on the PCB? And you current budget for the chip (although if this is a battery charger I assume the power source is big enough for both jobs)? Why are you looking at the pic18f devices? Not saying that there is anything wrong with this decision but it could provide useful information to let yo
didnt get data in slave controller(pic18f) ,frequency 500khz Mode0 unsigned int soft_spi_Receive() { int i,data,counter=0; for (i=0;i<8;i++) { // set clock low SW_SCK_PIN=0; us_delay(2); // output bit if (SW_DIN_PIN & 0x80) { data+=1;
Hello all... I am starting to learn the C programming language, and the book I am learning out of strictly uses the PIC18 series, and no PIC16 series. My previous experience has been coding in assembler on the PIC16's, so now I'm a little lost as to which PIC18's to get. If you could please, suggest a variety of chips, from small to large. Th
The document DS31028A page28-4 Figure 28-1 contains a diagram for connections of a "typical ICSP application circuit". It shows how ICSP is to be connected to a PIC. It shows connections for MCLRn/Vpp, VDD, VSS, RB6 and RB7. I have the following questions: (1) How are
Hello! Everyone! I am confused that how can i correctly calculate the value to be loaded on CCPR1L and CCP1CON register for PWM duty Cycle. I thought that for setting PWM there is 10-bit so i mapped 0-100% duty cycle with value 0-1023 and they are giving in-correct result. The formula for duty cycle is PWM Duty Cycle = (CCPRXL:CCPXCON<5:4>)
I am reading the datasheet of a pic18f with a EUSART. It has an optional 9th bit that be used in receiver and transmitter. ASCII characters fit in 7 bits and a byte is 8 bits. Why then would someone want to transmit 9 bits? It this was 16 bits it would make sense but 9 bits makes no sense at all. The hardware does not have any ability to calc
I am not familiar with either the pic18f14K50 or "C" however I am familiar with pic18f CPU'S and the PIC16F877A. I have found that the UART code for the PIC16F877A will work on all the pic18f CPU's that I have tried. I would suggest that your problem is probably due to the processor running at a different speed than you think that it is, (...)
I can't help with FRDM because I don't have a Compiler for that and I have not used that device. However I can help if you can use pic18f. From where can I buy FRDM k64f online. Shipping should be cheap or Free shipping. Also where can I get the free version of the compiler for it ? I will see if I can make a code for you.
The schematic is attached. The code, using c and the xc8 compiler for the pic18f46k22. I'm making a traffic light controller for 4 different lights. i set the delay to just 100ms temporarily. i'll fix that later and set it to loop so i get 5-15 second delay. /* * File: main.c * Author: IBRAHIM LABS * EMAIL:
You need to be very careful with the actual device you are using as there can be differences between them. However, in general for the pic18f devices, the "stack" is actually called the "return address stack" and that is the one that has 32 entries. In general the compiler DOES NOT push parameters onto this stack as it is NOT a general purpose sta
There is not a model for the pic18f97J60 for Proteus nor is there ever likely to be as it would be very expensive to produce. I hope that in the future that Labcenter will produce models for some of the newer processors, but I am not holding my breath. The best available pic18f processor in Proteus is the PIC18LF47J53 this maybe good enough to te
I am working on pic18f4550 microcontroller to generate PWM of diffferent duty cycle. In pic18f4550 timer2 is used for PWM. What is the use of prescaler and postscaler in timer2 for generating PWM?
Hello .... In many of industrial control boards have seen external microprocessor reset by detection of low voltage (below from some threshold voltage) that very good �� technique. I am using pic18f4520 microcontroller but I don't know �� how to configure brownout reset. Please any suggestion
Dear All, Can you suggest me the best "PIC Microcontroller Development Board / Trainner Board" for pic18f series. Thanks
Hello, I'm facing a problem here. I have four 7-segment displays, 4 inches each. There are common cathode. I'm trying to connect them in a pic18f4550, but I'm failing in build a interface between the microcontroller and the displays (because the voltage level). Can someone help me?
Hello , I'm Working on Industrial Project based on pic18f series micro-controller. I'm using TQFP packaging pic18f97j60 controller. In this project i used some modules such as PWM for AC motor control . LCD , 4x4 Keypad , I2C for external EEPROM , L297-L298 and TIP122 for relays & Solenoids of 24v DC I'm using two Omron +24VDC 4 A ( For micron
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
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


Last searching phrases:

800 mhz | pcb and emc | usb adc | via red | end cap | 12v 24v | i2c and gsm | amp fet | pro 100 | avr led