Ok, measured I2C CLK speed. it is about 48khz. So I guess, this is the main issue, right?
Ok, measured I2C CLK speed. it is about 48khz. So I guess, this is the main issue, right?
Well, that's going to make I2C operations about ten times slower than what it could be running at.
A while back you mentioned using software SPI and complained about it being slow too.
You'd probably find the same sort of issue.
The builtin high-level commands make things easy to use, but you pay a price for that.
So only one way to get the speed, is to use SPI, but with MSSP?
By the way, as PIC16F886 datasheet says:
Master Synchronous Serial Port (MSSP) Module
supporting 3-wire SPI (all 4 modes) and I2C™
Master and Slave Modes with I2C Address Mask
This means, I can use MSSP for I2C too, via PBP?
Yes, the MSSP does both.
Yes, found some sample code for hardware I2C listed here. Reading thru them slowly....
Added "giant" size, 16x24 pixels font to the charset. But some letters need fine tuning. Once completed, will make this font .hex file free for everyone.
![]()
Bookmarks