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.
MOBI Guru Joined: 02/12/2012 Location: AustraliaPosts: 819
Posted: 07:28pm 19 Mar 2014
Copy link to clipboard
Print this post
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.
Edited by MOBI 2014-03-21David M.
palcal Guru Joined: 12/10/2011 Location: AustraliaPosts: 1965
Posted: 11:02pm 19 Mar 2014
Copy link to clipboard
Print this post
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: 2927
Posted: 11:17pm 19 Mar 2014
Copy link to clipboard
Print this post
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!
MOBI Guru Joined: 02/12/2012 Location: AustraliaPosts: 819
Posted: 12:47am 20 Mar 2014
Copy link to clipboard
Print this post
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
Posted: 12:58am 20 Mar 2014
Copy link to clipboard
Print this post
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
Posted: 05:47am 20 Mar 2014
Copy link to clipboard
Print this post
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: 2927
Posted: 06:34am 20 Mar 2014
Copy link to clipboard
Print this post
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.
MicroBlocks Guru Joined: 12/05/2012 Location: ThailandPosts: 2209
Posted: 08:09am 20 Mar 2014
Copy link to clipboard
Print this post
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
Posted: 12:40pm 20 Mar 2014
Copy link to clipboard
Print this post
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.