As my first "real" project on the TM4C129x series, I am trying to port my software for the Nokia 5100 LCD (originally written for the ATMega series). I seem to having issues setting the PWM bit rate. Here are the functions for setting up SPI on SSI3:
#include "Nokia5110_LCD.h"
// PORT K
#define CS GPIO_PIN_7
#define RST GPIO_PIN_6
#define BACKL GPIO_PIN_4
#define DC GPIO_PIN_5
// private function prototypes
void LCDWrite(uint8_t dc, uint8_t data);
void Nokia5110LCDIni(void) {
MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOQ); // used for SSI: tx, rx, clk
MAP_SysCtlPeripheralEnabl