BasicMicro - Forums

www.basicmicro.com
It is currently Mon May 21, 2012 8:09 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: LCD Display
PostPosted: Tue Mar 29, 2011 6:23 am 
Offline
Citizen

Joined: Tue Mar 08, 2011 9:32 am
Posts: 17
Hello,

I would like to interface a LCD-Graphic Display with SPI Interface to the AtomPro40..

Is the SPI Interface already implemented in the AtomPro40?

Thank you


Top
 Profile  
 
 Post subject: Re: LCD Display
PostPosted: Tue Mar 29, 2011 6:48 am 
Offline
Master

Joined: Tue Nov 21, 2006 9:34 am
Posts: 528
I believe you may be able to configure the 2nd hardware serial port to be synchronous and emulate SPI. You would probably have to do your own setup of the port to do this. Not sure if you could configure it properly and use the standard HSERIAL2 support for this. My guess is maybe not.

Alternatively you could probably use the Shiftout/shiftin commands to talk to the LCD in much the same way we talk to the PS2 controllers.

Good Luck
Kurt


Top
 Profile  
 
 Post subject: Re: LCD Display
PostPosted: Tue Mar 29, 2011 9:45 am 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 903
Location: Temecula, CA
The hserial interrupt probably wouldn't handle the syncronous communications correctly(not saying it wouldn't though). If all you do is write it may work. SetHSerial2 to setup the hserial interrupt handler, then manually change the SCI3_2 registers to make it syncronous serial and give it a try.

If that doesn't work, just do the same thing except don't use the SetHSerial2 command. Then to send a byte you just load the transmit buffer with a byte and continue doing other things until the TEND(I think) flag is set.

_________________
Tech Support
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO