Subject: Fwd: Re: Major break through in programming micro controlers
From: "rotaryeng@earthlink.net" <rotaryeng@earthlink.net>
Date: 1/28/2015, 11:51 AM
To: AA-1-Me


The Maximite BASIC "set pin" command is fantastic.

With one command and an integer between 1 and 9 you can configure
all the pins according to this table.

Some micro- controllers take dozens of C or BASIC commands to do
this job. It becomes a nightmare.

Typically modern micro controllers have multiple functions for the
pins. Complicated gate structure on the die is cheaper than having a
zillion pins connected to the die. Most chips are limited to 100
pins or so. Therefor configuring  the pins is a major part of
programming micro controllers.

It is cheaper to put a bunch more gates on the die to select pin
functions than equip the chips with a lot of pins. The Maximite chip
has 39 I/O multi function pins.


Typically modern micro controllers have up to to about 100 pins.
Some have more.

Example: SetPin n, 9 'set pins 11 to 20 as open col 5 v output


FUNCTIONS '0 Not configured or inactive

'1 Analog input (pins 1 to 10, A0 to A5)

'2 Digital input (all pins and 5V tolerant on pins 11 to 20)

'3 Frequency input

'4 Period input

'(pins 11 to 14)

'(pins 11 to 14)

'5 Counting input

'(pins 11 to 14)

'6 Interrupt on low to high input change (pins 1 to 20, D0 to D8) for
target

'7 Interrupt on high to low input change (pins 1 to 20, D0 to D8) for
target

'8 Digital output

'(all pins)

'9 Open collector digital output to 5V (pins 11 to 20, D0 to D13) In
 this mode the


Paul Lamar




Paul,

You really should check out Microchip's Code Configurator Tool.

It does just that, so you can set up what function is on what pin.

Once you have the part set up they way you want, just click "generate code" and it spits out the code to initialize the part.

Price is good.  Free tools and compiler.  They do sell an "optimizing complier".   Tools never expire, no limit size, just ready to go.  You might need a bigger memory size, hence pay $0.30c more per device, but if you are building 30,000 boards it is obviously cheaper to buy the full blown tools for $1000.  Otherwise if you are happy and just need 10 boards, I'll gladly pay $3 more.

http://www.microchip.com/pagehandler/en_us/devtools/code_configurator/home.html


Tom Walter

It is probably already in the MM BASIC interpreter. I don't do cryptic C. It is a powerful 32 bit
computer for heaven sakes. It should be able to understand the English language :)

My cell phone has excellent voice recognition. I can program the Maximite in  BASIC by talking
to it. How do you pronounce C !@#%^&*() ? :)

Paul Lamar

The Rotary Engine News Letter. Powered by Linux. ACRE NL web site.
http://www.rotaryeng.net You Tube http://tinyurl.com/beqqxas
Copyright 1998-2015 All world wide rights reserved.