Skip to content
Keyur Hariya edited this page Jan 24, 2018 · 2 revisions

Learn how to use the function calls on Maxim boards:

Functions Arduino Reference Maxim's API Details
attachInterrupt()
detachInterrupt()
digitalPinToInterrupt(pin) required as 1st argument on some boards digitalPinToInterrupt(pin) should not be used
analogReference() type of reference can be one of:
DEFAULT, INTERNAL, INTERNAL1V1, INTERNAL2V56, or EXTERNAL
type of reference can be either DEFAULT or EXTERNAL
analogRead() number of pins varies by board A0 to A5 available with restriction.
A0 and A4 are connected to same pin, similarly A1 and A5.
A0 to A3 range 0-1.2v
A4 to A5 range 0-6v.
On reset A4, A5, A2, A3 are active.
Use functions:
changeA0_A4()
changeA4_A0()
changeA1_A5()
changeA5_A1()
to switch between channels.
analogWrite() Few pins can be used for PWM output Any GPIO pin can be used to output PWM Uses PWM to output signals.
analogReadResolution()
analogWriteResolution()
Selected board families have the capability of changing the resolution All boards are capable of setting analog resolution. Default resolution:
Read - 10 bits
Write - 8 bits

Maximum is 16 bits resolution.
useVDDIOH()
useVDDIO()
Not available useVDDIO(pin) sets pin to 1.8v
useVDDIOH(pin) sets pin to 3.3v
Funtion returns 0 if success, -1 if error.
Default I/O voltage on most pins is 3.3v
Clone this wiki locally