Ed's Projects

Home

About

Skills

Calc's

Projects

Workshop

Contact

Legal

Bikes

Timeline

PDF's

Sponsor

Youtube

Microcontrollers and Embedded Systems - 18 Series

I have already written a set of tutorials on the 16 series of microcontroller, the 18 series is an upgrade. I'm going to start from scratch again with these tutorials and try to make them a little more practical than the last, I sometimes made the programs far too complicated. I hope these help, feel free to contact me to ask questions, of course I may not have time to write you code.

The 18 series of microcontrollers are still 8-bit however their instructions are now 16-bit instead of 14-bit and they carry a lot more useful instructions. In general the pin layouts and functions are very similar but you'll notice much higher clock speeds, larger memories and a faster program layout is possible with the 18 series.

Note 2021 : The MPLAB assembly is no longer the standard as shown in these projects, while the code may still apply to some systems it can now be considered obsolete. I have upgraded to C language as that is standard and compatible with several platforms. I shall not be updating the contents of any of these pages ever again, but will keep them as records.

 

The Basics of Programming

Chapter 1 - The 18 Series

Chapter 2 - Software, Hardware and Configuration

Chapter 3 - Flashing LED

Chapter 4 - Oscillator and Delay

Chapter 5 - Inputs, Status and Mathematics

Chapter 6 - Character LCD

Chapter 7 - 4 x 4 Keypad

Chapter 8 - EEPROM, FLASH and the FSR

Chapter 9 - PCL and the Stack

Chapter 10 - ADC and Binary to Decimal

Chapter 11 - Asynchronous Serial (EUSART)

Chapter 12 - Interrupts and Timers

Chapter 13 - Serial SPI

Chapter 14 - SD Card Part 1

Chapter 15 - SD Card Part 2

Chapter 16 - Graphic LCD

Chapter 17 - OLED Display

 

 

Programming Projects

Chronograph

 

Assembly Code Template

Bit-bang SPI

Asynchronous Serial TX and RX

Divide 32 bit by 16 bit

Multiply 16 x 16 bit

Binary to Decimal 24-bit

Read ADC

Computed Goto

Flash Write

Flash Erase

EEPROM Write

EEPROM Read

Character LCD

Keypad