GithubHelp home page GithubHelp logo

pic16f54-7-segments-display's Introduction

One Wire Driver for the PIC16F54 7 segments display

The Driver control the display over One Wire bus. The driver can set up the luminosity and shut-down the display. When the driver shutdown the display, the display can only be startup again from poweron or pushing the disable/enable-pin down.

The "PIC16F54 7 segments display":

  • 3 x 7 segments common cathode (5611AS)
  • 1 x PIC16F54 Micro-Controller
  • 3 x 2n7002 Transistors

Features

  • One wire bus
  • Disable/Enable Pin
  • Dimming
  • Sleep (Energy saving, Then you need two pins)
  • 3 characters

Schematic

The schematic and the gerber files

Schematic MCU\label{schematic_mcu}{ width=80% }

Schematic Seven-Segments\label{schematic_seven_segment}{ width=80% }

Schematic Programmer and Header\label{schematic_seven_prog}{ width=100% }

One Wire Protocol

Bit Timing

Master Write "0" Slot\label{bit_timing_0}{ width=80% }

Master Write "1" Slot\label{bit_timing_1}{ width=80% }

Table: Bit Timing
Symbol Description Min Typ Max Unit
EN Enable 150 450 3100 us
TR Time to read 350 505 680 us
TN Time to new bit 150 1500 6600 us

EN : Start of new bit

TR : Time between start of EN and the remote sample the DIO

TN : Time the remote spend wait for new Data, this should be bigger than the minimum allowed time for EN

Command Operation

Command Operation\label{command}{ width=80% }

Registers

Table: Driver Registers

Adresse Description Default
0x00 Option 0x00
0x01 Digit 1 0x00
0x02 Digit 2 0x00
0x03 Digit 3 0x00

Option Register Bit Assignement

This register acts as setting register.

Table: Option Register

Option 7 6 5 4 3 2 1 0
SLEEP EN DIM5 DIM4 DIM3 DIM2 DIM1 DIM0
Default 0 0 0 0 0 0 0 0

DIM<5-0> : Dimmer, '0b000000' is full power and '0b111111' is dark.

EN : Writing '1' to this position will power off the segments. All segments are off, but the controller is still running.

SLEEP : The controller go in sleep. Can only be restart push the MCLR pin down. All registers will be reset to theirs default value.

Digit x Register Bit Assignement

Registers describing the segments that should light on. Writing '1' to a position will light on this segments.

Table: Digit Register Bit Assignement

Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
DP G F E D C B A

Seven Segments\label{command}{ width=50% }

State Machine

State Machine\label{state_machine}{ width=80% }


title: "One Wire Driver for the PIC16F54 7 segments display" author: Olivier Pimi date: July 29, 2020 geometry: "left=3cm,right=3cm,top=2cm,bottom=2cm" output: pdf_document

pic16f54-7-segments-display's People

Contributors

pimium avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.