PICkit™ 3 Starter Kit User’s Guide
DS41628B-page 40 2012 Microchip Technology Inc.
3.1 LESSONS
# Lesson New Modules New Concepts New Registers New Instructions
1 Hello World ALU Latch Port Basics of PIC MCU
programming
TRISC PORTC LATC BSF BCF CLRF
2 Blink 1. GPR
2. SRF
3. ACCESS RAM
4. Oscillator
1. Delay
2. I/O
3. Banking
OSCCON MOVLW DECFSZ GOTO
MOVWF BRA BTG
3 Rotate Bit Check STATUS BTFSC LSRF RRCF
4 Analog-to-Digital ADC Bit shift ANSEL ADCON0/1/2 SWAPF
5 Variable Speed
Rotate
Hardware Stack Functions CALL RETURN XORWF
TSTFSZ RCALL
6 Debounce Preprocessor Macros
7 Reversible
Variable Speed
Rotate
Modular Code RLNCF
8Pulse-Width
Modulation
ECCP 1. PWM resolution
2. PWM frequency
3. Modulation
CCPxCON PRx TxCON ANDLW
CCPTMRS CCPRxL
9 Timer0 Timer0 Timers OPTION_REG T0CON
1
0
Interrupts and
Pull-ups
1. Interrupt Vector (High/Low)
2. Weak pull-up
1. Usefulness of
interrupts
IOCAN IOCA RETFIE
IOCAF
RCON
WPUA
1
1
Indirect
Addressing
Virtual registers 1. Pointers INDFx FSRx INCF
1
2
Look-up Table Program Memory Read 1. Memory
conservation
2. Self Read
3. State Machine
EEADRx EEDATx EECON1 MOVIW RETLW BRW
PCL
PCLATH
TBLRD*
TBLPTR
TABLAT
1
3
EEPROM Nonvolatile Memory Low Power EECON2 SLEEP