ContentsIndex
PreviousUpNext
Advanced I/O
Functions

 

The Advanced I/O API combines simple logic operations based on digital I/O, for acquiring digital signals that are generated by assigned pins or are read from the voltage value of assigned pins. The logic processing is realized through software; therefore the use of pins is quite flexible; all digital I/O pins (see Table in Digital I/O) can be used as advanced I/O pins. 

 

When using a pin for advanced I/O, make sure the pin mode of that pin is set up correctly.

Functions
Function 
Description 
Duration of acquiring voltage (HIGH or LOW) of a pin. The accuracy is us; range is approx. 10us to 3 mins. 
Reads data of a byte by bits on the assigned pin. Every bit of data is read from the data pin. You can select to combine the read 8-bit data into a byte from MSB or LSB. Every clock cycle (meaning the clock goes through a complete high voltage and low voltage) reads a bit of data; every bit of data is read when the clock signal is at high voltage. 
Outputs a byte of data by bits on the assigned pin. Every bit of data is outputted from the data pin. You can select to start output from MSB or LSB of the data. Every clock cycle (meaning the clock goes through a complete high voltage and low voltage) outputs a bit of data. 
Links