Click here to Skip to main content

Hardware & Devices

GeneralRe: access to devices برنامه نویسی برای ساعت حضور و غیاب PinmemberPecuniousPete9-Dec-12 21:17 
QuestionInterupt Context Switching Pinmemberrupeshkp7283-Dec-12 7:45 
QuestionOne monitor stays blank. PinmemberBrady Kelly2-Dec-12 22:42 
AnswerRe: One monitor stays blank. PinmemberEddy Vluggen3-Dec-12 2:11 
GeneralRe: One monitor stays blank. PinmemberBrady Kelly3-Dec-12 2:14 
GeneralRe: One monitor stays blank. PinmemberEddy Vluggen3-Dec-12 2:19 
GeneralRe: One monitor stays blank. PinmemberBrady Kelly3-Dec-12 2:35 
Questionprinting an image direct to the lan printer hardware without driver or print server PinmemberShlomo Ben-Ari2-Dec-12 6:05 
QuestionLCD to PC screen Pinmembermarunio30-Nov-12 2:18 
AnswerRe: LCD to PC screen PinmemberEddy Vluggen3-Dec-12 2:15 
GeneralRe: LCD to PC screen Pinmembermarunio3-Dec-12 3:10 
GeneralRe: LCD to PC screen PinmemberJason Gleim3-Dec-12 11:35 
GeneralRe: LCD to PC screen Pinmembermarunio4-Dec-12 3:09 
GeneralRe: LCD to PC screen PinmemberJason Gleim4-Dec-12 5:17 
Most any of the Mega chips would probably work. The Tiny stuff won't likely have enough pins so you could probably skip it. I've been working with the Mega128 recently on a project and find it to be fast enough with plenty of memory for my needs. And I am driving an LCD with it that has the HD44780 controller chip using just the half addressing (to keep pin count down) while also reading a serial data stream at 250 kbps and pulse-width-modulating an output at a 10 us duty-cycle. All while clocking the chip at just 16Mhz. (It goes to 20Mhz)
You will need a programmer and Atmel Studio 6. The software is available on their web site for free. You can save some money by purchasing the STK500 programmer (which will program the Mega128) or you can find a third-party programmer that implements ISP (In System Programming). And buy a few chips... they are cheap and you'll likely lock yourself out of at-least one. Everybody does at some time or another. Wink | ;-)
I think that you could probably have good success with this chip. You would need to identify the pins on the LC7981 that are connected to the microcontroller and figure out which is which. The good thing is that the LC7981 will only be connected to two things; the microprocessor and the LCD, so figuring out what is what should be pretty easy with the manual for that chip.
You *should* be able to set the pins on the AVR to high-impedence input mode and be able to pick-off the signals in-circuit... at least while you are testing and debugging. For a permanent install I would suggest desoldering the LC7981 and wire-up the pins on the Mega128 in its place. This is where a logic analyzer will be a big help. You'll need an acquisition rate at least twice the clock rate of the CPU in the device (likely 8Mhz but you may have to decode the information on a crystal to know for sure.) The analyzer will let you see the electrical signals as they happen in-circuit. The manual for the LC7981 chip should address the timing sequences for the pins which you should be able to verify with a logic analyzer. The manual will also talk about the initialization sequence and what, specifically, the chip will do for the different command modes. All this has to be provided so the guys writing the software on the micro side know how to drive the controller chip properly. The LCD controllers don't take serial commands... it is all at the bit level and driven by the clock... very low-level. But the manual for the LC7981 will cover all of that. Your task would be to write code for a Mega that would emulate this behavior. If I were attacking this I would likely figure out a way to execute an ISR (interrupt service routine) on the CS line. When the Mega sees this go high or low (depending on which is the 'valid' state), then the Mega can read/decode the data lines. Making it interrupt driven would be the way to go in my opinion.
There are some libraries out there for the Mega's that will drive various LCD controller chips. Looking at some of them might help you understand that side of the equation. You might also read up on and post some questions there. Note that the people there don't suffer poorly asked questions very well. You should make sure you have a well thought out and to the point question before you post over there.
There are also a lot of tutorials on sending serial data from an AVR chip to a PC. You will need that to send the data from the Mega to the PC. If I were you, I would probably try to keep this simple. Assuming the LC7981 works like most other controllers, the micro will load a character at a time onto the interface and clock it into the display controller. There are also control codes to clear the display, move the cursor, etc. I would turn those into similar control characters that could be send over the serial link while passing alpha characters as-is. If you do it this way, you could 'debug' the PC side of things using just hyperterm or something like that to read the stream of characters coming in. If the letters, numbers, and control characters are transmitted to the PC as they arrive at the AVR, you can pretty it all up in an app later.
You might also check and see if you have a hacker-space in your area. You can probably find someone there like me that knows the AVR stuff and might want to take this on as a project with you. This is the kind of novel project that guys like me are always looking for to take on as a personal project... out of the mainstream and yet very intriguing. I think the idea is cool and I could actually see something like this being useful beyond your project.
QuestionDetecting HDD PinmemberSrivathsanRaghavan26-Nov-12 22:04 
AnswerRe: Detecting HDD Pinmemberwater-moon201227-Nov-12 15:23 
AnswerRe: Detecting HDD PinmemberAlbert Holguin1-Dec-12 18:37 
GeneralRe: Detecting HDD PinmemberSrivathsanRaghavan2-Dec-12 20:03 
GeneralRe: Detecting HDD PinmemberAlbert Holguin3-Dec-12 10:00 
GeneralRe: Detecting HDD PinmemberSrivathsanRaghavan4-Dec-12 19:34 
GeneralRe: Detecting HDD PinmemberAlbert Holguin5-Dec-12 5:12 
GeneralRe: Detecting HDD PinmemberSrivathsanRaghavan5-Dec-12 5:50 
AnswerRe: Detecting HDD PinmemberAlbert Holguin5-Dec-12 5:56 
QuestionW8 tablet USB charge capability PinmemberCollin Jasnoch26-Nov-12 4:15 
AnswerRe: W8 tablet USB charge capability PinmemberJason Gleim3-Dec-12 11:40 
GeneralRe: W8 tablet USB charge capability PinmemberCollin Jasnoch4-Dec-12 5:05 
GeneralRe: W8 tablet USB charge capability PinmemberJason Gleim4-Dec-12 5:25 
GeneralRe: W8 tablet USB charge capability PinmemberCollin Jasnoch4-Dec-12 9:42 
QuestionVga converter from 31kHz to 45kHz Pinmembermarunio23-Nov-12 3:40 
QuestionAfter-market Heatsink Installation PinmemberIndifferentDisdain15-Nov-12 5:58 
AnswerRe: After-market Heatsink Installation PinmemberPeter_in_27804-Dec-12 20:04 
GeneralRe: After-market Heatsink Installation PinmemberIndifferentDisdain5-Dec-12 4:09 
QuestionBest Microphone for speech recognition Pinmembersaurabh orange vyas11-Nov-12 23:54 
AnswerRe: Best Microphone for speech recognition PinmemberBilliousBob23-Nov-12 5:21 
QuestionComputer problem PinmemberAinnop9-Nov-12 2:34 
AnswerRe: Computer problem PinmvpRichard MacCutchan9-Nov-12 3:01 
GeneralRe: Computer problem PinmemberAinnop9-Nov-12 3:39 
GeneralRe: Computer problem PinmvpRichard MacCutchan9-Nov-12 4:01 
GeneralRe: Computer problem PinmemberA NasseR9-Nov-12 13:01 
GeneralRe: Computer problem PinmvpRichard MacCutchan10-Nov-12 0:23 
GeneralRe: Computer problem PinmemberAinnop11-Nov-12 4:07 
GeneralRe: Computer problem PinmvpRichard MacCutchan11-Nov-12 4:27 
GeneralRe: Computer problem PinmemberBrandon T. H.18-Jan-13 12:09 
AnswerRe: Computer problem PinmemberBilliousBob23-Nov-12 5:26 
QuestionUSBSpy driver Pinmember__John_2-Nov-12 5:43 
AnswerRe: USBSpy driver PinmemberA NasseR8-Nov-12 4:28 
GeneralRe: USBSpy driver Pinmember__John_8-Nov-12 5:27 
QuestionRAM on windows 8 32bit PinmemberNitin Sawant27-Oct-12 7:03 
AnswerRe: RAM on windows 8 32bit PinmemberSaibal Ghosh29-Oct-12 8:53 
AnswerRe: RAM on windows 8 32bit PinmemberA NasseR8-Nov-12 4:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Advertise | Privacy | Mobile
Web04 | 2.8.150327.1 | Last Updated 22 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid