₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,246 members, 8,420,939 topics. Date: Friday, 05 June 2026 at 02:47 PM

Toggle theme

Ogundale's Posts

Nairaland ForumOgundale's ProfileOgundale's Posts

1 2 3 4 5 6 7 8 ... 13 14 15 16 17 18 19 20 21 (of 21 pages)

ProgrammingPIC Micro Hardware Programming Methods by Ogundale(op): 10:17am On Apr 05, 2013
There are three ways to program a PIC microcontroller
Using normal programming hardware (high volt programming HVP).
Low volt programming (LVP).
Bootloading.
The first two methods use the programming port of the PIC microcontroller labeled ICSP (In Circuit Serial Programming).
This port is shared between the existing pins of the microcontroller and after programming the pins revert back to normal microcontroller operation.
Note: To make ICSP work correctly you have to consider the effects and requirements of the ICSP programmer e.g. for HVP a high voltage exists at the Vpp pin (your circuit must be able to handle the high voltage - up to 13V). Also the loading for the other signals PGC and PGD must not be too high i.e. don't put an LED on these pins that uses 20mA - if you did the voltage levels would not be high enough at the inputs to the PIC for programming.
It's fairly easy to design for ICSP use by using isolation resistors to normal circuitry and choosing not to use heavy loads on these pins.
ICSP provides 6 connections from the pic ICSP programmer to your board as follows :
VPP - (or MCLRn) Programming voltage (usually 13V).
Vcc - Power (usually 5V).
GND Ground (zero volts).
PGD - Data usual port and connection RB7.
PGC - Clock usual port and connection RB6.
PGM - LVP enable usual port and connection RB3/RB4.
PIC Micro: High Volt Programming
To use the first method a hardware interface is needed or 'PIC programmer' to interface between the programming software (usually running on the PC) and the PIC chip. This hardware takes its information from the PC via one of three interfaces either:
The RS232 COM port
The Parallel port
The USB port
You choose the interface you want to use and then choose an appropriate PIC programmer. The PC then communicates with the hardware generating the serial (ICSP) signals to translate the PIC hex file into a serial data stream suitable for the target microcontroller.
Note: Almost all PIC microcontrollers use the ICSP interface so once you have a HVP you can program virtually any PIC microcontroller. e.g. you can program 12F675, 16F84, 16F88, 16F877(A), 18F2550, 18F452 etc.
There are several programs for programming PIC micos e.g. ICPROG and many different hardware programmers.
PIC Micro: Low volt programming (LVP)
LVP is exactly the same as HVP except:
The Vpp voltage is set to the normal supply voltage.
The PGM pin indicates programming mode.
Note: In this mode you can not use the PGM pin for anything else it is dedicated solely to LVP control.
Devices are manufactured with PGM mode enabled and the only way to turn off the PGM mode is to program it using an HVP programmer.
Note: Some PIC microcontrollers can only use the HVP method since for the LVP method you have to sacrifice one pin - PGM - (to tell the PIC Micro either that it is being programmed (high volts e.g. 5V) or that it is not being programmed (0V) ) and some PIC micros only have 8 pins e.g. 12F675. For this chip the PGM pin is not available so HVP is the only way.
The real benefit of using the LVP mode is that you can program several PIC Micros on a board without having to individually program each one - you could daisy chain each extra micro to a master micro which would then program each one in turn - and this is only possible since the Vpp signal is a normal logic level in LVP mode.
PIC Micro: Bootloading
Bootloading uses any available interface to load a program into program memory. It requires a bootstrap program to interpret the interface data and translate it into program memory instructions.
Note: Note only the newer devices that are capable of programming their own memory can use this method.
Typically a serial port is used for bootloading and the PIC micro bootstrap program will wait for a set time after power up listening on the serial port for a reserved word that tells the bootstrap program to start i.e. it listens for sequence of characters that is not normally used on the interface
Once it receives this sequence it enters bootstrap mode where a hex file is transmitted to the microcontroller over the interface. It interprets this and programs the memory of the microcontroller and then starts the program.
There are two issues with this method:
You have to program the bootstrap code using HVP or LVP.
It uses up some of the microcontroller resources.
Once programed it provides a convenient way of using the device as you won't need programming hardware anymore and one major benefit is that you can re-program a device without undoing the equipment e.g. if you boxed up you project you could still re-program it using the serial port!
PhonesRe: Android, Anyone? Part II by Ogundale(m): 10:01am On Apr 05, 2013
Go to a android shop near u.
RomanceRe: I Made Her Lose Her Virginity! by Ogundale(m): 9:57am On Apr 05, 2013
Guy you go pay.
CelebritiesRe: See How MTN Ultimate Wonder Winner, Ebube Garricks, Is Spending Her Money by Ogundale(m): 9:55am On Apr 05, 2013
Na so, money good.
PoliticsRe: Military Chiefs Angry With Boko-Haram Amnesty by Ogundale(m): 9:54am On Apr 05, 2013
This is nonsense while won'nt they be angry.
CelebritiesRe: Jackie Appiah Caught Changing Clothes In Public Car Park by Ogundale(m): 9:51am On Apr 05, 2013
Guy oh wetin concern me.
CelebritiesRe: Pictures: Wizkid, Chidinma, And Tiwa Savage During Their Pepsi Tour In Unilag by Ogundale(m): 9:49am On Apr 05, 2013
Nice next time don'nt post my royce car again.
CelebritiesRe: Yvonne Jegeda And Yvonne Nelson: Who Is Hotter? by Ogundale(m): 9:48am On Apr 05, 2013
Guy you need to pay my mb i jst waisted jst discovered am more pretty than both of them.
RomanceRe: Should I Accommodate A Distressed Married Woman In My House? by Ogundale(m): 9:46am On Apr 05, 2013
Guy are u a learner,
Phones[download] Operamini 7 For All Naija Network Except Cdma by Ogundale(op): 9:44am On Apr 05, 2013
Guys just got my hand on this opera mini that work on all naija network except cdma network you can download it in the attachment below or the link below:
http://ufym.net/f/297910
http://sharemobile.ro/data/share/Opera-Mini7.zip

Enjoy!!!
CelebritiesRe: shocking ! Tony Umez's Wife Tears Up His American Visa by Ogundale(m): 9:14am On Apr 05, 2013
Omo make them give me the visa na?
CelebritiesRe: Wizkid Acquires A White Rolls Royce by Ogundale(m): 9:13am On Apr 05, 2013
Nice ans superb.
PoliticsRe: Military Chiefs Angry With Boko-Haram Amnesty by Ogundale(m): 9:10am On Apr 05, 2013
This is very bad atleast the military should be concerned. This is total disgrace to military personnel in nigeria.
LiteratureRe: NYSC: PPA:- Place Of Promiscuous Assignment by Ogundale(m): 9:09am On Apr 05, 2013
Nice one.
CelebritiesRe: Nse Ikpe-etim And Clifford Sule’s Traditional Wedding In Akwa Ibom by Ogundale(m): 9:05am On Apr 05, 2013
Nice pix i have etighi to dance.
WebmastersRe: Many Sites Hosted By Web4Africa Are Down by Ogundale(m): 9:04am On Apr 05, 2013
Guy web4africa is a srewed hosting site. I dump them long ago wen my website was having probes of hack issues.
CelebritiesRe: Meet Nadia Buari's Pretty Sisters by Ogundale(m): 7:20pm On Apr 04, 2013
Guy my D.i.c.k day scratch me oh!!! Mtshewwwwwwwwwww....
CelebritiesRe: Tonto Dikeh's Beauty: Natural Or Artificial? (Photo) by Ogundale(m): 7:10pm On Apr 04, 2013
On a more protocol observation i would want to slick my d.ick pass her mouth jst to observe are beauty.
RomanceRe: Typical Conversation Among Ladies & Guys : True or False? by Ogundale(m): 7:05pm On Apr 04, 2013
At op next time quote where u stole this article from.
Car TalkRe: Porsche Panamera GT As An Official Car In Nigeria! by Ogundale(m): 7:01pm On Apr 04, 2013
That car belongs to me.
CelebritiesRe: World's Most Handsome Guy by Ogundale(m): 8:47am On Apr 01, 2013
rokiatu: Nonsense!! Even Zayn Malik is finer than him.
haterz are liable to die young?
CelebritiesRe: Beyonce Supports Gay Marriage by Ogundale(m): 6:57pm On Mar 28, 2013
Yap that it if u like it u should put ur ring on it? Biatch.
EducationRe: 50 Ghost Schools Uncovered In Niger State by Ogundale(m): 6:55pm On Mar 28, 2013
Google the word ghost and tell me what u got.
PhonesRe: iPhone5 Or Samsung Galaxy S3: Which Is Better? by Ogundale(m): 6:54pm On Mar 28, 2013
My guy i prefer samsung 3@?
PoliticsRe: A Confession From A Boko Haram Member Turned Born Again by Ogundale(m): 4:05pm On Mar 28, 2013
This story was hilary sorry hilarious.
CelebritiesRe: Why "Room 027" Is Nollywood's Most Sexually Daring Film Ever-Producer by Ogundale(m): 4:04pm On Mar 28, 2013
It was really a 5 star treatment?
Music/RadioRe: "What A Disgrace!" - A Nairalander's Opinion About The Nigerian Music Industry by Ogundale(m): 4:01pm On Mar 28, 2013
Even this world is going on a fast lane so let them express the bigotry.
Car TalkRe: 18 Wheeler Truck Destroys A 4Runner In A Collision by Ogundale(m): 3:44pm On Mar 28, 2013
Men this bad imagine the equitorial and collateral damage!!!
SportsRe: Heading Football Can Cause Brain Damage by Ogundale(m): 3:43pm On Mar 28, 2013
This is fallacy, i have head football several times nothing happen so why this.

1 2 3 4 5 6 7 8 ... 13 14 15 16 17 18 19 20 21 (of 21 pages)