Tutorials

Contents

1.1

DEMONSTRATION - An "empty" PICmicro MCU
DISCUSSION - Screen click options

1.2

DISCUSSION - Minimum PICmicro MCU program commands

2.1

DEMONSTRATION - Turning on LEDs
DISCUSSION - Introduction to Listing 2

2.2

DISCUSSION - Memory, Files and Registers

2.3

DISCUSSION - Bits and Bytes
PROGRAMMING TOOL - Decimal, Hexadecimal and Binary converter

2.4

DISCUSSION - Terms Set and Clear

2.5

DISCUSSION - Commands CLRF and CLRW

2.6

DISCUSSION - Commands BSF and BCF

2.7

DISCUSSION - Port file numbers, Data direction register, Status register, Status bit 5 (Page), Pages 0 and 1

2.8

DISCUSSION - Listing 2 commands, Output port default values

3.1

DEMONSTRATION - Turning LEDs on and off
DISCUSSION - Naming numbers

3.2

DISCUSSION - Listing 3 discussion, Instruction EQU

3.3

DISCUSSION - Listing 3 operation, Command GOTO, Repetitive loop

3.4

DISCUSSION - Names and Labels, "dot" LST disk files

4.1

DEMONSTRATION - Rotating (shifting) LED display
DISCUSSION - Instructions #DEFINE and PAGE, Registers TRISA and TRISB

4.2

DISCUSSION - Bit names and use, Bits F, W and C, Carry flag, STATUS bit 0

4.3

DISCUSSION - Listing 4 operation, Byte rotation (shifting), Commands RLF and RRF

4.4

DISCUSSION - Commands MOVLW and MOVWF

4.5

DISCUSSION - Commands BTFSS and BTFSC, Program counter, Register PCL, Logical Truth

4.6

DISCUSSION - Listing 4 again.

5.1

DEMONSTRATION - Rotating LED display using Carry bit
DISCUSSION - Register naming consistency

5.2

DEMONSTRATION - Simpler LED rotation
DISCUSSION - Listing 5, Carry bit rotation

6.1

DEMONSTRATION - LEDs illustrate Zero flag testing
DISCUSSION - STATUS bit 2 (Z), Zero flag, Bit code Z, RRF demonstrated

6.2

DISCUSSION - Command MOVF

7.1

DEMONSTRATION - LEDs illustrate counting up and down
DISCUSSION - Commands INCF, DECF, INCFSZ and DECFSZ

7.2

DISCUSSION - Counting up and down, Incrementing, Decrementing, Files as counters

8.1

DEMONSTRATION - LEDs illustrate switch use
DISCUSSION - Switch monitoring, ANDing data, Commands ANDLW, ANDWF

8.2

DISCUSSION - Commands ADDWF, ADDLW, Adding data, STATUS bit 1, Digit Carry flag, Bit code DC, Nibbles

8.3

DISCUSSION - Commands SUBWF and SUBLW, Subtracting data

8.4

DISCUSSION - Listing 8 flow

9

DEMONSTRATION - LEDs illustrate speedier switch testing
DISCUSSION - Speeding up switch testing

10

DEMONSTRATION - LEDs illustrate bit testing for switches
DISCUSSION - Bit testing for switch status

11

DEMONSTRATION - LEDs illustrate switch selected operations
DISCUSSION - Switch selected operations, Common sub-routines

12

DEMONSTRATION - PORTA switches controlling PORTB LEDs
DISCUSSION - Reflecting Port A status on Port B

13

DEMONSTRATION - LEDs illustrate nibble swapping
DISCUSSION - Command SWAPF, Swapping byte nibbles

14

DEMONSTRATION - LEDs illustrate byte inversion
DISCUSSION - Command COMF, Complementing byte logic, Inverting a byte's bits