Library for LCD19264 with UC1609C display (Oshosoft)

DogFlu66

Member

UC1609C Driver

  • Developed using Pic18 Basic with the Oshonsoft v5.73 compiler.
  • Implements communication with the UC1609C graphical display controller via SPI.
  • Defines essential control pins (Reset, Chip Select, Command/Data, Clock, Data).
  • Provides functions for initialization, command transmission, and data writing.
  • Includes cursor control functions to set the display position.
  • Supports text rendering through character and string printing functions.
  • Implements pixel manipulation for basic graphics like lines and individual pixels.
  • Optimized for monochrome 128x64 display operation.

Implemented Functions

UC1609C_Locate

  • Positions the cursor to a specified row and column.
  • Translates text coordinates into display pixel locations.

UC1609C_Send_XY

  • Sets the internal cursor position using x (column) and y (page) coordinates.
  • Splits x into lower and upper nibbles and sends commands accordingly.

UC1609C_Print

  • Prints a string of characters on the display.
  • Iterates through each character and calls UC1609C_PutC.

UC1609C_PutC

  • Displays a single character on the screen.
  • Retrieves the font bitmap and sends data column by column.

UC1609C_PrintP

  • Prints a string of characters at a specific x, y position.
  • Allows custom character width and height.

UC1609C_PutCP

  • Displays a single character at a given x, y position.
  • Retrieves the font data and applies scaling for size adjustment.

UC1609C_Clear_Display

  • Clears the entire display by writing zeros to memory.
  • Iterates through all pages and columns.

UC1609C_Init

  • Initializes the UC1609C display.
  • Configures I/O pins, resets the display, and sends initialization commands.

UC1609C_Power_Down

  • Powers down the UC1609C display.
  • Executes the reset sequence to enter low-power mode.

UC1609C_Pixel

  • Draws a single pixel at an (x, y) coordinate.
  • Uses the vertical line function for precise control.

UC1609C_Line_H

  • Draws a horizontal line from (x, y) to (x2, y).
  • Calls the vertical line function for each pixel.

UC1609C_Line_V

  • Draws a vertical line from (x, y) downward.
  • Uses bitwise operations to set pixels within memory pages.
 

Attachments

  • UC1609C.bas
    17 KB · Views: 9
  • Tabla ASCII.bas
    10.9 KB · Views: 10
  • _Pic18F46K22Lib.bas
    43.4 KB · Views: 10
  • Test LCD UC1609C.bas
    2.2 KB · Views: 9
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…