Search Engine www.edaboard.com

16f877 Not

Add Question

124 Threads found on edaboard.com: 16f877 Not
Hello Friends. I am trying to control PWM from the beginning I load-CCPR1L with value,that produce-8uS output impuls.When I press button I add value 0x14 that must produce 16uS output impuls.But the output impuls is not 16uS,it is about 100uS.I cannot find mistake in code.Where is mistake? I add sample of the code where-firs I load two r
would you plz attach ur circuit ? so we can help fixing your board search for my post "need help starting with 16f877" & see how bad a board i use with wires & its ok
pic 16f877 ADC is 10 bits only. it won't be sufficient for mpx4115 which returns you 0 to 5 volts to measure 0 to 1150mbar pressure you will get at best less than a mbar resolution ( not counting on noise and interferences) you need another ADC (like MCP3421 18bits) or you need an analog circuit to interface the mpx to the pic (with 2 op amps)
You could look for another code that interface with the LCD, preferably some one not precompiled, so that you could check in the code what resources are being used. In the case of the PWM of 16f877, this module already uses a timer to operate it, and I believe this is the most likely reason for not working, a same (...)
113562 hi I have a keyboard as I can see below seek to program the buttons with microcontrollers 16f877 the problem that I had two common on the keyboard (pin5 and pin6) I do not know how I will do to make the two buttons (b1 and b2) are a different action (b3 and b4) as progarmme with mikroC I am looking for a simpler me
Hi all, I'm trying to extend both input and output pin numbers of PIC 16f877. I'm using 2 x 74HC595 and 2 x 74HC165. It's nearly working but when I hit the first pin of first 74HC165 It's not working. When I hit the second one, both first and second pin of 74hc595 working. The other problem is when I hit the last pin of second 74hc165 firs
I would also like to read temp & press from BMP085. I cannot understand the datasheet(not so much into digital comms) and could not find suitable help on the web. I use 16f877 and Pic C language. As from this and related posts there are very few info shared and seems that non of these users are ever complete their (...)
I am a new learner. I have built temperature and Humidity indicator using PIC 16f877a (LM35 +SH20). I Have following two problems. 1) If I program to read only Temperature or only Humidity it shows correct. But when I select Temperature + Humidity - Both shows erratic reading ( RA1 and RA2). Request to suggest solution. 2) When I am rea
I want to use external interrupt in pic16f877 but cannot get the interrupt. Code is given below. Why it is not getting ??? I am using switch on RB0 pin and want to toggle the RB1 pin connected with LED. Plz support. #include #include void main() { TRISB0=1; TRISB1=0; // Configure Po
hi..i got two inputs from the led..and output as lcd display..if the 1st led lights up,the lcd will display 'in' and 2nd led lights up,lcd will display 'out',if both led lights up at the same time the lcd will show blank display n every displayed result will be reset after 10 using PIC16f877. this is the coding for lcd display [sy
I cannot perform multiplication and division with integer number in pic 16f877 using hi-tech c compiler. You didn't tell a word about the observed problem. I expect this results t=12 b=24 k=4 j=12.000
On above subject, I can successfully compile the code but cannot getting output in real pic simulator. I am taking input in A port and wanted output in LED as well as LCD. Code is given below. Plz suggest me which is the missing portion??? #include #include #include #include #define RS RE0 //L
I cannot manage to get the info I need from the DS1302 datasheet ?? not so clear for novices> I use the driver included in PCW PIC C to work my RTC. 32,768mhz x-tal no pull ups & no caps on X-tal DS1302.c from driver library I can read the sec & min, correctly, BUT nothing of the other VARs from the DS1302 is correct. To co
hello, I don't know if comparators have same philosophy in 16f877 as for PIC18Fx6k22 maybe it can help you.. can you post your code.. not all people have Proteus tools.. some works only in real world. I tested Comparators Hardware functions with a joystick (2 potars) to drive a LCD Menu.. and used booth comparator interrupt and pooling
you will need to connect an ethernet controller to that. I think ENC28J60 is there. And you can use TCPIP stack from microchip. I'm not sure if you will be able to use 16f877, it doesn't have sufficient memory to accomodate the code, but may be with the latest stack you can atleast try pinging. Rather if you want to simulate ethernet, go for PIC18
I want to help in this program there are some mistakes I did not know how to fix them thank you in advance 91902 program pfe; var //declaration de variable kp : byte; x,j,u: LONGINT; label temp,seuil,lum ,lampe,start; Procedure lam(); begin J:=adc_read(1); u:=adc_read(2); if j>u th
hi...can i operate RC servo with timer2 (CCP) in 16f877 i calculate timer2 time using prescaler and postscaler generate 20ms (50Hz) plus ,,,but whan i test in real time 20ms plus show 4ms plus .. i think my post scale not working ,,,,but why....plz help me..thanx.
For compatibility's sake, you may take a look at PIC16F873 or the PIC16F883. They have 28 pins by the way. As for 20 pins, I would recommend PIC16F690. It's feature-packed and very cheap. The registers are not exactly the same, but if you successfully used PIC16f877, you should quite easily be able to use PIC16F690 by consulting the datasheet. Ho
Hi, Can you please help me with this programming error. I am getting a compiler error "incomplete type is not allowed" for the following interrupt service routine code while compiling with PICmicro C compiler for a program running on PIC16f877: char channB = 0; int num = 0; void interrupt isr(void) //incomplete type is not allowed { (...)
I need for pic 16f877 controller? ccs compiler you can port it easily - - - Updated - - - do u want to display the value of ADC on seven segment? if so there is no need to convert to hex. please let me know if iam getting it right so that i can help you also let me know h0w many 7 seg
Need C/assembly based source code for a temperature and humidity based sensor using PIC 16f877... and display the temperature and humidity to a 16X2 lcd display....
DS1307 with PIC 16f877 can not be simulated in proteus: I am try to make RTC, and i make a perfect program using microc pro as follow with perfect proteus program but ... when i start simulation the LCD don't display any thing but only 00:00:00 .... and i don't know where is the error , is it from proteus and in real work will work or what???
Hi there, I want to send the temperature from one PIC 16f877 A to another using infrared. I generated 36 Khz with 74 HCT 14 but at the receiving side the result does not correspond to the displayed temperature at the transmission side. I am using CCS C Compiler. The baud i am using is 2400 and the TX pin is directly put at the input of the (...)
hello ... simply i use 16f877 and keypad 4*3 for just display on lcd the num pressed. and this is keypad: and my compiler i use is :mikroc pro for pic and my project is successfully working in proteus >>> but in actual connection the lcd not display the correct number wh
i am looking to build a device that among other things will control a mp3 chip. in the past i have built these and used the winbond isd2590 chips ,and it works great. however i want to up the sound quality. it took me months to write the code to control them and the other devices because im not that good at assembly langauge and cant even begine to
I am just analysing a asm code based on the microchips project article "BLDC motor Control made easy" also given as "00857a". i tried simulating the code using proteus with components of similar charectaristics and i am not able to get the output instead of which i am only getting the warning. I have attached all the project data. can you please t
Wow, what an overkill for just a thermometer, I mean 16f877 is the overkill :smile:
I've changed a lot in the code. It's kinda messy, but I fixed the errors. :smile: list p=16f877 #include "p16f877.inc" ; LP Oscillator between OSC1 OSC2 pins ; Watchdog timer is off ; All code protection is off ; Brown-Out Reset is enabled ; EEPROM data protection is off ; Write to EEPROM enabled ; ICD is off, RB6 and RB7 are GPIO __conf
Dear fuyejun, I think you will help this #include 16f877a.inc> __CONFIG _WDT_OFF & _HS_OSC First connect your 4MHz OSC to PIC using oscillator XT and apply proper delay that you can see blink led. Then change your oscillator 20MHz changing __CONFIG bit I shown above using same delay and monitor led operation
Hi, As far as I know PROTON is for BASIC, not C. So, with PROTON, you have to program in BASIC, not C. You should go through the datasheet first. This will give you a good idea. Then, you can proceed. Datasheet for 16f877: for 16f877A:
You must first specify if will store data at 8-bit or 16-bit adressable I2C device. I sugest to take on the web some of thousands ready routine and go. ( I did a driver to I2C at 16f877, but is not simple, due works with several devices, so it´s better don´t share here ) +++
this is sample program for reading ADC using PBP, using 16f877, but you can adapt the program to fit to your microcontroller ' PICBASIC PRO program to display result of ' 10-bit A/D conversion on LCD ' ' Connect analog input to channel-0 (RA0) ' Define LCD registers and bits Define LCD_DREG PORTD Define LCD_DBIT 4 Define LCD_RS
I want to measure RMS voltage between points a (0.5) V and I rewrite a program in C to achieve my purpose may i know it does not work with me each time I simulate, I vary the amplitude of input signal to the peak I receive on an LCD value false efficient value isis on my diagram is more than just a pic 16f877 connected with an LCD and a sine signa
I want to measure an effective value of an AC voltage with a 16f877 and display the result on the LCD voltage is a 400 vmax right I want to use this method since the value of voltage is variable I want to know is it possible to translate this formula C
Hi, Working on my first project. I need assistance with interfacing two PICSs 16f877 wireless using Xbee PRO. These PICs communicate just fine when wired directly between them however, when using the Xbees (in transparent mode) I do not get them to communicate. The Xbee connections are: 3.3V on pin 1, GND on pin 10, Din (on pin 3 of Xmitter)
Hi, I calculated the phase shift between two sine (50 Hz) and displayed on an LCD, I compile my prog on picc the problem is I can not calculate the phase shift for low frequency (0.05 Hz) had good results by cons for 50 Hz are obtained false values ​​of phase shift here is my source code and the diagram on isis * #include <16f877
Hello, Ive read the data sheet of PIC 16f877 and coded my microcontroller accordingly, but it does not appear to work. I am using sourceboost as my compliler. Here is my code: #include unsigned char adcconv(void); unsigned char inbyte; void config(void); void main(void) { config(); do{ portb=adcconv();
Dear all I m trying to communicate two 16f877 PICs with SPI protocol. And USART is used to display the received data from the slave. But my program is not working. I used variable Y=7 in master and send it to slave and then read it from USART. here is my code. Master // code for spi master void main() { trisc.f3=0;
I am using 16*2 LCD. I am using Hitech C compiler . I am trying to display some word. Sometimes it will display correctly sometimes it will not ..Sometimes some characters will be missing or it will display something else. I have tried to increase the delay.after each initialisation i am giving 5 sec as the delay just to cross check it. but even af
Good evening, I want to achieve a basis for a pic 16f877 device measures the electrical impedance of the three phase lines, my card contains the voltage sensor and current and a peak 16f877 AND an LCD 16 * 2. we know it need to adapt the input signals with the peak everything is fine until now, our pic 16f877 will receive two tesion U1, U2 (...)
I used bit wise command, so it works well in simulator but does not in pic (16f877) command is movlw b'00000001' movwf portd loop rlf portd,1:?: call delay btfss portd,1 goto loop retu
SIR WHEN I WRITE A PROGRAM IN HI TECH COMPILER AND BUIL IT IT WILL SAY THAT Error C:\Documents and Settings\Administrator\My Documents\My Pictures\project\LCD.C; 2.19 can't open include file "16f877.h": No such file or directory ********** Build failed! ********** WHT IS THE MEAN OF IT I M USING MPLAB IDE v8.5
go for PIC 16f877, 877A or higher series
for a start you should read the data sheet on the pic16f877a
53079hello I am new to this site , my english is not verry perfect but plz i need your help to transform a program ( with in mickro paskal language ) for pic 16f877 to mikro C language plz I thank you in advance :grin: THE PROGRAME var //declaration de variable kp : byte; x,j,u: LONGINT; label tem
Hi there.. I have a few stepper motors.All of them are 6 wire unipolars. I m using pic 16f877 and a power circuit which has L298.(not L297 ) I could run one of them succesfully using 1000,0100,0010,0001 pulses.But I couldnt run other motors,although I identified the wires using multimeter and tried all possible pulse sequence.(24 different combi
Hi Guys I have added a custom character to my program but it does not show. You will see I call it from "void CustomChar(char pos_row, char pos_char)" but it does not display on row2 column1. // LCD module connections sbit LCD_RS at RB4_bit; sbit LCD_EN at RB5_bit; sbit LCD_D4 at RB0_bit; sbit LCD_D5 at RB1_bit; sbit LCD_D6 at RB2
Hi, This is the corrected code: void interrupt(void) { if(T0IF_bit == 1) { RA5_bit=1; //To see if interrupt is triggered Delay_ms(2000); RA5_bit = 0; T0IF_bit = 0; //You HAVE to clear interrupt flag } } void main() { TMR0 = 0; //Clear timer 0 OPTION_REG = 8; GIE_bit = 1; //Enable Global Interrupt T0
Hi, Here's the fixed code: void interrupt(void) { if(INTCON.INTF == 1) { PORTD = 0x01; //To see if interrupt is triggered Delay_ms(2000); INTCON.INTF = 0; //You HAVE to clear interrupt flag } } void main() { INTCON.GIE = 1; //Enable Global Interrupt INTCON.INTE = 1; //Enable RB0/INT external Interrupt INTCON.PEIE = 0; //Disable all unmasked
Please explain what is exactly your problem, maybe you can upload code that we can see it. Is it necessary to use ASM? I mean there is a lot of free C compilers even for 16f877, but for such simple task there should not be problem to write it in ASM.