The issue is that these boundaries should be changeable, since different chars will have different pixel width.
There are two ways of doing this - all capitals have same width and all non-capital...
Have you tried something like this?
Myword2.5 = Mybyte1.2 'move bit 2 of Mybyte1 to bit 5 Myword2
Myword2.6 = Mybyte1.3
Myword2.7 = Mybyte1.4
Myword2.8 = Mybyte1.5
The best I can think of is shifting & bit masks. If you want to use bits 2 through 5, create a generic temporary variable to put the interim result. Right shift it to put the 1st needed bit at the...
mpgmike Yesterday, 15:46If you're running at 8MHz then no wonder everything is slow.
32MHz (or 64MHz for something like an 18F26K22) would definitely be faster, way faster.
The I2C won't necessarily be a lot faster on...
Hello.
I'm upgrading my ST7920 "library", so letters can have variable width, for better visual appearance.
For this purpose, I plan to have single, screen-wide bit array, in which I will write the...
Not yet, but will do. Measure what, I2C clock frequency?
Tried modifying code in a way, that only that part of screen is redrawn, which is being updated. For some uses it does helps, but not always.
Have you measure what clock speed you're getting?
Standard "high speed" I2C clock is 400kHz, maximum clock speed of a Microchip 24C256 when run at >2.5V is 1MHz.
SPI-interface flash chips usually...
Good.
So I have to "learn" to use SPI eeprom 1st, and then use MSSP :)
By the way, if I leave current setup as is - using I2C, but use PIC running at say 32mhz (instead of current 8mhz), will this...
No.
SSPBUF is the Synchronous Serial Port Receive Buffer/Transmit Register. It's the name of register to/from which you write/read whatever gets shifted out.
Qualifying Compiler |
Upgrade Description | |
![]() |
Upgrade PICBASIC PRO (PBP) 2.60 or later to PBP3 Gold Edition | |
![]() |
|
|
![]() |
|
|
![]() |
Upgrade PICBASIC Compiler (PBC) to PBP3 Silver Edition |
Re: My "Library" for ST7920 Graphical displays, works fine, but...
Well, I don't see anything to be slow at 8mhz, except I2C :D
CuriousOne Yesterday, 20:22Had no time today, will measure I2C frequency tomorrow and post back....