Display Driver

More
12 years 3 months ago #850 by manu_himself
Replied by manu_himself on topic Display Driver
Hi,
I tried to use your Display Driver to write my own Application for the Xprotolab but I can't get it to run :(
Can you please tell me how to configure USARTD0 ?! I tried with the part of the Xprotolab sources on internal OSC with 32 MHz but I can't even set the Display on:
// Initialize USARTD0 for OLED
USARTD0.BAUDCTRLA = 0x01; // SPI clock rate for display
USARTD0.CTRLC ? ? = 0xC0; ? ? ? ? ? // Master SPI mode,
USARTD0.CTRLB ? ? = 0x08; ? ? ? ? ? // Enable TX
?
From the sources and schematics it seems like you don't use USART in SPI Mode, but "emulate" SPI?!
I'm not that deep into programming ?C, so please excuse me if my question sounds stupid :D
?
Thanks,
Manu

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #851 by manu_himself
Hi again,
While searching for a Solution, I mapped PORTD and PORTE to the virtual Ports you used, but no success in getting the Display to work :(
I also tried to write my own driver to at least switch the Screen on, but this didn't work either...
At the moment I don't have an ISP to program the XProtolab, so it's really lingering trying every idea and flashing it over USB ?:/
So it would be great if someone had a solution!
?
Thanks,
Manu

Please Log in or Create an account to join the conversation.

Time to create page: 0.422 seconds
Powered by Kunena Forum