UK
Offline
Sr. Member
Karma: 3
Posts: 391
|
 |
« on: June 17, 2011, 08:27:26 am » |
I have a working prototype using a 1280 but want to use a 328p instead so that I can build it on my own PCB. I do not have enough pins though  I know we can use the text LCD displays in 4 bit mode. Is there anything simple that drops the requirement for pins using a GLCD ? It is currently using 13 pins (unless I miscounted). If I can get down to 9 that would be a great help. Every time I search I just get directed to 4bit LCD driving! Thanks
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16544
Available for Design & Build services
|
 |
« Reply #1 on: June 17, 2011, 08:34:56 am » |
So why can't you put a 1280 on a PCB? If you want more IO and want to stay DIP, consider going to the 40 pin 644P or 1284P.
Check the "1284 evaluation" thread, I have layed out duemilanove style cards in both TQFP and DIP.
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 35
Posts: 5936
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #2 on: June 17, 2011, 09:53:12 am » |
Someone a while ago used a chip, maybe an SPI or I2C chip that talks to the GLCD. Plus, google "GLCD with shift register". Might find something you can use.
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 3
Posts: 391
|
 |
« Reply #3 on: June 17, 2011, 10:21:12 am » |
So why can't you put a 1280 on a PCB? If you want more IO and want to stay DIP, consider going to the 40 pin 644P or 1284P.
Check the "1284 evaluation" thread, I have layed out duemilanove style cards in both TQFP and DIP.
I hadn't heard of either of those chips that why !  Thanks.... So I can just get a 1284P which I take it is a DIL version of the 1280 then. Is there a table somewhere that shows a comparison?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16544
Available for Design & Build services
|
 |
« Reply #4 on: June 17, 2011, 12:24:15 pm » |
www.atmel.com, there may be a comparison table, or do a data sheet comparison. 644/1284 comes in DIP & TQFP, so is not just a DIP version of 1280. I'd look it up, my internet is reeeallly slow at the moment.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16544
Available for Design & Build services
|
 |
« Reply #5 on: June 17, 2011, 12:26:37 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 3
Posts: 391
|
 |
« Reply #6 on: June 17, 2011, 12:45:26 pm » |
Thank you very much, I have just ordered 10 of them from Farnell then noticed that the 1284p does not appear in the list (probably why I have not heard of it). If I set it up on a bread board with a 6 pin ICSP header and connect it to the USBTinyISP will I be able to program it that way? I have programmed a number of the 328p with this method but if the 1284p is not listed how do I sort that or is there a list. I have found some old posts which go back to version 11ish where people were having trouble. I will also need to find out how to upload a sketch via the ICSP as well as not sure how that would work.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16544
Available for Design & Build services
|
 |
« Reply #7 on: June 17, 2011, 10:32:57 pm » |
1284P is the 3rd entry below 1280. How'd you miss it?
Yes, set up pwr/gnd/reset and mosi/miso/sck for programming. May need 16 MHz xtal and two 22pf caps as well; same as how you'd set up a 328 basically.
Skyjumper has a bunch of recent posts on this as well.
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 3
Posts: 391
|
 |
« Reply #8 on: June 18, 2011, 04:35:00 am » |
1284P is the 3rd entry below 1280. How'd you miss it?
Yes, set up pwr/gnd/reset and mosi/miso/sck for programming. May need 16 MHz xtal and two 22pf caps as well; same as how you'd set up a 328 basically.
Skyjumper has a bunch of recent posts on this as well.
It doesn't appear under Tools::Boards::xxx ?? There is an entry Tools::Burn Bootloader:xxx ??? but how do you upload a sketch via that method? OR Do I take a normal board and remove the chip then use 6pin to 6pin cable? I will have a search for Skyjumper, thanks
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16544
Available for Design & Build services
|
 |
« Reply #9 on: June 18, 2011, 01:05:03 pm » |
I was directing you to the datasheet comparison area. 1284 is not officially supported in the IDE. Skyjumper can help you out for sure.
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 3
Posts: 391
|
 |
« Reply #10 on: June 18, 2011, 01:17:21 pm » |
I was directing you to the datasheet comparison area. 1284 is not officially supported in the IDE. Skyjumper can help you out for sure.
Thanks. I have found a file containing dozens of new board definitions including the 644p and 1284p which is now installed so it is possible to select the 1284p in the IDE. Just waiting for the chips to arrive which should be on Monday. Will update with a complete step by step once I get it going and will talk to skywalker to see what help he can give (hopefully ge has already done a step by step for it). I'm surprised it isn't included as it is a useful version of the chip. Not everyone has the equipment to solder 1280 chips onto their own boards!
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16544
Available for Design & Build services
|
 |
« Reply #11 on: June 18, 2011, 01:25:16 pm » |
Yes, the 1284 DIP seems a great part. Lots of memory, dual serial, lots of IO, nice to work with.
|
|
|
|
|
Logged
|
|
|
|
|
Germany
Offline
God Member
Karma: 69
Posts: 802
If you believe something is right, you won't see what's wrong (David Straker).
|
 |
« Reply #12 on: June 18, 2011, 01:59:19 pm » |
Is there anything simple that drops the requirement for pins using a GLCD ? There are some nice Graphic LCDs with SPI interface. These displays only need 4 pins: http://code.google.com/p/dogm128/wiki/dogm128_arduino_hardwareOliver
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 3
Posts: 391
|
 |
« Reply #13 on: June 19, 2011, 03:20:03 am » |
Thanks but I need to keep the cost down per build and GLCDs with built in serial interfaces are not cheap  I have found the stuff for the 1284p so hopefully that should sort matters out.
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Sr. Member
Karma: 3
Posts: 391
|
 |
« Reply #14 on: June 19, 2011, 03:28:47 am » |
I found this page regarding the 664p & 1284p, it looks perfect but my ICs are not due until tomorrow so can't check until then. http://aka47.adsl24.co.uk/serendipity/index.php?/pages/Min644pWarez.htmlJust added the text to boards.txt ie: ##############################################################
ADABoot1284P.name=min1284p - stk500v2 loader w/20Mhz ATmega1284p ADABoot1284P.upload.protocol=stk500v2 ADABoot1284P.upload.maximum_size=126976 ADABoot1284P.upload.speed=115200
ADABoot1284P.bootloader.low_fuses=0xF7 ADABoot1284P.bootloader.high_fuses=0xD8 ADABoot1284P.bootloader.extended_fuses=0xFD ADABoot1284P.bootloader.path=stk500v2 ADABoot1284P.bootloader.file=stk500boot_v2_mega1284p.hex ADABoot1284P.bootloader.unlock_bits=0x3F ADABoot1284P.bootloader.lock_bits=0x0F
ADABoot1284P.build.mcu=atmega1284p ADABoot1284P.build.f_cpu=20000000L ADABoot1284P.build.core=arduino ADABoot1284P.verbose=true then downloaded the 1284p hex code for the bootloader etc....... Fingers crossed
|
|
|
|
|
Logged
|
|
|
|
|
|