Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : LCD init error
Author | Message | ||||
MOBI Guru Joined: 02/12/2012 Location: AustraliaPosts: 819 |
Decided to swap from i2c LCD to uMite version but keep on coming up with "invalid pin" error. LCD init 21,3,2,9,10,16 do loop will work, but, LCD init 21,3,2,9,15,16 do loop will not??? According to my understanding of the uMite instructions the pins I am trying are valid and the syntax correct. I don't think that is the only combination that will not work. Is it just my tired eyes or a critter? edit=============== further probing seems not to like pin 15. David M. |
||||
palcal Guru Joined: 12/10/2011 Location: AustraliaPosts: 1873 |
If you are using the 250 chip Pins 15 and 23 are not valid. Paul. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2817 |
As palcal says, chances are you are using a PIC32MX250. If you are using a 150 then that pin is faulty (assuming all your connections are good. My money is on the fact it's a MX250 . . . . Please confirm back if this is the case! For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
MOBI Guru Joined: 02/12/2012 Location: AustraliaPosts: 819 |
It is indeed the 250. I have three 150s, I'll try one of them. Does pin 15 of the 250 have any uses or is it totally kaput? David M. |
||||
MOBI Guru Joined: 02/12/2012 Location: AustraliaPosts: 819 |
Just changed to the 150 and all is fine. Pity about 15 and 23 on the 250 as it leaved bugger all for hardware using the keypad and LCD. especially as 17 and 18 are needed for i2c RTC. Does anybody want 3 slightly useless 250s? David M. |
||||
MicroBlocks Guru Joined: 12/05/2012 Location: ThailandPosts: 2209 |
HI Mobi, i could have a use for those. Maybe we can make a trade. Microblocks. Build with logic. |
||||
WhiteWizzard Guru Joined: 05/04/2013 Location: United KingdomPosts: 2817 |
Hats off to Geoff as this is all very clearly explained on Page 4 in the (Beta 16) manual. Personally I would only use the PIC32MX150's simply so that I avoid this situation. Several people have fallen into this trap here on the BSForum! Also worth noting that directly from MicroChip (and they are generally cheaper than every other parts supplier), the PIC32MX150 is 10% cheaper per unit than the PI32MX250. Simply rule, if you have some spare 250's lying around that you wish to use, then you only have 17 I/Os compared to 19 I/Os. The shortfall of two I/Os are on Pin 15 & Pin 23. For all new designs it makes sense to buy 150's. For everything Micromite visit micromite.org Direct Email: whitewizzard@micromite.o |
||||
MicroBlocks Guru Joined: 12/05/2012 Location: ThailandPosts: 2209 |
I will use them for some pinguino32's. They are arduino compatible and use the USB port with bootloader. I can trade them for the PIC32MX150, dip or soic version. Microblocks. Build with logic. |
||||
MOBI Guru Joined: 02/12/2012 Location: AustraliaPosts: 819 |
I think I had better re read the manual in its entirety instead of assuming that "cut and dried" sections did not reflect changes. Could have saved me some headache. Is it really postage cost effective to swap? As I do most of my interface via i2c, especially LCDs, I can afford to lose a couple of pins. It is a cold and rainy day here so I'll sit down and do a complete re-read of the manual to see what else I've missed. David M. |
||||
Print this page |