Search Engine

Example Pic 16f877a

Add Question

36 Threads found on Example Pic 16f877a
I suspect that you are starting from the wrong place. What are you trying to do? Learn how to program microcontrollers and are using that pic as an example? Do you have a real problem you are trying to solve? are you using that device in a class and want the answers without doing any work? Susan
i have zigbee module cc2530 transceiver that is perfectly working when i check with hyperterminal but when i connect it to the pic microcontoller 16f877a and lcd, it displays some other letters instead of correct one..for example when i connect one transmitter module to pc and receiver module to pic. when I transmit 2, it (...)
IA amps means Instrumentation Amplifier aka IA for short. Used to amplify low level differential signals and give a single ended output. example: AD623. Eric
do you receive anything from the modem when you expect an sms text? for example, could ou be loosing received character because you are not reading the UART sufficently fast? what baud rate is the SIM 300 ? are you using polled or interrupt receive on the UART?
Here is a I2C code but not for eepeom. There is I2C example code at saeedsolutions but I can't provide its link as I got a warning that I am promoting that website. I have no interest in promoting any website or
Hi, Assume you have got the code from the web; its a very poor example of how to write assembler code. I have made 2 very small changes to the code to run on my MPlab and it works in that it sequentially changes Portb 0,1 and 2 and Flashes PortE 2 If you look at these tutorials you will see that properly written code is a lot easier to fo
i doing project using ps2 controller, but i having big problem in programming......can anyone help me please....example like if a button of ps2 controller pressed and the pic output example like RB0 = 1;
can any one explain the operation of capture compare and PWM register with example program in assembly language and embedded C.
Hi, Its a common temp sensor and pic, if you search this forum or google am sure you will find a working example. ( probably find one using the more popular 16f877a which is identical to the 876A apart from the extra pins and memory so the code will run on either)
Hello guys, Do you guys have experience with DS1307 and pic 16f877a ? I 'm using Hitech C and I can't use the example from compiler.... I stack with : unsigned short read_ds1307(unsigned short address) { //unsigned short dataa; I2C_Start(); I2C_Wr(0xd0); //address 0x68 followed by direction bit (0 for write, 1 for read) 0x68 follo
Post the datasheets of tssp6p38, apr9301, apr9600, and pic16f877a. Ok. I got the datasheets. What part of circuit are you having problem? In the voice chip datasheet example circuits are given.
Hi Yasser, at the start you must post your schematic, after that I will try to help you with concrete example, if you dont have idea about schematic, visit they have many examples with programable timers... also google is very good choice, only search, look this link or
Hello everyone, i just needed some help using the SPI library in MikroC. i'm sort of confused because the help seems not to carry enough info about how to use it so if anybody please help me with a code where i can share data between two micro-controllers pic 16f877a with it's schematic for example i want the slave uController send 0 to the (...)
Microchip provides alot of example code for many of their processors. It might be worthwhile to look on their website for example code. Attached is the is another page that helps one cal
All 'dt' does is store the data you provide as a list of retlw instructions. For example is you used dt 11,22,33,44 it would be saved as: retlw 11 retlw 22 retlw 33 retlw 44 It's just quicker to write it as a dt instruction, especially if the data is a string of text. To use it as a look-up table, call a subroutine (call is
Start of by writing down your requirements / user stories. Then search EDA and the WWW were you will find many posts (and) code for SPI communications with the selected A2D chip. If you read the spec of the AD7715 you will find SPI example C code
See this GPS example code.
also check this I2C Two Wire Interface Tutorial: pic 16F877 I2C Code example : 8051 Microcontroller Projects AVR pic Projects Tutorials Ebooks Libraries codes
As you are using mikroC goto help, and click on the mikroC libraries, in the library goto hardware library and there you can find a complete example (code + schematic) on keypad interfacing. You'll find what you need here. For convenience, I've attached the mikroC help for keypad. Hope this helps. Tahmid.
You can see this SPI example.
Hi, You are progressing ...:-D See this good tutorial for general RS232 / Usart details and example 7.7 which uses the hardware Usart of the 876A/877A chips. pic Tutorial* Seven - RS232 If you have a pickit2 you can use its USART progam to test your code.
hii I have just known this site.. and I am doing a project about rotary encoder.. I will measure velocity of rotary encoder.. and I couldnt simulated it on proteus.. if anyone helps to me , ı wıll be very glad.. and I will design it on pic css .. and I choosed 16f877a.. if there is a example for it..I can take help from it.. and I (...)
I have a project use 1 SIM300CZ connect pic 16f877a but pic don't receive data from SIM300CZ. I did example to test this case: Ex 1: - I do connect SIM300CZ with Computer(Hyper Terminal) via MAX232, This case it send and recieve data between SIM300CZ and Computer very good. Ex 2: I do connect pic with (...)
hi I m using C compiler for programming the 16f877a. I would like send binary data through this pic by using RS 232 communication which able to transmit data serially. I would to program like i have a push button connected to pic. When a press the push button, the pic will send certain binary i hope the members would give (...)
Theoreticaly Yes, you can use, but you must use specific hardware, for example for 10 sensors, if you use SPI, you need only one SPI channel but with 10 chip enable pins (one CS pin to one sensor), to communicate with PC you use one UART port, the LED's is not a problem, so the main problem is DC motors (for example use
Hello every body! can any one help me n tel how can i write an ISR in MICRO C in C language i m using pic 16f877a...i dont know how to write or how to cal it.if somebody has any code example plzzzzzz give me Thanx
pic 16f877a has its own PWM generator .. you can control it by the following code written on mikroc, void main { TRISC=0; pwm_init=25000; pwm_change_duty=150; // for example pwm_start(); } you can replace the "150" with any duty cycle you want from 0 to 255. to intefrace this PWM to the inductive load ; you can use H-bridge (...)
i m new in rtos i dont know which rtos and how which will implement pic 16f877a contlr i m studying uCOS-II., can this rtos implement in pic (if can give me example code) which is the best rtos for pic
How Do I Use The Analog Pins In pic 16f877a With MikroBasicPro I'hv Tried the code below to use pin AN2 but it does not work I'm working with RS232 Normally & I'hv not face any problems But i can't read any analog signal with this code I hope any body write me some code for reading an analog signal for example from a normal (...)
Hi, anyone can help, i need a concept or example of writing assembly of 16f877a to make the car move by using colour sensor. i am a beginner....
You can refer to example to program UART module in the microcontroller. Send the text for your AT command. From: Siong Boon MODERATOR - SIGNATURE LINKS ARE NOT ALLOWED
hi i need any example codes for PWM signals generation (pic or 8051) :D
Hi, Can anybody advice me on using 16f877a to interface a Dot Matrix printer? I am planning to build a overlay kind of thing which can read ASCII data sent to printer from a PC or another microcontroller and some more ASCII data to it. If possible pls give a example C code for Printer interface. Thanks, Akhthar
Application notes are a good source to start with a MCU like pic you might try: AN695 Interfacing Pressure Sensors to Microchip's Analog Peripherals For example
Here you will find example of code for pic16F877 as the I2C master ( ) and another one on reading time and date from I2C slave device the PCF8593 ( data sheet: ) .. Regards, IanP
Answers for your questions you can find on page 158 of datasheet for 16f877a (39582b.pdf) and on Lotar's page. One more thing you should know. When you want to use lvp you should first, in your MPLAB code enable lvp. Here is an example for 18F452 __CONFIG _CONFIG4L, _STVR_ON_4L & _LVP_ON_4L & _DEBUG_OFF_4L If you set lvp off and program pi