View Single Post
  #7   Spotlight this post!  
Unread 11-08-2005, 23:46
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Parallel to serial converter

Thats a nice solution, but a little software elbow grease and a shift register is a much simpler/cheaper solution, being that each of these is $29. That and the cost of the parallel LCD brings it up to the costs of Serial ones, somewhat defeating the purpose.

I've been reading up on shift registers, if you connect the clock and input pins to 2 outputs on the BS1 and use a third output for the Enable pin on the LCD, I believe it will work.

First, set the first output pin of the LSB (least significant bit) of the binary command for the LCD, then pull the clock pin on the register high, then low. That shifts the first bit in, do that 7 more times, filling in the remaining bits with zero's if necessary, you have to do this in 8-bit chunks. Then pull enable high for 2 microseconds or so and then pull it low. Start over.

Also, you can go with 4-bit mode and use a 4-bit shifter register, but since the intent of 4-bit mode is to trade pin usage for complexity, and you won't save anymore pins on the BS1 with it, it's rather pointless.

sparksandtabs, I received your PM and we can discuss this in more detail at your leisure if you need help.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)