Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:25 18 Sep 2025 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 : Maximite And MCP23017 I2c

Author Message
2001cpx

Regular Member

Joined: 03/10/2013
Location: Canada
Posts: 59
Posted: 12:07pm 10 Sep 2015
Copy link to clipboard 
Print this post

Hi all!,

Does anyone know if i can use MCP23017 I2c With Maximite?

i need to Monitor 25 inputs.

(i made a search in forum and found nothing about this.)

thanks in advance!



"Color Maximite,(Duinomite-Mega,Mini),CGmmStick,GCmicroboard2b,Micromite + explore 64,100,LCD backpack,Lcd Backpack V2,TFT Backpack,Micromite Extreme,Armmite L,F,H,CMM2"
 
Zonker

Guru

Joined: 18/08/2012
Location: United States
Posts: 772
Posted: 03:47pm 10 Sep 2015
Copy link to clipboard 
Print this post

Never played with one, but looks like it would be easy to use... Why not just use the MM pins directly... I'm sure that would be easier...
 
jman

Guru

Joined: 12/06/2011
Location: New Zealand
Posts: 711
Posted: 10:37pm 10 Sep 2015
Copy link to clipboard 
Print this post

Here you go
http://www.thebackshed.com/forum/forum_posts.asp?TID=5886&KW=23017

http://www.thebackshed.com/forum/forum_posts.asp?TID=6219&KW=23017


Regards
Jman
 
Chris Roper
Senior Member

Joined: 19/05/2015
Location: South Africa
Posts: 280
Posted: 01:28am 11 Sep 2015
Copy link to clipboard 
Print this post

I had a MCP23017 to hand so set up a quick test for you.
This will flash an LED on PIN 21 (GPA0).

[code]
' I2C MCP23017 Test 1
' Flash LED on GPA0

'setup
I2C open 100, 1000
I2C Write &H20,0,2,&H00,&H00 ' GPIOA as Output

'mainloop
DO
I2C Write &H20,0,2,&H14,&H01 ' GPLATA.0 = 1
PAUSE 500
I2C Write &H20,0,2,&H14,&H00 ' GPLATA.0 = 0
PAUSE 500
LOOP

END
[/code]

Wiring is minimal with 4K7 Pull-up's on SCL & SDA (Pins 12, 13)
10K Pull-up on Reset (Pin 18)
A0,A1,A2 tied to ground. (Pins 15,16,17)
Power to Vdd (Pin 9)
Vss to Ground (Pin 10)


I see Jman got in there first but I post this here anyway as a quick test for you to try.

Cheers
Chris
Edited by Chris Roper 2015-09-12
http://caroper.blogspot.com/
 
Chris Roper
Senior Member

Joined: 19/05/2015
Location: South Africa
Posts: 280
Posted: 03:23am 11 Sep 2015
Copy link to clipboard 
Print this post

I see the Example that Jman gave is for the Maximite, which is what you asked for. My examples are for the Micromite which is slightly different, so I will leave them here for others.

Another example with the same hardware as above but with the addition of a Normally High push button connected to GPA7 (PIN 28).

This will show how to read and write GPIOA

[code]
' Micromite MKII MMBasic Ver 4.7 Beta 23
' I2C MCP23017 Test 2
' Control LED on GPA0 with Button on GPA7

'setup
I2C open 100, 1000
I2C Write &H20,0,2,&H00,&H80 ' GPA7 as Input GPA(6:0) as Output

'mainloop
DO
I2C Write &H20,0,1,&H12 ' address GPIOA Register
I2C Read &H20,0,1,Mask
if Mask = 0 then
I2C Write &H20,0,2,&H14,&H01 ' GPA0 ON
else
I2C Write &H20,0,2,&H14,&H00 ' GPA0 OFF
end if
LOOP

END
[/code]

Cheers
Chris
Edited by Chris Roper 2015-09-12
http://caroper.blogspot.com/
 
2001cpx

Regular Member

Joined: 03/10/2013
Location: Canada
Posts: 59
Posted: 04:42am 12 Sep 2015
Copy link to clipboard 
Print this post


Thank You very Much!!

Yes ,i can use directly Pin on MM,but i need 25 Inputs!



Thanks Again for your Help!!!
"Color Maximite,(Duinomite-Mega,Mini),CGmmStick,GCmicroboard2b,Micromite + explore 64,100,LCD backpack,Lcd Backpack V2,TFT Backpack,Micromite Extreme,Armmite L,F,H,CMM2"
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2948
Posted: 09:23pm 12 Sep 2015
Copy link to clipboard 
Print this post

  2001cpx said   Yes ,i can use directly Pin on MM,but i need 25 Inputs!

Are you aware that a 44-pin MicroMite has 33 I/Os compared to 19 I/Os that the 28-pin MicroMite has.
And as for the 64-pin MM . . . . .

WW
 
2001cpx

Regular Member

Joined: 03/10/2013
Location: Canada
Posts: 59
Posted: 10:13am 13 Sep 2015
Copy link to clipboard 
Print this post

Hi all!

I need to use Maximite because i need a VGA Output.
i think a made an error when i wrote MM,was for Micromite ?

i read everyday this Forum,Very Good A++++,i never used micromite,
but i will try soon,Very Great beast!



and Many Thanks to All ,For the Fantastic Works you made Here,
helped me a Lot's!!!!.



THANKS!








"Color Maximite,(Duinomite-Mega,Mini),CGmmStick,GCmicroboard2b,Micromite + explore 64,100,LCD backpack,Lcd Backpack V2,TFT Backpack,Micromite Extreme,Armmite L,F,H,CMM2"
 
2001cpx

Regular Member

Joined: 03/10/2013
Location: Canada
Posts: 59
Posted: 10:36am 13 Sep 2015
Copy link to clipboard 
Print this post

Here a Small Board i,ve made With My CNC,
DIL40 Sfm 8574

24 i/o ,need 25 ....
added 1 more chip,but with 7 i/o lost...

I think i will call 7 inch display,to use With Micromite,

it's possible to have Micromite with VGA out? found nothing abot this







"Color Maximite,(Duinomite-Mega,Mini),CGmmStick,GCmicroboard2b,Micromite + explore 64,100,LCD backpack,Lcd Backpack V2,TFT Backpack,Micromite Extreme,Armmite L,F,H,CMM2"
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025