Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 04:48 29 Nov 2024 Privacy Policy
Jump to

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: Australia
Posts: 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-21
David M.
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1873
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 Kingdom
Posts: 2817
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!


For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
MOBI
Guru

Joined: 02/12/2012
Location: Australia
Posts: 819
Posted: 12:47am 20 Mar 2014
Copy link to clipboard 
Print this post

  WW said  My money is on the fact it's a MX250 . . . .

Please confirm back if this is the case!


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: Australia
Posts: 819
Posted: 12:58am 20 Mar 2014
Copy link to clipboard 
Print this post

  paul said  If you are using the 250 chip Pins 15 and 23 are not valid.
Paul.


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: Thailand
Posts: 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 Kingdom
Posts: 2817
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.



For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 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: Australia
Posts: 819
Posted: 12:40pm 20 Mar 2014
Copy link to clipboard 
Print this post

  Wiz said  Hats off to Geoff as this is all very clearly explained on Page 4 in the (Beta 16) manual.


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.

  TZA said  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.


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


To reply to this topic, you need to log in.

© JAQ Software 2024