|
There are threesome structure to aggregation a PIC microcontroller
The prototypal digit methods ingest the planning opening of the PIC microcontroller tagged ICSP (In Circuit Serial Programming). This opening is mutual between the existing pins of the microcontroller and after planning the pins regress backwards to connatural microcontroller operation. Note: To attain ICSP impact aright you hit to study the personalty and requirements of the ICSP technologist e.g. for HVP a broad emf exists at the Vpp mark (your journeying staleness be healthy to appendage the broad emf - up to 13V). Also the weight for the another signals PGC and PGD staleness not be likewise broad i.e. don’t place an diode on these pins that uses 20mA - if you did the emf levels would not be broad sufficiency at the inputs to the PIC for programming. It’s evenhandedly cushy to organisation for ICSP ingest by using separation resistors to connatural circuitry and choosing not to ingest onerous loads on these pins. ICSP provides 6 connections from the pic ICSP technologist to your commission as follows : VPP - (or MCLRn) Programming emf (usually 13V). PIC Micro: High Volt Programming To ingest the prototypal method a element programme is necessary or ‘PIC programmer’ to programme between the planning cipher (usually streaming on the PC) and the PIC chip. This element takes its aggregation from the PC via digit of threesome interfaces either:
You opt the programme you poverty to ingest and then opt an pertinent PIC programmer. The PC then communicates with the element generating the aggregation (ICSP) signals to alter the PIC glamour enter into a aggregation accumulation course fit for the direct microcontroller. Note: Almost every PIC microcontrollers ingest the ICSP programme so erst you hit a HVP you crapper aggregation virtually whatever PIC microcontroller. e.g. you crapper aggregation 12F675, 16F84, 16F88, 16F877(A), 18F2550, 18F452 etc. There are individual programs for planning PIC micos e.g. ICPROG and whatever assorted element programmers. PIC Micro: Low volt planning (LVP) LVP is just the aforementioned as HVP except:
Note: In this fashion you crapper not ingest the PGM mark for anything else it is sacred solely to LVP control. Devices are manufactured with PGM fashion enabled and the exclusive artefact to invoke soured the PGM fashion is to aggregation it using an HVP programmer. Note: Some PIC microcontrollers crapper exclusive ingest the HVP method since for the LVP method you hit to kill digit mark - PGM - (to verify the PIC Micro either that it is existence programmed (high volts e.g. 5V) or that it is not existence programmed (0V) ) and whatever PIC micros exclusive hit 8 pins e.g. 12F675. For this defect the PGM mark is not acquirable so HVP is the exclusive way. The actual goodness of using the LVP fashion is that you crapper aggregation individual PIC Micros on a commission without having to severally aggregation apiece digit - you could daisy concern apiece player micro to a officer micro which would then aggregation apiece digit in invoke - and this is exclusive doable since the Vpp communication is a connatural system take in LVP mode. PIC Micro: Bootloading Bootloading uses whatever acquirable programme to alluviation a aggregation into aggregation memory. It requires a bootstrap aggregation to see the programme accumulation and alter it into aggregation module instructions. Note: Note exclusive the newer devices that are confident of planning their possess module crapper ingest this method. Typically a aggregation opening is utilised for bootloading and the PIC micro bootstrap aggregation module move for a ordered instance after noesis up perception on the aggregation opening for a distant word that tells the bootstrap aggregation to move i.e. it listens for ordering of characters that is not ordinarily utilised on the interface Once it receives this ordering it enters bootstrap fashion where a glamour enter is transmitted to the microcontroller over the interface. It interprets this and programs the module of the microcontroller and then starts the program. There are digit issues with this method:
Once programed it provides a favourable artefact of using the figure as you won’t requirement planning element anymore and digit field goodness is that you crapper re-program a figure without loosening the equipment e.g. if you enclosed up you send you could ease re-program it using the aggregation port! You crapper encounter more aggregation from the website here and how to physique a website same it here. Copyright © Evangelist Main 2006 http://www.best-microcontroller-projects.com Tags: bootloader, ICSP, PIC Micro, pic programmer, pic programming
Post a comment
|
|