Avisaro Online Documentation - Wiki
Impressum Kontakt Sitemap

I/O, PWM, AD/DA

Most of the I/O pins of the Avisaro Module can be used as a "General Purpose Input or Output" (GPIO), as analogue input ports and as "Pulse Wide Modulation" ports. See pin layout for possible pin assignments.

  • I/O Pins (Input, Output Pins or GPIO): Switch LEDs, get key inputs  
  • PWM Pins (Pulse Width Modulation): Control servo-actuator, dim LEDs, digital to analog (with capacitor)  
  • Analog Input: Temperatur sensors, any analog signal

Default settings

All pins are input ports by default (after power up). Than, the last port direction command is the one which counts. Example: CAN port two was activated and later pin 3 is declared as an output port - this ends up in port 3 being an output port and the CAN bus is not functional.

Electrical considerations

See the electrical section (Mehr here) in the Module Manual for details on max current, etc .. for the port pins.

Command Interface

The I/O ports can be set and read by using the "port" command. See the I/O section (Mehr here) in the Command Interface Manual for more details.

Basic Scripting

The I/O ports can be set and read by using the "put" and "get" command. See the I/O section (Mehr here) in the Basic Scripting Manual for more details.