Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

Slow SPI on G2553 with eBay OLED and "The Terminal" Code

$
0
0

Below are some logic analyzer screenshots.

The g2553 is set to the internal DCO with a frequency of 16MHz with no prescaler.

The SPI divider UCB0BR0 = 32.

I should be seeing a clock frequency of 500KHz correct? I am however seeing a clock frequency of 3.3KHz.

The data is also being transmitted at a rate of approximately two bytes every 300ms.

 

Using v1.2 for the g2553

http://doc.43oh.com/BoosterPack:OLED#Hardware_revisions

 

Pins :

SCLK 1.7

SDIN 1.5

RES 2.1

CS 2.0

RS D/C 2.2

 

The display is set to run in 3 wire SPI mode. I have tried looking for any code that would be waiting for a response from the display as a possible cause but have not found anything obvious.

 

I have only disabled the port two button interrupts as my display has no buttons.

All the rest of my code is exactly as available above.

 

Thank you for your time.

Please advise if I have left out any critical information.

 

Attached Thumbnails

  • Slow SPI 1.PNG
  • Slow SPI 2.PNG

Viewing all articles
Browse latest Browse all 2077

Trending Articles