Documente Academic
Documente Profesional
Documente Cultură
Introduction
PIC Microcontrollers are fabricated by PICMicrocontrollersarefabricatedby Microchip These microcontrollers have many series Thesemicrocontrollershavemanyseries LikePIC10,12,16,18etc. DependupontheinbuiltfeatureslikeRAM, Flash/EEPROM,ADCs,Ethernet,USBdrivers etc.
PIC18 PIC 18
Has RISC architecture HasRISCarchitecture Reducedinstructionsetarchitecture HasONchipprogram(code)ROM,data O hi ( d ) O d RAM,timers,ADC ,USARTandI/Oports ROM:128kto2MB OTPtypes:Onetypeprogrammable(cheap yp yp p g ( p solution)
ADDLW
ADDLW instruction adds into the value of ADDLWinstructionaddsintothevalueof WREG ADDLW K ; add literal value K to WREG ADDLWK;addliteralvalueKtoWREG
SFRs
Hardware
Training board Available in University TrainingboardAvailableinUniversity Itsdocumentationisuploadedongroup
Steps
First code is written Firstcodeiswritten Convertedtohex Downloaded onto the PIC using JDM DownloadedontothePICusingJDM programmer(whileprogramming,theLCD, MAX232ICandtheUSBconnectionshouldbe MAX232 IC and the USB connection should be unconnected) After programming the serial cable should be Afterprogrammingtheserialcableshouldbe disconnectedandtheUSBpowercable mountedforcheckingthecode
Valuesataddressesafterexecutionof instructions
PIC16Instructionsetsummary continued d
PIC18