Pic Lab, PIC16, Experiment #4: 7 segment display

It was 2012 year, I was just starting to learn how to work with the PIC microcontrollers, so the code is far away from optimal.

uC: PIC16F628a

Compiler: Hi-TECH PICC

Goal: To connect 7 segment indicator and display numbers from 0 to 9

7 segment indicator connection
Continue reading

PIC Lab, PIC16, Experiment #3: Timer TMR0

uC: PIC16F628a

Compiler: Hi-TECH PICC

Goal: To make pulses with frequency 5Hz

Timer TMR0 module frequently used in many applications, it has next useful options:

  • 8 bits counter/timer
  • Internal/external oscillator for pulses counting
  • An interrupt is generated after overflow

In that experiment we will make it without using interruptions.

Timer TMR0 module (from datasheet)
Continue reading