Software > Software

Programs fo PIC16F877

(1/2) > >>

sambhav:
hi..
i m a beginner and working with the PIC for the 1st time..
We are using PIC16F877 for our project..
we will be using assembly level programming using MPLAB
Can u plz provide us the assembly code for the following:
1. Line follower using IR sensors
2.Obstacle detection using ultrasonic
3.rpm measurement using IR sensors.

Also.. will the memory be sufficient..??
if not how can we integrate extra memory..??

Admin:
hi sambhav

so I use the PIC16F877 for like 90% of my bots . . .
why do you want to program in assembly? why not program in C, and just use a compiler to get assembly?

i can send you my compiled assembly files, but they arent going to make much sense . . . let me know if this is what you want.

doing a quick google search i found this book:
Interfacing PIC Microcontrollers: Embedded Design by Interactive Simulation<img src="http://www.assoc-amazon.com/e/ir?t=societyofrobo-20&amp;l=ur2&amp;o=1" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

it says it has many examples of assembly source code for PIC16F877

sambhav:

--- Quote from: Admin on December 27, 2006, 10:26:28 AM ---hi sambhav

so I use the PIC16F877 for like 90% of my bots . . .
why do you want to program in assembly? why not program in C, and just use a compiler to get assembly?

i can send you my compiled assembly files, but they arent going to make much sense . . . let me know if this is what you want.

doing a quick google search i found this book:
Interfacing PIC Microcontrollers: Embedded Design by Interactive Simulation<img src="http://www.assoc-amazon.com/e/ir?t=societyofrobo-20&amp;l=ur2&amp;o=1" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

it says it has many examples of assembly source code for PIC16F877

--- End quote ---


Is it easy to program in C or assembly..
I referred to some tutorials in assembly and found dem easy...
so plz tell me.. also if possible can u send the compiled assembly files or the c code files u mentioned to me...
also where can i get online tutorials for programming the PIC using C ??

Admin:
i uploaded my PIC 16F877 source code here:
http://www.societyofrobots.com/downloads/fuzzy_C_source_code.zip

the code was written for this robot:
http://www.societyofrobots.com/robot_omni_wheel.shtml

has source for sonar, sharp IR, 2D mapping, trig lookup tables, servos, timers, and interrupts.

enjoy!

Militoy:

--- Quote ---doing a quick google search i found this book:
Interfacing PIC Microcontrollers: Embedded Design by Interactive Simulation

it says it has many examples of assembly source code for PIC16F877
--- End quote ---

This looks to be a good book, Admin - From your comment though, it sounds like this is just one that came up in a search? If so - have you heard positive comments on the content; or, can anyone on the board that has a copy reccommend the book for PIC users (I'm using both 16F and 18F PICs)?

Another book - one that I use and highly reccommend - is "PIC Microcontroller: An Introduction to Software & Hardware Interfacing" by Han-Way Huang.

Navigation

[0] Message Index

[#] Next page

Go to full version