/pic

This project contains some assemby code for 8-bit PIC microcontroller (e.g., a driver for seven-segment leds or a driver for a ultrasonic sensor).

Primary LanguageAssemblyApache License 2.0Apache-2.0

The PIC repository

Some code for pic micro controller. Most of the code is for the PIC16F628A controller.

Ultrasonic sensor with seven segment led output

  • Sourcefile: sonic_sevensegment.asm
  • Description: This project uses the HCSR04 ultrasonic sensor to measure the distance of an object. The PIC triggeres the ultrasonic sensor several times per seconds and convert the result into centimeter. The result is displayed onto the seven-segment display. The shift registers are used to address the seven-segment displays.
  • Hardware: 1x PIC16F628A, 3x TPIC 595N (shift register with open-drain), 3x seven-segment displays, 1x HCSR04 ultrasonic sensor
  • Image: ultra sonic