OLED SH1106_SPI and PIC18F27K42

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Abhijit
Posts: 14
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 6:26 am
Has thanked: 3 times

OLED SH1106_SPI and PIC18F27K42

Post by Abhijit »

Hello!

I am trying to modify my old chart for SH1106 SPI OLED display, I used PIC18F26K42 previously and want to use PIC18F27K42 now, I deleted everything from the chart when noticed nothing is working with 27K42 and write only basic macros needed to work, below observations,

1. If I initialize the the display and add one macro to display string and 1 sec LED to validate the working, for a long time the LED do not flash at all, but after a while it starts flashing 1 sec

2. If I do not initialize the display the 1 sec flashing immediately starts as normal

I tried changing the display connections to software as well hardware, no luck, did the library update, restart FC, nothing.

NOTE: following the new basic chart, I only changed the chip back to 26K42 and the one string macro and 1 sec flashing worked as expected or it should.

I think something wrong with PIC18F27K42 chip properties in FC (kindly note the chip is working absolutely fine with other programs, I confirmed that)

Can someone correct me, Matrix team kindly help.

Thank you,

Abhi

Abhijit
Posts: 14
Joined: Thu Dec 03, 2020 6:26 am
Has thanked: 3 times

Re: OLED SH1106_SPI and PIC18F27K42

Post by Abhijit »

Hello! Matrix Team

Following my above post I again tried to check the gadget if I am making any basic mistake but nothing comes in notice. The nominal chart for 27K42 works perfect with 26K42.

Kindly excuse to speak my mind but may I request you to check if something is wrong with the SPI of 27K42, or can you replicate the 26K42 SPI for 27K42, any ways I am not the expert or may be I am wrong.

Please try to help as soon as possible as without display I am not able to proceed further, or please advise if I need to change the chip and drop idea of using 27K42

Thank you.

Abhi

medelec35
Matrix Staff
Posts: 1955
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 626 times
Been thanked: 656 times

Re: OLED SH1106_SPI and PIC18F27K42

Post by medelec35 »

Hello.
The K42 is a series that microchip decided to change the way the rule book works on these devices.
For example I2C does not work in the standard way other devices work, therefore, it has been disabled.
Only Software mode works,
I would be surprised if they changed the wat SPI works as well.
If you want multiple functions, for future proofing, I would change my target device to something that works with all peripherals including I2C
Martin

Abhijit
Posts: 14
Joined: Thu Dec 03, 2020 6:26 am
Has thanked: 3 times

Re: OLED SH1106_SPI and PIC18F27K42

Post by Abhijit »

Hi! Martin

Thank you for your input, it is better to change the chip on the first day of a new project, a bit disappointed to know the fact about K42, better late then never, thank you again.

Abhi

Post Reply