SPI_Mode3 causing SPI multiple device errors when using u8glib Library


hello

i'm using arduino uno ds3234 real time clock using sparkfun library , sh1106 oled display using u8glib library, rtc , oled display both use spi bus of course separate cs pins.

when run program reads rtc , displays time on both hyper terminal , on oled display firstly mess of numbers on hyper-terminal "45/25/165/18:85:85" instead of 27/08/14 19:15:05 , secondly oled display not show anything.

it turns out rtc library obtained on sparkfun sets spi-mode 3 works per normal when oled not connected, when u8glib sh1106 driver sends spi commands display causes spi_mode reset  default point onwards makes communicating rtc impossiable.

is there work around in software hardware cannot change use sw spi ?.

extra info:

u8glib constructor used: u8glib_sh1106_128x64_2x u8g(10, 7, 5);   //cs = 10, a0 = 7, reset = 5

u8glib has option store , restore state of hw spi registers. have @ this:
https://code.google.com/p/u8glib/wiki/userreference#sethardwarebackup
in cases may help...

please check whether u8glib works sw spi rtc (with hw spi).

oliver


Arduino Forum > Using Arduino > Displays > SPI_Mode3 causing SPI multiple device errors when using u8glib Library


arduino

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support