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.
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-12http://caroper.blogspot.com/
Chris Roper Senior Member Joined: 19/05/2015 Location: South AfricaPosts: 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-12http://caroper.blogspot.com/
2001cpx Regular Member Joined: 03/10/2013 Location: CanadaPosts: 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 KingdomPosts: 2948
Posted: 09:23pm 12 Sep 2015
Copy link to clipboard
Print this post
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: CanadaPosts: 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!!!!.